![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
removal of connected components in contact with image borders in binary or label 2d images More...
| IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::advmorpho::removeBorder2dImg (const image::ImageConstPtr &pInBinLabImg) |
| wrapper function for removal of connected components in contact with image borders in binary or label 2d images More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API void | ipsdk::imaproc::advmorpho::removeBorder2dImg (const image::ImageConstPtr &pInBinLabImg, const eNeighborhood2dType &inOptNeighborhood2d, const ipsdk::imaproc::attr::eProcessingOptimizationPolicy &inOptOptimizationPolicy, const image::ImagePtr &pOutImg) |
| wrapper function for removal of connected components in contact with image borders in binary or label 2d images More... | |
removal of connected components in contact with image borders in binary or label 2d images
This algorithm allows to remove connected components in contact with at least an image border in an input binary or label image InBinLabImg with respect to a given neighborhood 2d policy (see 2d neighborhood models).
Two versions of binary algorithm are implemented which can be selected using attribute InOptOptimizationPolicy which associated to enumerate ipsdk::imaproc::attr::eProcessingOptimizationPolicy :
Here is an example of border removal on a binary 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::InOptNeighborhood2d | [Input optional] neighborhood 2d type for operation | X |
| ipsdk::imaproc::attr::InOptOptimizationPolicy | [Input Optional] processing optimization policy for algorithm | X |
| ipsdk::imaproc::attr::OutOptWk1BinImg | [Output Optional] Temporary working image for algorithm | X |
| ipsdk::imaproc::attr::OutOptWk1LabelImg | [Output Optional] Temporary working image for algorithm | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInBinLabImg) |
Global rule description for algorithm :
((ipsdk::imaproc::matchSizeAndType (_pInBinLabImg,_pOutImg)) &&
(ipsdk::processor::ifIsSet (
_pOutOptWk1BinImg, (
ipsdk::imaproc::matchSize (_pInBinLabImg,_pOutOptWk1BinImg)))) &&
(ipsdk::processor::ifIsSet (
_pOutOptWk1LabelImg, (
ipsdk::imaproc::matchSize (_pInBinLabImg,_pOutOptWk1LabelImg)))))
| IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::removeBorder2dImg | ( | const image::ImageConstPtr & | pInBinLabImg | ) |
wrapper function for removal of connected components in contact with image borders in binary or label 2d images
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::removeBorder2dImg | ( | const image::ImageConstPtr & | pInBinLabImg, |
| const eNeighborhood2dType & | inOptNeighborhood2d, | ||
| const ipsdk::imaproc::attr::eProcessingOptimizationPolicy & | inOptOptimizationPolicy, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for removal of connected components in contact with image borders in binary or label 2d images
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14