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. |
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().
A ::result mln::set::impl::generic::compute | ( | const Accumulator< A > & | a_, | |
const Site_Set< S > & | s_ | |||
) | [inline] |
Compute an accumulator onto a site set.
[in] | a | An accumulator. |
[in] | s | A site set. |
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().
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.
[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 . |
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.
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.
[in] | a_ | An accumulator. |
[in] | w_ | An image of weights (a site -> a weight). |
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().