Saturday, 30 April 2016

HW 5 - Morphological operations

Due: 6 May Friday, 23.59

Do not use MATLAB's morphological operations. The point of the HW is to implement morphological operations in your own way.

Q1 - Write a MATLAB function which takes an binary image a structuring element as arguments and returns eroded binary image as output.

1
2
3
4
function B = erode(I, SE)
%I: a binary 2D image
%SE: a binary 2D SE
%B: eroded element.

Q2 - Write a MATLAB function which takes an binary image a structuring element as arguments and returns dilated binary image as output.
Q3 - Using your answers in Q1 and Q2,  write a MATLAB function which takes an binary image a structuring element as arguments and returns opened binary image as output.
Q4 - Using your answers in Q1 and Q2,  write a MATLAB function which takes an binary image a structuring element as arguments and returns closed binary image as output.
Q5 - Using your previous answers, write a MATLAB function for boundary extraction which takes an binary image and returns its boundaries.

No comments:

Post a Comment