Namespaces | Functions | Variables

mln::set Namespace Reference

Namespace of image processing routines related to pixel sets. More...

Namespaces

namespace  impl
namespace  internal

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 >
A::result compute_with_weights (const Accumulator< A > &a, const Image< I > &w)
 Compute an accumulator on a site set described by an image.
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)
 Compute an accumulator on every labeled sub-site-sets.
template<typename Sl , typename Sr >
p_set< typename Sl::site > diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
template<typename S >
S::site get (const Site_Set< S > &s, size_t index)
 FIXME.
template<typename S >
bool has (const Site_Set< S > &s, const typename S::site &e)
 FIXME.
template<typename Sl , typename Sr >
p_set< typename Sl::site > inter (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
template<typename A , typename S >
 mln_meta_accu_result (A, typename S::site) compute(const Meta_Accumulator< A > &a
 Compute an accumulator onto a site set.
template<typename A , typename I >
 mln_meta_accu_result (A, typename I::site) compute_with_weights(const Meta_Accumulator< A > &a
 Compute an accumulator on a site set described by an image.
template<typename Sl , typename Sr >
p_set< typename Sl::site > sym_diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
template<typename Sl , typename Sr >
p_set< typename Sl::site > uni (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
template<typename S >
p_set< typename S::site > unique (const Site_Set< S > &s)

Variables

const Site_Set< S > & s
const Image< I > & w

Detailed Description

Namespace of image processing routines related to pixel sets.


Function Documentation

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

Compute the cardinality of the site set s.

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

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

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

template<typename A , typename S >
A::result mln::set::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 112 of file set/compute.hh.

References mln::set::impl::generic::compute(), mln::trace::entering(), and mln::trace::exiting().

Referenced by mln::registration::icp().

template<typename A , typename I >
A::result mln::set::compute_with_weights ( const Accumulator< A > &  a,
const Image< I > &  w 
) [inline]

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 217 of file compute_with_weights.hh.

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

template<typename A , typename I , typename L >
util::array< typename A::result > mln::set::compute_with_weights ( const Accumulator< A > &  a,
const Image< I > &  w,
const Image< L > &  label,
const typename L::value &  nlabels 
)

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 234 of file compute_with_weights.hh.

References mln::set::impl::generic::compute_with_weights(), mln::set::internal::compute_with_weights_tests(), mln::trace::entering(), and mln::trace::exiting().

template<typename Sl , typename Sr >
p_set<typename Sl ::site> mln::set::diff ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related]

Definition at line 66 of file set/diff.hh.

References mln::trace::entering(), mln::trace::exiting(), mln::convert::from_to(), and s.

template<typename S >
S::site mln::set::get ( const Site_Set< S > &  s,
size_t  index 
)

FIXME.

Definition at line 56 of file set/get.hh.

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

template<typename S >
bool mln::set::has ( const Site_Set< S > &  s,
const typename S::site &  e 
)

FIXME.

Definition at line 56 of file set/has.hh.

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

template<typename Sl , typename Sr >
p_set<typename Sl ::site> mln::set::inter ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related]

Definition at line 62 of file set/inter.hh.

References mln::trace::entering(), mln::trace::exiting(), mln::convert::from_to(), and s.

template<typename A , typename S >
mln::set::mln_meta_accu_result ( ,
typename S::site   
) const

Compute an accumulator onto a site set.

Parameters:
[in] a A meta-accumulator.
[in] s A site set.
template<typename A , typename I >
mln::set::mln_meta_accu_result ( ,
typename I::site   
) const [inline]

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

Parameters:
[in] a A meta-accumulator.
[in] w An image of weights (a site -> a weight).
Returns:
The accumulator result.
template<typename Sl , typename Sr >
p_set<typename Sl ::site> mln::set::sym_diff ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related]

Definition at line 65 of file sym_diff.hh.

References mln::trace::entering(), mln::trace::exiting(), mln::convert::from_to(), and s.

template<typename Sl , typename Sr >
p_set<typename Sl ::site> mln::set::uni ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related]

Definition at line 61 of file uni.hh.

References mln::trace::entering(), mln::trace::exiting(), mln::convert::from_to(), and s.

template<typename S >
p_set<typename S ::site> mln::set::unique ( const Site_Set< S > &  s  )  [related]

Definition at line 61 of file unique.hh.

References mln::trace::entering(), mln::trace::exiting(), and mln::convert::from_to().


Variable Documentation

const Site_Set<S>& mln::set::s

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

Referenced by mln::set::impl::generic::card(), diff(), inter(), sym_diff(), and uni().

const Image<I>& mln::set::w