Visual Servoing Platform
version 3.4.0
|
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 374 of file vpThreshold.cpp.
References vp::AUTO_THRESHOLD_HUANG, vp::AUTO_THRESHOLD_INTERMODES, vp::AUTO_THRESHOLD_ISODATA, vp::AUTO_THRESHOLD_MEAN, vp::AUTO_THRESHOLD_OTSU, vp::AUTO_THRESHOLD_TRIANGLE, vpImageTools::binarise(), and vpImage< Type >::getSize().