MATLAB: Imdilate algorithm similar to convolution

Image Processing Toolboxmatlab function

what is the algorithm used in imdilate function….is it similar to convolution…is it like structuring element is flipped and translated over the given set and convolution is taken?/
please reply soon....thanks......

Best Answer

No, it's totally different. They both scan the image with a window but the convolution multiplies the values in the window by the image values under the window and sums them up to get a new center pixel. The dilate just takes the maximum value in the window as the new center pixel.