Dilation and erosion

11
DILATION AND EROSION

description

MATLAB IMAGE PROCESSING

Transcript of Dilation and erosion

Page 1: Dilation and erosion

DILATION AND EROSION

Page 2: Dilation and erosion

DILATION AND EROSION

• These are two fundamental morphological operations.

• Morphological operations -a collection of non-linear operations related to the shape or morphology of features in an image

• Dilation adds pixels to the boundaries of objects in an image

• Erosion removes pixels on object boundaries

Page 3: Dilation and erosion
Page 4: Dilation and erosion
Page 5: Dilation and erosion
Page 6: Dilation and erosion
Page 7: Dilation and erosion

Structuring element

• The number of pixels added or removed from the objects in an image depends on the size and shape of the structuring element

• It’s a matrix of 1’s and 0’s• The center pixel of the structuring element,

called the origin

Page 8: Dilation and erosion

Origin of a Diamond-Shaped Structuring Element

Page 9: Dilation and erosion

Dilation program

BW = zeros(9,10); BW(4:6,4:7) = 1SE = strel('square',3)BW2 = imdilate(BW,SE)

Page 10: Dilation and erosion
Page 11: Dilation and erosion