![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Binarize an input image according an adaptive threshold based on the pixel's neighbourhood. More...
| IPSDKIPLBINARIZATION_API ipsdk::image::ImagePtr | ipsdk::imaproc::bin::adaptiveThreshold2dImg (const ipsdk::image::ImageConstPtr &pInImg, const KernelXYConstPtr &pInKnlXY) |
| wrapper function for Binarize an input image according an adaptive threshold based on the pixel's neighbourhood More... | |
| IPSDKIPLBINARIZATION_API void | ipsdk::imaproc::bin::adaptiveThreshold2dImg (const image::ImageConstPtr &pInImg, const KernelXYConstPtr &pInKnlXY, const ipsdk::image::ImagePtr &pOutBinImg) |
| wrapper function for Binarize an input image according an adaptive threshold based on the pixel's neighbourhood More... | |
| IPSDKIPLBINARIZATION_API ipsdk::image::ImagePtr | ipsdk::imaproc::bin::adaptiveThresholdGaussian2dImg (const ipsdk::image::ImageConstPtr &pInImg, const ipUInt64 halfKnlSize) |
wrapper function for binarize an input image according an adaptive threshold based on the pixel's neighbourhood. Here, the threshold is defined as the sum of the intensities on the neighbourhood, weighted by Gaussian coefficients. The Gaussian coefficients are computed with the folowing standard deviation : More... | |
| IPSDKIPLBINARIZATION_API void | ipsdk::imaproc::bin::adaptiveThresholdGaussian2dImg (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 pixel's neighbourhood. Here, the threshold is defined as the sum of the intensities on the neighbourhood, weighted by Gaussian coefficients. The Gaussian coefficients are computed with the folowing standard deviation : More... | |
Binarize an input image according an adaptive threshold based on the pixel's neighbourhood.
For each pixel, the algorithm computes a threshold
according to a neighbourhood described by the input kernel size as follows :
Where
is the pixel's neighbourhood.
For example, the threshold can be the mean intensity in the neighbourhood with each kernel coefficients set to
, with
being the number of pixels in the neighbourhood.
It is also possible to call the adaptiveThresholdGaussian2dImg wrapper, which needs the half kernel size instead of the kernel as input data. In this case, a predifined Gaussian kernel is used, whose coefficients are computed with the folowing standard deviation
(see http://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html#Mat%20getGaussianKernel%28int%20ksize,%20double%20sigma,%20int%20ktype%29) :
Where
is the kernel size :
.
Here is an example of an adaptive image thresholding applied to a 8-bits grey level image, with a Gaussian kernel with a size of 5 :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InKnlXY | [Input] kernel xy for processing operation | 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::adaptiveThreshold2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const KernelXYConstPtr & | pInKnlXY | ||
| ) |
wrapper function for Binarize an input image according an adaptive threshold based on the pixel's neighbourhood
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API ipsdk::image::ImagePtr ipsdk::imaproc::bin::adaptiveThresholdGaussian2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipUInt64 | halfKnlSize | ||
| ) |
wrapper function for binarize an input image according an adaptive threshold based on the pixel's neighbourhood. Here, the threshold is defined as the sum of the intensities on the neighbourhood, weighted by Gaussian coefficients. The Gaussian coefficients are computed with the folowing standard deviation :
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API void ipsdk::imaproc::bin::adaptiveThreshold2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const KernelXYConstPtr & | pInKnlXY, | ||
| const ipsdk::image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for Binarize an input image according an adaptive threshold based on the pixel's neighbourhood
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API void ipsdk::imaproc::bin::adaptiveThresholdGaussian2dImg | ( | 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 pixel's neighbourhood. Here, the threshold is defined as the sum of the intensities on the neighbourhood, weighted by Gaussian coefficients. The Gaussian coefficients are computed with the folowing standard deviation :
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14