0
2.2kviews
Compare Dilation and Erosion
1 Answer
0
38views
Sr. no. Dilation Erosion
1. Dilation adds pixels to the boundary of an object in an image. It is vector addition of image and structuring elements. Erosion removes pixels from the boundary of an object in an image.
2. The value of the output pixel is the maximum value of all the pixels in the input pixel's neighborhood The value of the output pixel is the minimum value of all the pixels in the input pixel's neighborhood.
3. In a binary image, if any of the pixels is set to the value 1, the output pixel is set to 1. In a binary image, if any of the pixels is set to 0, the output pixel is set to 0.
4. Pixels beyond the image border are assigned the minimum value afforded by the data type. Pixels beyond the image border are assigned the maximum value afforded by the data type.
5. For grayscale images, the minimum value for uint8 images is 0 For grayscale images, the maximum value for uint8 images is 255
6. It is defined as,$X⊕B=\{{z|[(\hat{B})_Z ∩X ]∈X }\}$ It is defined as, $X⊝B=\{{z|(\hat{B})_Z ∈X \}}$
Please log in to add an answer.