mln::accu::impl::generic Namespace Reference


Functions

template<typename A, typename I>
A::result compute (const Accumulator< A > &, const Image< I > &input_)
 Make an accumulator compute the pixels of the image input.
template<typename Meta_Accu, unsigned Dir, typename I, typename O>
void line (const Image< I > &input_, const typename I::site &p_start, unsigned len_, unsigned half_length_, Image< O > &output_)
template<typename I, typename A, typename W>
mln::trait::ch_value< I,
typename A::result >::ret 
transform (const Image< I > &input_, const Accumulator< A > &a_, const Window< W > &win_)
template<typename A, typename I>
mln::trait::ch_value< I,
typename A::result >::ret 
transform_line (const Accumulator< A > &a_, const Image< I > &input_, unsigned length, unsigned dir)
template<typename I, typename A, typename W>
mln::trait::ch_value< I,
typename A::result >::ret 
transform_stop (const Image< I > &input_, const Accumulator< A > &a_, const Window< W > &win_)


Function Documentation

template<typename A, typename I>
A ::result mln::accu::impl::generic::compute ( const Accumulator< A > &  ,
const Image< I > &  input_ 
) [inline]

Make an accumulator compute the pixels of the image input.

Compute an accumulator onto the pixel values of the image input.

Parameters:
[in] input The input image.
[in] a An accumulator.
This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.

Warning:
This routine does not perform a.init().

Definition at line 91 of file accu/compute.hh.

References mln::accu::internal::compute_dispatch(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), and mln::make::pix().

Referenced by mln::labeling::colorize(), mln::accu::internal::compute_dispatch(), mln::labeled_image< I >::init_(), mln::labeled_image< I >::labeled_image(), mln::estim::mean(), mln::estim::min_max(), mln::labeling::pack(), mln::labeling::pack_inplace(), and mln::estim::sum().

template<typename Meta_Accu, unsigned Dir, typename I, typename O>
void mln::accu::impl::generic::line ( const Image< I > &  input_,
const typename I::site &  p_start,
unsigned  len_,
unsigned  half_length_,
Image< O > &  output_ 
) [inline]

Line an accumulator onto the pixel values of the image input.

Parameters:
[in] input The input image.
[in] p_start The starting site of the line.
[in] len The line length.
[in] half_length The half length of the line.
[in,out] output The resulting image.
This routine runs:
tmp = a
tmp.init()
accu::take(input, tmp)
return tmp.to_result()

Definition at line 114 of file accu/line.hh.

References mln::exact(), and mln::accu::input.

template<typename I, typename A, typename W>
mln::trait::ch_value< I , typename A ::result >::ret mln::accu::impl::generic::transform ( const Image< I > &  input_,
const Accumulator< A > &  a_,
const Window< W > &  win_ 
) [inline]

template<typename A, typename I>
mln::trait::ch_value< I , typename A ::result >::ret mln::accu::impl::generic::transform_line ( const Accumulator< A > &  a_,
const Image< I > &  input_,
unsigned  length,
unsigned  dir 
) [inline]

template<typename I, typename A, typename W>
mln::trait::ch_value< I , typename A ::result >::ret mln::accu::impl::generic::transform_stop ( const Image< I > &  input_,
const Accumulator< A > &  a_,
const Window< W > &  win_ 
) [inline]


Generated on Sun Apr 25 01:57:23 2010 for Milena (Olena) by  doxygen 1.5.6