Tutorial 1
Tutorial 1
Figure 1
6. Figure 2 below shows an image which has been added with salt and pepper noise. Show
the denoising results using a 33
(a) Averaging filter
(b) Median filter
70 95 112
125 198 180
50 80 90
Figure 2
7. A portion of image is shown in Figure 3 for which filtering is needed to enhance the
image. By using given masking matrix, W, compute the resulting image using:
5 8 6
= [7 3 4 ]
5 3 4
(a) Correlation method
(b) Convolution method
0 2 0 3
3 0 1 2
0 6 0 1
1 0 5 0
Figure 3
CHAPTER 4: COLOR IMAGE PROCESSING
1. Explain the difference between color image processing and grayscale image processing.
2. Explain the concept of Color Model in Machine Vision Systems.
3. Explain the relationship between coordinates, pixel, and resolution in an image.
4. A commonly weighted function shown below is used to transform a RGB colour image to
grayscale image. Using a specific function, obtain the grayscale values of pixels shown in
Figure 4 below.
R( x, y)
I ( x, y) 0.2989 0.5870 0.1140 G( x, y )
B( x, y)
30 60
40 70
20 50
Figure 4
5. A commonly weighted function shown below is used to transform a RGB color image to
L*a*b* color image. By using the function, analyze the L*a*b* color values of the pixels
shown in Figure 5 below.
L * x, y 0.588 0.179 0.183 Rx, y
a * x, y 0.29 0.606 0.105 Gx, y
b * x, y 0 0.068 1.021 Bx, y
Figure 5
CHAPTER 5: MORPHOLOGICAL BINARY IMAGE PROCESSING
.
Structuring element
Binary image
Figure 6
0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0
0 1 1 1 1 1 1 0
0 1 1 1 1 0 1 0
0 1 1 1 0 0 1 0
1 1 1
0 0 0 1 1 1 1 1
1 1 1
0 0 0 1 1 1 1 0
1 1 1
0 0 0 0 1 0 0 0
Figure 7
4. An image as shown in Figure 8 is a binary rectangular object. Determine and illustrate
the result of that image using the following morphological operation:
Figure 8
(i) (ii)
Figure 9