![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
computation of iso data threshold on one image More...
Functions | |
| IPSDKIPLBINARIZATION_API ipReal64 | ipsdk::imaproc::bin::isoDataThreshold (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::HistogramDataPtr &pHistogram) |
| wrapper function for computing the iso data threshold on one image, using the histogram provided as argument More... | |
| IPSDKIPLBINARIZATION_API IsoDataResult | ipsdk::imaproc::bin::isoDataThresholdImg (const ipsdk::image::ImageConstPtr &pInImg) |
| wrapper function for computation of iso data 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::isoDataThresholdImg (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::image::ImagePtr &pOutBinImg) |
| wrapper function for computation of iso data 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 IsoDataResult | ipsdk::imaproc::bin::isoDataThresholdImg (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::HistogramDataPtr &pHistogram) |
| wrapper function for computation of iso data threshold on one image histogram used to compute the threshold is provided as argument of the function More... | |
| IPSDKIPLBINARIZATION_API ipReal64 | ipsdk::imaproc::bin::isoDataThresholdImg (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::HistogramDataPtr &pHistogram, const ipsdk::image::ImagePtr &pOutBinImg) |
| wrapper function for computation of iso data threshold on one image histogram used to compute the threshold is provided as argument of the function More... | |
computation of iso data threshold on one image
Ridler and Calvard'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) and calculate the optimal threshold that separates these 2 classes. The threshold
is the equidistant value between the average intensities of both classes:
On output, binarized image values are given by:
with
the threshold computed from isodata-based method.
Input and output images must have same size.
Here is an example of automatic isodata image thresholding applied to a 8-bits grey level image (on ouput, computed threshold
) :
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::InOptWeight | [Input Optional] Weighting coefficient | X |
| ipsdk::imaproc::attr::OutThreshold | [Output] threshold value for image binarization | 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 ipReal64 ipsdk::imaproc::bin::isoDataThreshold | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistogramDataPtr & | pHistogram | ||
| ) |
wrapper function for computing the iso data threshold on one image, using the histogram provided as argument
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API IsoDataResult ipsdk::imaproc::bin::isoDataThresholdImg | ( | const ipsdk::image::ImageConstPtr & | pInImg | ) |
wrapper function for computation of iso data 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 IsoDataResult ipsdk::imaproc::bin::isoDataThresholdImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistogramDataPtr & | pHistogram | ||
| ) |
wrapper function for computation of iso data threshold on one image histogram used to compute the threshold is provided as argument of the function
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBINARIZATION_API ipReal64 ipsdk::imaproc::bin::isoDataThresholdImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for computation of iso data 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::isoDataThresholdImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistogramDataPtr & | pHistogram, | ||
| const ipsdk::image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for computation of iso data threshold on one image histogram used to compute the threshold is provided as argument of the function
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14