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

Functions

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

Detailed Description

Namespace of "point-wise" expression tools.

Function Documentation

template<typename I , typename F >
mln::trait::ch_value< I , bool >::ret mln::binarization::binarization ( const Image< I > &  input,
const Function_v2b< F > &  fun 
)
inline

Thresholds the values of input so that they can be stored in the output binary image.

Parameters
[in]inputThe input image.
[in]funThe thresholding function, from value(I) to bool.

for_all(p), output(p) = fun(p)