Visual Servoing Platform
version 3.6.1 under development (2024-12-12)
|
Functions | |
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) |
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) |
VISP_EXPORT void | VISP_NAMESPACE_NAME::findContours (const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I_original, vpContour &contours, std::vector< std::vector< VISP_NAMESPACE_ADDRESSING vpImagePoint > > &contourPts, const vpContourRetrievalType &retrievalMode=CONTOUR_RETR_TREE) |
Contours extraction.
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 |
||
) |
Draw the input contours on the binary image.
I | : Grayscale image where we want to draw the input contours. |
contours | : Detected contours. |
grayValue | : Drawing grayscale color. |
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.
I | : Color image where we want to draw the input contours. |
contours | : Detected contours. |
color | : Drawing color. |
VISP_EXPORT void VISP_NAMESPACE_NAME::findContours | ( | const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I_original, |
vpContour & | contours, | ||
std::vector< std::vector< VISP_NAMESPACE_ADDRESSING vpImagePoint > > & | contourPts, | ||
const vpContourRetrievalType & | retrievalMode = CONTOUR_RETR_TREE |
||
) |
Extract contours from a binary image.
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. |