![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
gradient computation on a 2d image using morphological operations More...
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::morphoGradient2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY) |
| wrapper function for gradient computation on a 2d image using morphological operations More... | |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::morphoGradient2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const image::ImagePtr &pOutImg) |
| wrapper function for gradient computation on a 2d image using morphological operations More... | |
gradient computation on a 2d image using morphological operations
A morphological gradient is the difference between the dilation and the erosion of a given image. It is a fast way to compute the gradient of an image. Output image pixel values, given a structuring element
, are given by the following formula :
Here is an example of a morphological gradient 2d operation applied to a gray scale input image with a circular structuring element with radius 2 :
This morphological operation can also be used to enhance gradients in a specific direction. This is illustrated with following example where the same input image has been processed with a linear structuring element with radius 2 and a 60 degrees orientation :
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::OutWk1Img | [Output] Temporary working image for algorithm | ipsdk::imaproc::duplicateInOut (_pOutWk1Img, _pInImg) |
| 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::imaproc::matchSizeAndType (_pInImg,_pOutWk1Img)) &&
(ipsdk::imaproc::noInSitu (_pInImg,_pOutImg)) &&
(ipsdk::imaproc::noInSitu (_pInImg,_pOutWk1Img)) &&
(ipsdk::processor::ifIsSet (
_pOutOptWk1Img, (
ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutOptWk1Img)) &&
(ipsdk::imaproc::noInSitu (_pInImg,_pOutOptWk1Img)))))
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::morphoGradient2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY | ||
| ) |
wrapper function for gradient computation on a 2d image using morphological operations
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::morphoGradient2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for gradient computation on a 2d image using morphological operations
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14