Visual Servoing Platform
version 3.6.1 under development (2024-11-21)
|
Functions | |
VISP_EXPORT unsigned char | VISP_NAMESPACE_NAME::autoThreshold (VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I, const vpAutoThresholdMethod &method, const unsigned char backgroundValue=0, const unsigned char foregroundValue=255) |
Automatic thresholding using various well-known methods.
VISP_EXPORT unsigned char VISP_NAMESPACE_NAME::autoThreshold | ( | VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I, |
const 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. |