Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches

Functions

VISP_EXPORT void VISP_NAMESPACE_NAME::connectedComponents (const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I, VISP_NAMESPACE_ADDRESSING vpImage< int > &labels, int &nbComponents, const VISP_NAMESPACE_ADDRESSING vpImageMorphology::vpConnexityType &connexity=VISP_NAMESPACE_ADDRESSING vpImageMorphology::CONNEXITY_4)
VISP_EXPORT void VISP_NAMESPACE_NAME::floodFill (VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I, const VISP_NAMESPACE_ADDRESSING vpImagePoint &seedPoint, const unsigned char oldValue, const unsigned char newValue, const VISP_NAMESPACE_ADDRESSING vpImageMorphology::vpConnexityType &connexity=VISP_NAMESPACE_ADDRESSING vpImageMorphology::CONNEXITY_4)

Detailed Description

Connected components.

Tutorials

If you are interested in image processing, you may have a look at

Function Documentation

◆ connectedComponents()

VISP_EXPORT void VISP_NAMESPACE_NAME::connectedComponents ( const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & I,
VISP_NAMESPACE_ADDRESSING vpImage< int > & labels,
int & nbComponents,
const VISP_NAMESPACE_ADDRESSING vpImageMorphology::vpConnexityType & connexity = VISP_NAMESPACE_ADDRESSING vpImageMorphology::CONNEXITY_4 )

Perform connected components detection.

Parameters
I: Input image (0 means background).
labels: Label image that contain for each position the component label.
nbComponents: Number of connected components.
connexity: Type of connexity.
Examples
testConnectedComponents.cpp, and tutorial-connected-components.cpp.

References vpImageMorphology::CONNEXITY_4.

◆ floodFill()

VISP_EXPORT void VISP_NAMESPACE_NAME::floodFill ( VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & I,
const VISP_NAMESPACE_ADDRESSING vpImagePoint & seedPoint,
const unsigned char oldValue,
const unsigned char newValue,
const VISP_NAMESPACE_ADDRESSING vpImageMorphology::vpConnexityType & connexity = VISP_NAMESPACE_ADDRESSING vpImageMorphology::CONNEXITY_4 )

Perform the flood fill algorithm.

Parameters
I: Input image to flood fill.
seedPoint: Seed position in the image.
oldValue: Old value to replace.
newValue: New value to flood fill.
connexity: Type of connexity.
Examples
testFloodFill.cpp, and tutorial-flood-fill.cpp.

References vpImageMorphology::CONNEXITY_4.

Referenced by fillHoles().