Specifications

Morphological Operations
8-7
8
Close
Closes the image by
performing dilations
followed by erosions.
void iplClose(IplImage*
srcImage
, IplImage*
dstImage
,
int
nIterations
);
srcImage
Thesourceimage.
dstImage
The resultant image.
nIterations
The number of times to dilate and erode the image.
Discussion
The function iplClose() performs
nIterations
of dilation followed by
nIterations
of erosion performed by iplDilate() and iplErode(),
respectively.
The process of closing has the effect of filling small and thin holes in
objects, connecting nearby objects, and generally smoothing the boundaries
of objects without significantly changing their area.
See Also
Erode
Dilate