![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Computation of the binary threshold on one image, using Kittler method. More...
| IPSDKIPLBINARIZATION_API ipReal64 | ipsdk::imaproc::bin::kittlerThreshold (const ipsdk::image::ImageConstPtr &pInImg) |
| wrapper function for Kittler binary threshold on one image More... | |
| IPSDKIPLBINARIZATION_API ipReal64 | ipsdk::imaproc::bin::kittlerThreshold (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::HistogramDataPtr &pHistogram) |
| wrapper function for computing the Kittler threshold on one image, using the histogram provided as argument More... | |
Computation of the binary threshold on one image, using Kittler method.
Kittler's method is used to automatically perform the binarization of an input image [1]. It assumes that the image is bi-modal (pixel intensities can be distinguished in 2 classes: background pixels and foreground pixels) and that each mode can be approximated by a Gaussian. It then calculates the optimal threshold
that separates these 2 classes, by minimizing the error :
Where
is the cumulated histogram for the class
and
is the associated standard deviation :
With
being the number of pixel in the image and
the histograme value for the intensity
.
[1] Kittler, J. & Illingworth, J. Minimum error thresholding Pattern Recognition, 1986, 19, 41 - 47
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InOutOptHistogram | [InOut Optional] histogram properties | X |
| ipsdk::imaproc::attr::OutThreshold | [Output] threshold value for image binarization | X |
Global rule description for algorithm :
ipsdk::processor::none ()
| IPSDKIPLBINARIZATION_API ipReal64 ipsdk::imaproc::bin::kittlerThreshold | ( | const ipsdk::image::ImageConstPtr & | pInImg | ) |
wrapper function for Kittler binary threshold on one image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
wrapper function for computing the Kittler threshold on one image. In this version of the function, the histogram of the image is automatically computed, with a bin width of 1.0
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API ipReal64 ipsdk::imaproc::bin::kittlerThreshold | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistogramDataPtr & | pHistogram | ||
| ) |
wrapper function for computing the Kittler threshold on one image, using the histogram provided as argument
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14