Starting from:
$30

$24

HW#6 Morphology Solved

    I. Consider the image in Fig. 9.3. Erode it with the following structural elements. In each case, the red pixel is the center. 



1

1

1


1

1

1



1



1

1
1


1


















1
1
1







1
1
1


1
1
1
1
1
1
1
1
1
1
1
1
1


1
1
1
1
1
1
1
1
1
1
1
1
1


1
1
1
1
1
1
1
1
1
1
1
1
1


1
1
1







1
1
1

















    II. Prob. 9.6 a, b, c 



    III. Obtain the opening of the figure below with a 3x3 structuring element of 1’s.  Repeat for the closing operation. 































1
1
1







1
1
1


1
1
1
1
1
1
1
1
1
1
1
1
1


1
1
1







1
1
1
































    IV. 9.17:  Use MATLAB with the structural element defined as se = strel(‘dis’, 11, 0))



    V. Given an image with circles and squares of various sizes, provide an algorithm that uses morphological and logical operations to answer the following questions. Write an explanation and a pseudo-code:

(a) What fraction of the image pixels is white?
(b) How many objects are in the image?
(c) How many holes are in the image?
(d) How many objects have one or more holes?
(e) How many square objects are in the image? Hint: Count row&column pixels
(f) Identify the square objects that have holes.
(g) Identify the circular objects that have no holes.

More products