![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Shape 2d filtering algorithm. More...
Shape 2d filtering algorithm.
This algorithm allows to filter an input binary or label image with respect to a shape analysis measure formula.
OutImg output image type is given by InBinLabImg input image type which can be a binary or a label image.
This is a packaged algorithm which can be decomposed into the following steps :
Additional measures definition can be provided using InOptMeasureInfoSet2d attribute. This allows to create user custom parametred measures (such as histogram quantile which depends on a target quantile value).
Here is an example of shape 2d filtering operation where all small shapes are removed (used formula :
)
In this case input binary image (on the left) is filtered using a geometric criterion. Intermediate label (connected components) image and measurement results are displayed (on center) before final binary image result (on the right).
Here is an example of shape 2d filtering operation using an intensity criterion (used formula :
).
In this case input binary image (on the left) is filtered using a grey image (on the left) as analysis and measurement support. Intermediate label (connected components) image and measurement results are displayed (on center) before final binary image result (on the right).
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinLabImg | [Input] binary or label image for processing operation | X |
| ipsdk::imaproc::attr::InGreyMsrImg | [Input] grey image used for intensity measurements | X |
| ipsdk::imaproc::attr::InFilterFormula | [Input] Logic measure formula used for shape analysis filtering stage | X |
| ipsdk::imaproc::attr::InOptMeasureInfoSet2d | [Input Optional] shape analysis 2d measure information set | X |
| ipsdk::imaproc::attr::InOptContourExtractionSettings | [Input Optional] Settings used for contours extraction | X |
| ipsdk::imaproc::attr::InOptLabelReindexingPolicy | [Input Optional] used label reindexing policy | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | duplicateInOut (_pOutImg, _pInBinLabImg) |
Global rule description for algorithm :
(ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_XYZT,_pInBinLabImg,_pInGreyMsrImg)) &&
(ipsdk::imaproc::matchSizeAndType (_pInBinLabImg,_pOutImg))
| IPSDKIPLSHAPEANALYSIS_API ipsdk::image::ImagePtr ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const std::string & | inFilterFormula | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API ipsdk::image::ImagePtr ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const ipsdk::image::ImageConstPtr & | pInGreyMsrImg, | ||
| const std::string & | inFilterFormula | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API ipsdk::image::ImagePtr ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const std::string & | inFilterFormula, | ||
| const ipsdk::shape::analysis::MeasureInfoSetConstPtr & | pInOptMeasureInfoSet2d | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API ipsdk::image::ImagePtr ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const ipsdk::image::ImageConstPtr & | pInGreyMsrImg, | ||
| const std::string & | inFilterFormula, | ||
| const ipsdk::shape::analysis::MeasureInfoSetConstPtr & | pInOptMeasureInfoSet2d | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API void ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const std::string & | inFilterFormula, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API void ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const ipsdk::image::ImageConstPtr & | pInGreyMsrImg, | ||
| const std::string & | inFilterFormula, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API void ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const std::string & | inFilterFormula, | ||
| const ipsdk::shape::analysis::MeasureInfoSetConstPtr & | pInOptMeasureInfoSet2d, | ||
| const ipsdk::imaproc::attr::ContourExtractionSettingsConstPtr & | pInOptContourExtractionSettings, | ||
| const ipsdk::imaproc::attr::eLabelReindexingPolicy & | inOptLabelReindexingPolicy, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSHAPEANALYSIS_API void ipsdk::imaproc::shape::analysis::shapeFiltering2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinLabImg, |
| const ipsdk::image::ImageConstPtr & | pInGreyMsrImg, | ||
| const std::string & | inFilterFormula, | ||
| const ipsdk::shape::analysis::MeasureInfoSetConstPtr & | pInOptMeasureInfoSet2d, | ||
| const ipsdk::imaproc::attr::ContourExtractionSettingsConstPtr & | pInOptContourExtractionSettings, | ||
| const ipsdk::imaproc::attr::eLabelReindexingPolicy & | inOptLabelReindexingPolicy, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Shape 2d filtering algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14