Contours extraction.
If you are interested in contours extraction, you may have a look at
◆ drawContours() [1/2]
| VISP_EXPORT void VISP_NAMESPACE_NAME::drawContours |
( |
VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I, |
|
|
const std::vector< std::vector< VISP_NAMESPACE_ADDRESSING vpImagePoint > > & | contours, |
|
|
unsigned char | grayValue = 255 ) |
◆ drawContours() [2/2]
| VISP_EXPORT void VISP_NAMESPACE_NAME::drawContours |
( |
VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > & | I, |
|
|
const std::vector< std::vector< VISP_NAMESPACE_ADDRESSING vpImagePoint > > & | contours, |
|
|
const VISP_NAMESPACE_ADDRESSING vpColor & | color ) |
Draw the input contours on the color image.
- Parameters
-
| I | : Color image where we want to draw the input contours. |
| contours | : Detected contours. |
| color | : Drawing color. |
◆ findContours()
Extract contours from a binary image.
- Parameters
-
| I_original | : Input binary image (0 means background, 1 means foreground, other values are not allowed). |
| contours | : Detected contours. |
| contourPts | : List of contours, each contour contains a list of contour points. |
| retrievalMode | : Contour retrieval mode. |
- Examples
- testContours.cpp, tutorial-contour.cpp, and tutorial-count-coins.cpp.
References CONTOUR_RETR_TREE.