1. Expansion
This action scrolls the image with the kernel () of any shape, usually a square or a circle.
The kernel has a definable anchor Point , which is usually defined as the kernel center point.
During the expansion operation, the kernel is sliced across the image, the maximum phase value of the kernel coverage area is extracted, and the phase of the anchor location is replaced. Obviously, this maximized operation will cause the light extents in the image to start "extended" (hence the term bloat dilation ).
Erode
Specify shape:getstructuringelement
-
- Rectangle: Morph_rect
- Cross shape: Morph_cross
- Oval: Morph_ellipse
2. Corrosion
Corrosion in the morphological operation family is the twin sister of the dilation operation. It extracts the minimum value of the voxel under the kernel overlay.
During corrosion operation, the kernel is sliced across the image, the minimum phase value of the kernel coverage area is extracted, and the phase of the anchor position is substituted.
With the same image as the expansion sample, we use corrosion operations.
Dilate
OPENCV Study notes-corrosion and swelling