![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Algorithm for image 2d dilation. More...
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::dilate2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY) |
| wrapper function for Algorithm for image 2d dilation More... | |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::dilate2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const image::ImagePtr &pOutImg) |
| wrapper function for Algorithm for image 2d dilation More... | |
Algorithm for image 2d dilation.
Erosion and dilation are the two fundamental morphological operations.
These operations use a flat (with values in [0, 1]) structuring element combined to a Minkowski sum (in case of dilation) or subtraction (in case of erosion).
In dilation 2d case with an input image
and an input flat structuring element
, Minkowski sum is given by :
with
In binary cases, this equation can be reexpressed as :
In grayscale cases, this equation can be reexpressed as :
Here is an example of a dilation 2d extraction operation applied to a binary input image with a circular structuring element with radius 3 :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InSEXY | [Input] structuring element xy for processing operation | X |
| ipsdk::imaproc::attr::OutOptWk1Img | [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 (_pOutOptWk1Img,
ipsdk::imaproc::customImageProperty (_pOutOptWk1Img,
matchSEMorphology (_pInImg,_pInSEXY)))))
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::dilate2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY | ||
| ) |
wrapper function for Algorithm for image 2d dilation
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::dilate2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Algorithm for image 2d dilation
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14