$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Accumulator Computation

Functions

template<typename A , typename I >
A::result mln::data::compute (const Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
A::result mln::accu::compute (const Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
A::result mln::data::compute (Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
mln::internal::meta_accu_ret_result_helper
< A, util::pix< I > >::result 
mln::accu::compute (const Meta_Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
mln::internal::meta_accu_ret_result_helper
< A, typename I::value >
::result 
mln::data::compute (const Meta_Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
mln::data::compute_in_window (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
mln::data::compute_in_window (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win)
template<typename A , typename I >
A::result mln::data::update (Accumulator< A > &a, const Image< I > &input)

Detailed Description

All routines related to Accumulator computation.

Function Documentation

template<typename A , typename I >
A ::result mln::data::compute ( const Accumulator< A > &  a,
const Image< I > &  input 
)

Compute an accumulator onto the pixel values of the image input. Be ware that the given accumulator won't be modified and won't store any result.

Parameters
[in]aAn accumulator.
[in]inputThe input image.
Returns
The accumulator result.

It fully relies on data::update.

template<typename A , typename I >
A ::result mln::accu::compute ( const Accumulator< A > &  a,
const Image< I > &  input 
)

Make an accumulator compute the pixels of the image input.

Parameters
[in]aAn accumulator.
[in]inputThe input image.

This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.

Warning
This routine does not perform a.init().
template<typename A , typename I >
A ::result mln::data::compute ( Accumulator< A > &  a,
const Image< I > &  input 
)

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

Parameters
[in,out]aAn accumulator.
[in]inputThe input image.
Returns
The accumulator result.

It fully relies on data::update.

template<typename A , typename I >
mln::internal::meta_accu_ret_result_helper< A , util::pix<I> >::result mln::accu::compute ( const Meta_Accumulator< A > &  a,
const Image< I > &  input 
)

Make an accumulator compute the pixels of the image input.

Parameters
[in]aA meta accumulator.
[in]inputThe input image.

This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.

Warning
This routine does not perform a.init().
template<typename A , typename I >
mln::internal::meta_accu_ret_result_helper< A , typename I ::value >::result mln::data::compute ( const Meta_Accumulator< A > &  a,
const Image< I > &  input 
)

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

Parameters
[in]aA meta-accumulator.
[in]inputThe input image.
Returns
The accumulator result.
template<typename A , typename I , typename W >
mln::trait::ch_value< I , typename A ::result >::ret mln::data::compute_in_window ( const Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win 
)

Compute an accumulator for each image pixel values using neighbor pixel values.

Parameters
[in]aAn accumulator.
[in]inputThe input image.
[in]winA window.
Returns
An image with the accumulator results as value for each site.
template<typename A , typename I , typename W >
mln::trait::ch_value< I , typename A ::result >::ret mln::data::compute_in_window ( const Meta_Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win 
)

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

Parameters
[in]aA meta-accumulator.
[in]inputThe input image.
[in]winA window.
Returns
An image with the accumulator results as value for each site.
template<typename A , typename I >
A ::result mln::data::update ( Accumulator< A > &  a,
const Image< I > &  input 
)

Update an accumulator with the pixel values of the image input.

Parameters
[in]aThe accumulator.
[in]inputThe input image.
Returns
The accumulator result.