![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Computation of the binary threshold on one image, using Otsu method. More...
Functions | |
| IPSDKIPLBINARIZATION_API ipReal64 | ipsdk::imaproc::bin::otsuThreshold (const ipsdk::image::ImageConstPtr &pInImg) |
| wrapper function for computing the otsu 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 More... | |
| IPSDKIPLBINARIZATION_API ipReal64 | ipsdk::imaproc::bin::otsuThreshold (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::HistogramDataPtr &pHistogram) |
| wrapper function for computing the otsu threshold on one image, using the histogram provided as argument More... | |
Computation of the binary threshold on one image, using Otsu method.
Otsu's method is used to automatically perform the binarization of an input image. It assumes that the image is bi-modal (pixel intensities can be distinguished in 2 classes: background pixels and foreground pixels). It then calculates the optimal threshold that separates these 2 classes, by minimizing their intra-class variance. In this implementation, the alternate method (maximizing the inter-classes variance) is used. It has the advantage to be faster than the first method.
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::otsuThreshold | ( | const ipsdk::image::ImageConstPtr & | pInImg | ) |
wrapper function for computing the otsu 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::otsuThreshold | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistogramDataPtr & | pHistogram | ||
| ) |
wrapper function for computing the otsu threshold on one image, using the histogram provided as argument
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14