![]() |
Visual Servoing Platform version 3.7.0
|
Functions | |
| VISP_EXPORT void | VISP_NAMESPACE_NAME::fillHoles (VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I) |
| VISP_EXPORT void | VISP_NAMESPACE_NAME::reconstruct (const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &marker, const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &mask, VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &h_kp1, const VISP_NAMESPACE_ADDRESSING vpImageMorphology::vpConnexityType &connexity=VISP_NAMESPACE_ADDRESSING vpImageMorphology::CONNEXITY_4) |
Additional image morphology functions.
If you are interested, you may have a look at
| VISP_EXPORT void VISP_NAMESPACE_NAME::fillHoles | ( | VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I | ) |
Fill the holes in a binary image.
| I | : Input binary image (0 means background, 255 means foreground). |
References vpImageMorphology::CONNEXITY_4.
| VISP_EXPORT void VISP_NAMESPACE_NAME::reconstruct | ( | const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | marker, |
| const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | mask, | ||
| VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | h_kp1, | ||
| const VISP_NAMESPACE_ADDRESSING vpImageMorphology::vpConnexityType & | connexity = VISP_NAMESPACE_ADDRESSING vpImageMorphology::CONNEXITY_4 ) |
Perform morphological reconstruction of the image marker under the image mask. Definition from Gleb V. Tcheslavsk: > The morphological reconstruction by dilation of a grayscale image
by a grayscale marker image
> is defined as the geodesic dilation of
with respect to
repeated (iterated) until stability is reached:
with
such that: ![]()
| marker | : Grayscale image marker. |
| mask | : Grayscale image mask. |
| h_kp1 | : Image morphologically reconstructed. |
| connexity | : Type of connexity. |
References vpImageMorphology::CONNEXITY_4.
Referenced by fillHoles().