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

Public Member Functions

double operator() (const double m_x_y, const double s_x_y, const double K) const
double operator() (const double m_x_y, const double s_x_y) const

Detailed Description

Definition at line 52 of file niblack_formula.hh.

Member Function Documentation

double scribo::binarization::internal::niblack_formula::operator() ( const double  m_x_y,
const double  s_x_y,
const double  K 
) const

compute a threshold using Niblack's formula.

Parameters
[in]m_x_yMean value.
[in]s_x_yStandard deviation.
[in]KControl the threshold value in the local window. The higher, the lower the threshold form the local mean m(x, y).
Returns
A threshold.
double scribo::binarization::internal::niblack_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.2.