Namespaces | Functions

mln::binarization Namespace Reference

Namespace of "point-wise" expression tools. More...

Namespaces

namespace  impl

Functions

template<typename I , typename F >
mln::trait::ch_value< I, bool >
::ret 
binarization (const Image< I > &input, const Function_v2b< F > &fun)
 Thresholds the values of input so that they can be stored in the output binary image.
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
threshold (const Image< I > &input, const typename I::value threshold)
 Thresholds the values of input so that they can be stored in the output binary image.

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] input The input image.
[in] fun The thresholding function, from value(I) to bool.

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

References mln::binarization::impl::binarization_(), mln::trace::entering(), mln::exact(), and mln::trace::exiting().

Referenced by threshold().

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

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

Parameters:
[in] input The input image.
[in] threshold The threshold.

If input(p) is greater or equal than the threshold, the value in the output image in the same point will be TRUE, else FALSE.

References binarization(), mln::trace::entering(), mln::exact(), and mln::trace::exiting().