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]
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.

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.

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.

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]
template<typename S >
S::site mln::set::get ( const Site_Set< S > &  s,
size_t  index 
)
template<typename S >
bool mln::set::has ( const Site_Set< S > &  s,
const typename S::site &  e 
)
template<typename Sl , typename Sr >
p_set<typename Sl ::site> mln::set::inter ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related]
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]
template<typename Sl , typename Sr >
p_set<typename Sl ::site> mln::set::uni ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related]
template<typename S >
p_set<typename S ::site> mln::set::unique ( const Site_Set< S > &  s  )  [related]

Variable Documentation

const Site_Set<S>& mln::set::s
const Image<I>& mln::set::w