![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
propagation of minima in a 2d image More...
| IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::advmorpho::minPropagation2dImg (const image::ImageConstPtr &pInImg) |
| wrapper function for propagation of minima in a 2d image More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API void | ipsdk::imaproc::advmorpho::minPropagation2dImg (const image::ImageConstPtr &pInImg, const eNeighborhood2dType &inOptNeighborhood2d, const ipsdk::imaproc::attr::eProcessingOptimizationPolicy &inOptOptimizationPolicy, const image::ImagePtr &pOutImg) |
| wrapper function for propagation of minima in a 2d image More... | |
propagation of minima in a 2d image
Minima propagation algorithm allows to propagate minimum grayscale values inside particules separated by zero grayscale pixel values with respect to a given neighborhood 2d policy (see 2d neighborhood models).
Two versions of this algorithm are implemented which can be selected using attribute InOptOptimizationPolicy which associated to enumerate ipsdk::imaproc::attr::eProcessingOptimizationPolicy :
The following figure illustrate algorithm effect on synthetic data :
Here is an example of minima propagation applied to a grayscale input image (with 8 connexity neighborhood type) :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] 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, _pInImg) |
Global rule description for algorithm :
((ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutImg)) &&
(ipsdk::processor::ifIsSet (
_pOutOptWk1BinImg, (
ipsdk::imaproc::matchSize (_pInImg,_pOutOptWk1BinImg)))) &&
(ipsdk::processor::ifIsSet (
_pOutOptWk1LabelImg, (
ipsdk::imaproc::matchSize (_pInImg,_pOutOptWk1LabelImg)))))
| IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::minPropagation2dImg | ( | const image::ImageConstPtr & | pInImg | ) |
wrapper function for propagation of minima in a 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::minPropagation2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const eNeighborhood2dType & | inOptNeighborhood2d, | ||
| const ipsdk::imaproc::attr::eProcessingOptimizationPolicy & | inOptOptimizationPolicy, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for propagation of minima in a 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14