mln::set::impl::generic Namespace Reference


Functions

template<typename S>
unsigned card (const Site_Set< S > &s_)
 Compute the cardinality of the site set s.
template<typename A, typename S>
A::result compute (const Accumulator< A > &a_, const Site_Set< S > &s_)
 Compute an accumulator onto a site set.
template<typename A, typename I, typename L>
util::array< typename A::result > compute_with_weights (const Accumulator< A > &a_, const Image< I > &w_, const Image< L > &label_, const typename L::value &nlabels)
 Generic implementation that computes an accumulator on every labeled sub-site-sets.
template<typename A, typename I>
A::result compute_with_weights (const Accumulator< A > &a_, const Image< I > &w_)
 Generic implementation that Computes an accumulator on a site set described by an image.


Function Documentation

template<typename S>
unsigned mln::set::impl::generic::card ( const Site_Set< S > &  s_  )  [inline]

Compute the cardinality of the site set s.

Definition at line 61 of file set/card.hh.

References mln::set::internal::card_dispatch(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), and mln::set::s.

Referenced by mln::set::internal::card_dispatch().

template<typename A, typename S>
A ::result mln::set::impl::generic::compute ( const Accumulator< A > &  a_,
const Site_Set< S > &  s_ 
) [inline]

Compute an accumulator onto a site set.

Parameters:
[in] a An accumulator.
[in] s A site set.
Returns:
The accumulator result.

Definition at line 82 of file set/compute.hh.

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

Referenced by mln::set::compute(), and mln::registration::icp().

template<typename A, typename I, typename L>
util::array<typename A ::result> mln::set::impl::generic::compute_with_weights ( const Accumulator< A > &  a_,
const Image< I > &  w_,
const Image< L > &  label_,
const typename L::value &  nlabels 
) [inline]

Generic implementation that computes an accumulator on every labeled sub-site-sets.

Compute an accumulator on every labeled sub-site-sets.

Parameters:
[in] a_ An accumulator.
[in] w_ An image of weights (a site -> a weight).
[in] label_ A label image.
[in] nlabels The number of labels in label.
Returns:
An array of accumulator result. One per label.

Definition at line 173 of file compute_with_weights.hh.

References compute_with_weights(), mln::set::internal::compute_with_weights_tests(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), and mln::set::w.

template<typename A, typename I>
A ::result mln::set::impl::generic::compute_with_weights ( const Accumulator< A > &  a_,
const Image< I > &  w_ 
) [inline]

Generic implementation that Computes an accumulator on a site set described by an image.

Compute an accumulator on a site set described by an image.

Parameters:
[in] a_ An accumulator.
[in] w_ An image of weights (a site -> a weight).
Returns:
The accumulator result.

Definition at line 140 of file compute_with_weights.hh.

References compute_with_weights(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), and mln::set::w.

Referenced by mln::set::compute_with_weights().


Generated on Sun Apr 25 02:04:16 2010 for Milena (Olena) by  doxygen 1.5.6