PANDORE Version 6 |
GREYC-IMAGE |
pareaclosing
Performs area closing (maxima killer).
Synopsis
pareaclosing connexity area [-m mask][im_in|-][im_out|-]
Description
The operator pareaopening removes dark objects
whose area in number of pixels is less than the
specified area.
The algorithm presented in a naive way consists in:
- Thresholding image at each gray level,
- and removing dark regions whose area is smaller
than the specified area.
- The final result is the addition of the result at each level.
Parameters
- connexity specifies the relationship
between a pixel and its neighbors. It is an integer from:
4 or 8 for 2D, or 6 or 26 for 3D.
- area specifies the maximum area size,
in number of pixel, to be preserved.
Inputs
- im_in: a gray level 2D image.
Outputs
- im_out: an image of the same type as im_in.
Result
Returns SUCCESS or FAILURE.
Examples
See also
Morphology,
pareaopening
C++ prototype
Errc PAreaClosing( const Img2duc &im_in, Img2duc &im_out, int connexity, int area );
Author: Régis Clouard