PANDORE Version 6 |
GREYC-IMAGE |
pareaopening
Performs area opening (minima killer).
Synopsis
pareaopening connexity area [-m mask][im_in|-][im_out|-]
Description
The operator pareaopening removes clear 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 white regions whose area is less 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 pixels to be removed.
Inputs
Outputs
- im_out: an image of the same type as im_in.
Result
Returns SUCCESS or FAILURE.
Examples
See also
Morphology,
pareaclosing
C++ prototype
Errc PAreaOpening( const Img2duc &im_in, Img2duc &im_out, int connexity, int area );
Author: Régis Clouard