![]() |
Visual Servoing Platform version 3.6.0
|
#include <vpImageMorphology.h>
Public Types | |
| enum | vpConnexityType { CONNEXITY_4 , CONNEXITY_8 } |
Static Public Member Functions | |
| template<class Type > | |
| static void | erosion (vpImage< Type > &I, Type value, Type value_out, vpConnexityType connexity=CONNEXITY_4) |
| template<class Type > | |
| static void | dilatation (vpImage< Type > &I, Type value, Type value_out, vpConnexityType connexity=CONNEXITY_4) |
| template<typename T > | |
| static void | erosion (vpImage< T > &I, const vpConnexityType &connexity=CONNEXITY_4) |
| template<typename T > | |
| static void | dilatation (vpImage< T > &I, const vpConnexityType &connexity=CONNEXITY_4) |
Deprecated functions | |
| static vp_deprecated void | erosion (vpImage< unsigned char > &I, const vpConnexityType &connexity=CONNEXITY_4) |
| static vp_deprecated void | dilatation (vpImage< unsigned char > &I, const vpConnexityType &connexity=CONNEXITY_4) |
Various mathematical morphology tools, erosion, dilatation...
Definition at line 62 of file vpImageMorphology.h.
Type of connexity 4, or 8.
Definition at line 68 of file vpImageMorphology.h.
|
static |
Dilate an image using the given structuring element.
The dilatation of 

![\[ \left ( A \oplus B \right ) \left( x,y
\right) = \textbf{max} \left \{ A \left ( x-x', y-y' \right ) + B \left (
x', y'\right ) | \left ( x', y'\right ) \subseteq D_B \right \} \]](form_135.png)
where 



In our case, the dilatation is performed with a flat structuring element 
![\[
\left ( A \oplus B \right ) \left( x,y \right) = \textbf{max} \left \{ A
\left ( x-x', y-y' \right ) | \left ( x', y'\right ) \subseteq D_B \right \}
\]](form_137.png)
| I | : Image to process. |
| connexity | : Type of connexity: 4 or 8. |
Definition at line 387 of file vpImageMorphology.h.
|
static |
Dilate a binary image using a structuring element of size one.
| I | : Image to process. |
| value | : Values of the pixels to dilate. |
| value_out | : Value to set if dilatation is done. |
| connexity | : Type of connexity: 4 or 8. |
To dilate a black area in an unsigned char image with one element mask, set value to 0 and value_out to 255.
To dilate a white area in an unsigned char image with one element mask, set value to 255 and value_out to 0.
Definition at line 234 of file vpImageMorphology.h.
References CONNEXITY_4, vpImage< Type >::getHeight(), vpImage< Type >::getSize(), and vpImage< Type >::getWidth().
|
inlinestatic |
A dilatation is performed with a flat structuring element 
![\[
\left ( A \ominus B \right ) \left( x,y \right) = \textbf{max} \left \{ A
\left ( x+x', y+y' \right ) | \left ( x', y'\right ) \subseteq D_B \right \}
\]](form_138.png)
| I | : Gray-scale image to process. |
| connexity | : Type of connexity: 4 or 8. |
Definition at line 138 of file vpImageMorphology.h.
|
static |
Erode an image using the given structuring element.
The erosion of 

![\[ \left ( A \ominus B \right ) \left( x,y
\right) = \textbf{min} \left \{ A \left ( x+x', y+y' \right ) - B \left (
x', y'\right ) | \left ( x', y'\right ) \subseteq D_B \right \} \]](form_127.png)
where 



In our case, the erosion is performed with a flat structuring element 
![\[
\left ( A \ominus B \right ) \left( x,y \right) = \textbf{min} \left \{ A
\left ( x+x', y+y' \right ) | \left ( x', y'\right ) \subseteq D_B \right \}
\]](form_133.png)
| I | : Image to process. |
| connexity | : Type of connexity: 4 or 8. |
Definition at line 357 of file vpImageMorphology.h.
|
static |
Erode a binary image using a structuring element of size one.
| I | : Image to process. |
| value | : Values of the pixels to erode. |
| value_out | : Value to set if erosion is done. |
| connexity | : Type of connexity: 4 or 8. |
To erode a black area in an unsigned char image, set value to 0 and value_out to 255.
To erode a white area in an unsigned char image with one element mask, set value to 255 and value_out to 0.
Definition at line 164 of file vpImageMorphology.h.
References CONNEXITY_4, vpImage< Type >::getHeight(), vpImage< Type >::getSize(), and vpImage< Type >::getWidth().
|
inlinestatic |
An erosion is performed with a flat structuring element 
![\[
\left ( A \ominus B \right ) \left( x,y \right) = \textbf{min} \left \{ A
\left ( x+x', y+y' \right ) | \left ( x', y'\right ) \subseteq D_B \right \}
\]](form_133.png)
| I | : Gray-scale image to process. |
| connexity | : Type of connexity: 4 or 8. |
Definition at line 121 of file vpImageMorphology.h.