$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scribo::binarization::internal::sauvola_formula Struct Reference

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

Detailed Description

Definition at line 63 of file sauvola_formula.hh.

Member Function Documentation

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.

Parameters
[in]m_x_yMean value.
[in]s_x_yStandard deviation.
[in]KControls the threshold value in the local window. The higher, the lower the threshold form the local mean m(x, y).
[in]RMaximum value of the standard deviation (128 for grayscale documents).
Returns
A threshold.
double scribo::binarization::internal::sauvola_formula::operator() ( const double  m_x_y,
const double  s_x_y 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.K is set to 0.34 and R to 128.