![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
removal of small connected component in binary or label 2d image More...
| IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::advmorpho::removeSmallShape2dImg (const image::ImageConstPtr &pInBinLabImg, const ipUInt64 inMinShapeSize) |
| wrapper function for removal of small connected component in binary or label 2d image More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API void | ipsdk::imaproc::advmorpho::removeSmallShape2dImg (const image::ImageConstPtr &pInBinLabImg, const ipUInt64 inMinShapeSize, const image::ImagePtr &pOutImg) |
| wrapper function for removal of small connected component in binary or label 2d image More... | |
removal of small connected component in binary or label 2d image
This algorithm allows to remove connected components into a binary or label 2d input image associated to a number of pixels lower than a given input threshold value InMinShapeSize.
Output result image OutImg has same type as input image InBinLabImg. This means that an input binary image will produce an output binary image and that an input label image will produce an output label image. Note that in label case, input labels index are reordered to fill index list holes created by shape filtering.
Here is an example of small connected component removal on an image 2d :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinLabImg | [Input] binary or label image for processing operation | X |
| ipsdk::imaproc::attr::InMinShapeSize | [Input] size of shape for processing operation | X |
| ipsdk::imaproc::attr::OutOptWk1LabelImg | [Output Optional] Temporary working image for algorithm | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | duplicateInOut (_pOutImg, _pInBinLabImg) |
Global rule description for algorithm :
((ipsdk::imaproc::matchSizeAndType (_pInBinLabImg,_pOutImg)) &&
(ipsdk::processor::ifIsSet (
_pOutOptWk1LabelImg, (
ipsdk::imaproc::matchSize (_pInBinLabImg,_pOutOptWk1LabelImg)))))
| IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::removeSmallShape2dImg | ( | const image::ImageConstPtr & | pInBinLabImg, |
| const ipUInt64 | inMinShapeSize | ||
| ) |
wrapper function for removal of small connected component in binary or label 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::removeSmallShape2dImg | ( | const image::ImageConstPtr & | pInBinLabImg, |
| const ipUInt64 | inMinShapeSize, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for removal of small connected component in binary or label 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14