![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
TopHat binary threshold on one 2d image. More...
| IPSDKIPLBINARIZATION_API image::ImagePtr | ipsdk::imaproc::bin::darkTopHat2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const ipReal64 inTopHatThreshold) |
| wrapper function for dark TopHat binary threshold on one 2d image More... | |
| IPSDKIPLBINARIZATION_API image::ImagePtr | ipsdk::imaproc::bin::darkTopHat2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const ipReal64 inTopHatThreshold, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy) |
| wrapper function for dark TopHat binary threshold on one 2d image More... | |
| IPSDKIPLBINARIZATION_API void | ipsdk::imaproc::bin::darkTopHat2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const ipReal64 inTopHatThreshold, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy, const image::ImagePtr &pOutBinImg) |
| wrapper function for dark TopHat binary threshold on one 2d image More... | |
| IPSDKIPLBINARIZATION_API image::ImagePtr | ipsdk::imaproc::bin::lightTopHat2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const ipReal64 inTopHatThreshold) |
| wrapper function for light TopHat binary threshold on one 2d image More... | |
| IPSDKIPLBINARIZATION_API image::ImagePtr | ipsdk::imaproc::bin::lightTopHat2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const ipReal64 inTopHatThreshold, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy) |
| wrapper function for light TopHat binary threshold on one 2d image More... | |
| IPSDKIPLBINARIZATION_API void | ipsdk::imaproc::bin::lightTopHat2dImg (const image::ImageConstPtr &pInImg, const StructuringElementXYInfoConstPtr &pInSEXY, const ipReal64 inTopHatThreshold, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy, const image::ImagePtr &pOutBinImg) |
| wrapper function for light TopHat binary threshold on one 2d image More... | |
TopHat binary threshold on one 2d image.
Top-Hat transform is an operation which allows to extract small details from an image. This transformation is in this case associated to a thresholding operation to obtain a binary image. This algorithm can be customized to search for dark (black, which is the default) or light (white) small particules.
Top-Hat transformation, given a structuring element
, is associated to following formula :
Where
and
are respectively a closing and an opening operation (see Opening 2d and Closing 2d).
Here is an example of a top-hat transform 2d operation applied to a gray scale input image with a circular structuring element with radius 20 :
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::InShapeGreyscaleType | [Input] shape greyscale type considered during processing | X |
| ipsdk::imaproc::attr::InTopHatThreshold | [Input] threshold value used for top hat binarization | X |
| ipsdk::imaproc::attr::InOptBorderExtensionPolicy | [Input Optional] flag indicating border extension policy for processing | X |
| ipsdk::imaproc::attr::OutOptWk1Img | [Output Optional] Temporary working image for algorithm | X |
| ipsdk::imaproc::attr::OutOptWk2Img | [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::OutBinImg | [Output] binary image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutBinImg, _pInImg, image::eImageBufferType::eIBT_Binary) |
Global rule description for algorithm :
((ipsdk::imaproc::matchSize (_pInImg,_pOutBinImg)) &&
(ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutWk1Img)) &&
(ipsdk::imaproc::noInSitu (_pInImg,_pOutWk1Img)) &&
(ipsdk::processor::ifIsSet (_pOutOptWk1Img,
ipsdk::imaproc::customImageProperty (_pOutOptWk1Img,
morpho::matchBorderExtension1 (_pInImg,_pInSEXY,_pInOptBorderExtensionPolicy)))) &&
(ipsdk::processor::ifIsSet (_pOutOptWk2Img,
ipsdk::imaproc::customImageProperty (_pOutOptWk2Img,
morpho::matchBorderExtension2 (_pInImg,_pInSEXY,_pInOptBorderExtensionPolicy)))))
| IPSDKIPLBINARIZATION_API image::ImagePtr ipsdk::imaproc::bin::darkTopHat2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const ipReal64 | inTopHatThreshold | ||
| ) |
wrapper function for dark TopHat binary threshold on one 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API image::ImagePtr ipsdk::imaproc::bin::lightTopHat2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const ipReal64 | inTopHatThreshold | ||
| ) |
wrapper function for light TopHat binary threshold on one 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API image::ImagePtr ipsdk::imaproc::bin::darkTopHat2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const ipReal64 | inTopHatThreshold, | ||
| const attr::eBorderExtensionPolicy & | inOptBorderExtensionPolicy | ||
| ) |
wrapper function for dark TopHat binary threshold on one 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API void ipsdk::imaproc::bin::darkTopHat2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const ipReal64 | inTopHatThreshold, | ||
| const attr::eBorderExtensionPolicy & | inOptBorderExtensionPolicy, | ||
| const image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for dark TopHat binary threshold on one 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API image::ImagePtr ipsdk::imaproc::bin::lightTopHat2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const ipReal64 | inTopHatThreshold, | ||
| const attr::eBorderExtensionPolicy & | inOptBorderExtensionPolicy | ||
| ) |
wrapper function for light TopHat binary threshold on one 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API void ipsdk::imaproc::bin::lightTopHat2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const StructuringElementXYInfoConstPtr & | pInSEXY, | ||
| const ipReal64 | inTopHatThreshold, | ||
| const attr::eBorderExtensionPolicy & | inOptBorderExtensionPolicy, | ||
| const image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for light TopHat binary threshold on one 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14