![]() |
Visual Servoing Platform version 3.6.0
|
Deprecated functions | |
| VISP_EXPORT unsigned char | vp::autoThreshold (vpImage< unsigned char > &I, const vp::vpAutoThresholdMethod &method, const unsigned char backgroundValue=0, const unsigned char foregroundValue=255) |
Automatic thresholding using various well-known methods.
| unsigned char vp::autoThreshold | ( | vpImage< unsigned char > & | I, |
| const vp::vpAutoThresholdMethod & | method, | ||
| const unsigned char | backgroundValue = 0, | ||
| const unsigned char | foregroundValue = 255 ) |
Automatic thresholding.
| I | : Input grayscale image. |
| method | : Automatic thresholding method. |
| backgroundValue | : Value to set to the background. |
| foregroundValue | : Value to set to the foreground. |
Definition at line 361 of file vpThreshold.cpp.
References AUTO_THRESHOLD_HUANG, AUTO_THRESHOLD_INTERMODES, AUTO_THRESHOLD_ISODATA, AUTO_THRESHOLD_MEAN, AUTO_THRESHOLD_OTSU, AUTO_THRESHOLD_TRIANGLE, vpImageTools::binarise(), and vpHistogram::getSize().