$extrastylesheet
Public Member Functions | |
double | operator() (const double m_x_y, const double s_x_y, const double K, const double R) const |
double | operator() (const double m_x_y, const double s_x_y) const |
Definition at line 63 of file sauvola_formula.hh.
double scribo::binarization::internal::sauvola_formula::operator() | ( | const double | m_x_y, |
const double | s_x_y, | ||
const double | K, | ||
const double | R | ||
) | const |
Compute a threshold using Sauvola's formula.
[in] | m_x_y | Mean value. |
[in] | s_x_y | Standard deviation. |
[in] | K | Controls the threshold value in the local window. The higher, the lower the threshold form the local mean m(x, y). |
[in] | R | Maximum value of the standard deviation (128 for grayscale documents). |