Visual Servoing Platform  version 3.6.1 under development (2024-11-21)

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.

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.

◆ 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.

Referenced by VISP_NAMESPACE_NAME::fillHoles().