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

Public Member Functions

double operator() (const V &v, const double m_x_y, const double K) const
double operator() (const V &v, const double m_x_y) const

Detailed Description

template<typename V>
struct scribo::binarization::internal::singh_formula< V >

Definition at line 58 of file singh_formula.hh.

Member Function Documentation

template<typename V >
double scribo::binarization::internal::singh_formula< V >::operator() ( const V &  v,
const double  m_x_y,
const double  K 
) const

Compute a threshold using Singh's formula.

Parameters
[in]vThe current image value.
[in]m_x_yMean value.
[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.
template<typename V >
double scribo::binarization::internal::singh_formula< V >::operator() ( const V &  v,
const double  m_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 = 0.34.