![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
binarize an input image according an adaptive threshold based on the mean intensity of the pixel's neighbourhood More...
| IPSDKIPLBINARIZATION_API ipsdk::image::ImagePtr | ipsdk::imaproc::bin::adaptiveThresholdMean2dImg (const ipsdk::image::ImageConstPtr &pInImg, const ipUInt64 halfKnlSize) |
| wrapper function for binarize an input image according an adaptive threshold based on the mean intensity of the pixel's neighbourhood More... | |
| IPSDKIPLBINARIZATION_API void | ipsdk::imaproc::bin::adaptiveThresholdMean2dImg (const image::ImageConstPtr &pInImg, const ipUInt64 halfKnlSize, const ipsdk::image::ImagePtr &pOutBinImg) |
| wrapper function for binarize an input image according an adaptive threshold based on the mean intensity of the pixel's neighbourhood More... | |
binarize an input image according an adaptive threshold based on the mean intensity of the pixel's neighbourhood
For each pixel, the algorithm computes a threshold according to a neighbourhood described by
. The computed threshold
is the mean intensity along the pixel's neighbourhood
:
Where
is the number of pixels in
.
This algorithm is equivalent to the Adaptive Threshold 2d binarization algorithm, with each kernel coefficient set to
. However, it is optimized to compute a mean adaptive threshold based binarization and yields better performances.
Here is an example of an adaptive image thresholding applied to a 8-bits grey level image, with a kernel size of 5 (
) :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InHalfKnlSize | [Input] half kernel size (square or cubic kernel) | X |
| 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)
| IPSDKIPLBINARIZATION_API ipsdk::image::ImagePtr ipsdk::imaproc::bin::adaptiveThresholdMean2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipUInt64 | halfKnlSize | ||
| ) |
wrapper function for binarize an input image according an adaptive threshold based on the mean intensity of the pixel's neighbourhood
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API void ipsdk::imaproc::bin::adaptiveThresholdMean2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipUInt64 | halfKnlSize, | ||
| const ipsdk::image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for binarize an input image according an adaptive threshold based on the mean intensity of the pixel's neighbourhood
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14