In mathematical morphology and digital image processing, a morphological gradient is the difference between the dilation and the erosion of a given image.
It is an image where each pixel value (typically non-negative) indicates the contrast intensity in the close neighborhood of that pixel.
It is useful for edge detection and segmentation applications.
be a grayscale image, mapping points from a Euclidean space or discrete grid E (such as R2 or Z2) into the real line.
Usually, b is symmetric and has short-support, e.g., Then, the morphological gradient of f is given by: where
You can help Wikipedia by expanding it.This computer science article is a stub.