Functions

mln::set Namespace Reference

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

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

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.

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.

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.

Referenced by compute_with_weights().

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 compute_with_weights().

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.

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.

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.