Visual Servoing Platform
version 3.2.0 under development (2019-01-22)
|
Functions | |
VISP_EXPORT void | vp::fillHoles (vpImage< unsigned char > &I) |
VISP_EXPORT void | vp::reconstruct (const vpImage< unsigned char > &marker, const vpImage< unsigned char > &mask, vpImage< unsigned char > &I, const vpImageMorphology::vpConnexityType &connexity=vpImageMorphology::CONNEXITY_4) |
Additional image morphology functions.
void vp::fillHoles | ( | vpImage< unsigned char > & | I | ) |
Fill the holes in a binary image.
I | : Input binary image (0 means background, 255 means foreground). |
Definition at line 54 of file vpMorph.cpp.
References vp::floodFill(), vpImage< Type >::getHeight(), vpImage< Type >::getSize(), vpImage< Type >::getWidth(), vpImageTools::imageAdd(), vpImageTools::imageSubtract(), and vp::reconstruct().
void vp::reconstruct | ( | const vpImage< unsigned char > & | marker, |
const vpImage< unsigned char > & | mask, | ||
vpImage< unsigned char > & | h_kp1, | ||
const vpImageMorphology::vpConnexityType & | connexity = 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. |
Definition at line 145 of file vpMorph.cpp.
References vpImageMorphology::dilatation(), vpImage< Type >::getHeight(), vpImage< Type >::getSize(), and vpImage< Type >::getWidth().
Referenced by vp::fillHoles().