![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Connected component image 2d labeling algorithm. More...
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr | ipsdk::imaproc::advmorpho::connectedComponent2dImg (const ipsdk::image::ImageConstPtr &pInBinLabImg) |
| wrapper function for Connected component image 2d labeling algorithm More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr | ipsdk::imaproc::advmorpho::connectedComponent2dImg (const ipsdk::image::ImageConstPtr &pInBinLabImg, const ipsdk::eNeighborhood2dType &inOptNeighborhood2d) |
| wrapper function for Connected component image 2d labeling algorithm More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::ipUInt32 | ipsdk::imaproc::advmorpho::connectedComponent2dImg (const ipsdk::image::ImageConstPtr &pInBinLabImg, const ipsdk::eNeighborhood2dType &inOptNeighborhood2d, const ipsdk::image::ImagePtr &pOutLabelImg) |
| wrapper function for Connected component image 2d labeling algorithm More... | |
Connected component image 2d labeling algorithm.
Connected component labeling algorithm allows to uniquely labeled subsets of connected components with respect to a given neighborhood policy.
Output labels start with 1 and are consecutive with respect to scanning order (from lower x then y to higher).
For more informations on used neighborhood 2d types report to 2d neighborhood models.
Resulting image buffer type must be one of the following :
Here is an example of connected component extraction operation applied to a binary input image (with 8 connexity neighborhood type) :
Here is an example of connected component extraction operation applied to a binary input image (with 4 connexity neighborhood type) :
The algorithm also allows to relabel a label image. This way all connected component will be assigned to a unique label.
Here is an example of relabel of a label image using the connected component algorithm in 2d case :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinLabImg | [Input] binary or label image for processing operation | X |
| ipsdk::imaproc::attr::InOptNeighborhood2d | [Input optional] neighborhood 2d type for operation | X |
| ipsdk::imaproc::attr::OutLabelImg | [Output] label image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutLabelImg, _pInBinLabImg, ipsdk::image::eImageBufferType::eIBT_Label16) |
| ipsdk::imaproc::attr::OutMaxLabel | [Output] maximum computed label value | X |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInBinLabImg,_pOutLabelImg)
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr ipsdk::imaproc::advmorpho::connectedComponent2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg | ) |
wrapper function for Connected component image 2d labeling algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr ipsdk::imaproc::advmorpho::connectedComponent2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const ipsdk::eNeighborhood2dType & | inOptNeighborhood2d | ||
| ) |
wrapper function for Connected component image 2d labeling algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::ipUInt32 ipsdk::imaproc::advmorpho::connectedComponent2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const ipsdk::eNeighborhood2dType & | inOptNeighborhood2d, | ||
| const ipsdk::image::ImagePtr & | pOutLabelImg | ||
| ) |
wrapper function for Connected component image 2d labeling algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14