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

Functions

template<typename I >
mln::trait::ch_value< I, bool >
::ret 
global_threshold (const Image< I > &input, const typename I::value &threshold)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
global_threshold_auto (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
kim (const Image< I > &input, unsigned window_size, double k)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
kim (const Image< I > &input, unsigned window_size)
template<typename I , typename T >
mln::trait::ch_value< I, bool >
::ret 
local_threshold (const Image< I > &input, const Image< T > &threshold)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
niblack (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
niblack (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
niblack (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
niblack_fast (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
niblack_fast (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
niblack_fast (const Image< I > &input)
template<typename I , typename J >
mln::trait::ch_value< I,
value::int_u8 >::ret 
niblack_threshold (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I,
value::int_u8 >::ret 
niblack_threshold (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I,
value::int_u8 >::ret 
niblack_threshold (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
otsu (const Image< I > &input)
template<typename I >
I::value otsu_threshold (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms (const Image< I > &input_1, unsigned w_1, unsigned s, image2d< mln::util::couple< double, double > > &integral_sum_sum_2)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms (const Image< I > &input_1, unsigned w_1, unsigned s)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms (const Image< I > &input_1, unsigned w_1)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms (const Image< I > &input_1, unsigned w_1, unsigned s, double k2, double k3, double k4)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms (const Image< I > &input_1, unsigned w_1, unsigned s, double all_k)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms_split (const Image< I > &input_1, unsigned w_1, unsigned s, unsigned min_ntrue, double k2, double k3, double k4)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms_split (const Image< I > &input_1, unsigned w_1, unsigned s, unsigned min_ntrue, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
sauvola_ms_split (const Image< I > &input_1, unsigned w_1, unsigned s, unsigned min_ntrue)
template<typename I , typename J >
mln::trait::ch_value< I,
value::int_u8 >::ret 
sauvola_threshold (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I,
value::int_u8 >::ret 
sauvola_threshold (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I,
value::int_u8 >::ret 
sauvola_threshold (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
singh (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
singh (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
singh (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
wolf (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
wolf (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
wolf (const Image< I > &input)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
wolf_fast (const Image< I > &input, unsigned window_size, double K)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
wolf_fast (const Image< I > &input, unsigned window_size)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
wolf_fast (const Image< I > &input)

Detailed Description

Namespace of binarization routines.

Function Documentation

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::global_threshold ( const Image< I > &  input,
const typename I::value threshold 
)

Binarize an image using a global threshold value.

For a site 'p' in input image:

output(p) = input(p) >= threshold

Parameters
[in]inputA grayscale image.
[in]thresholdA value.
Returns
A boolean image.
template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::global_threshold_auto ( const Image< I > &  input)

Simple binarization of a gray-level document.

Automatically find a global threshold for the given image.

Parameters
[in]inputA gray-level image.
Returns
A Boolean image.
template<typename I , typename T >
mln::trait::ch_value< I , bool >::ret scribo::binarization::local_threshold ( const Image< I > &  input,
const Image< T > &  threshold 
)

Binarize an image using a threshold image.

The threshold image is used to specify a specific threshold for each site.

For a site 'p' in input image:

output(p) = input(p) >= threshold(p)

Precondition
input.domain() == threshold.domain()
Parameters
[in]inputA grayscale image.
[in]thresholdA grayscale image.
Returns
A boolean image.
template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::sauvola_ms ( const Image< I > &  input_1,
unsigned  w_1,
unsigned  s,
double  k2,
double  k3,
double  k4 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Allow to specify a different k parameter for each scale.

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::sauvola_ms ( const Image< I > &  input_1,
unsigned  w_1,
unsigned  s,
double  all_k 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Allow to specify the same k parameter for all scales.

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::singh ( const Image< I > &  input,
unsigned  window_size,
double  K 
)

Convert an image into a binary image.

Parameters
[in]inputAn image.
[in]window_sizeThe window size.
[in]KSingh's formulae constant.
Returns
A binary image.
template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::singh ( const Image< I > &  input,
unsigned  window_size 
)

Convert an image into a binary image.

Singh's formulae constant K is set to 0.34.

Parameters
[in]inputAn image.
[in]window_sizeThe window size.
Returns
A binary image.
template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::binarization::singh ( const Image< I > &  input)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The window size is set to 11.