Namespaces | Classes | Functions | Variables

mln::accu Namespace Reference

Namespace of accumulators. More...

Namespaces

namespace  image
 

Namespace of accumulator image routines.


namespace  impl
 

Implementation namespace of accumulator namespace.


namespace  internal
 

Internal namespace of accumulators.


namespace  logic
 

Namespace of logical accumulators.


namespace  math
 

Namespace of mathematic accumulators.


namespace  meta
namespace  shape
 

Namespace of shape accumulators.


namespace  site_set
namespace  stat
 

Namespace of statistical accumulators.


Classes

struct  center
 Mass center accumulator. More...
struct  convolve
 Generic convolution accumulator class. More...
struct  count_adjacent_vertices
 Accumulator class counting the number of vertices adjacent to a set of mln::p_edges_psite (i.e., a set of edges). More...
struct  count_labels
 Count the number of different labels in an image. More...
struct  count_value
 Define an accumulator that counts the occurrence of a given value. More...
struct  histo
 Generic histogram class over a value set with type V. More...
struct  label_used
 References all the labels used. More...
struct  maj_h
 Compute the majority value. More...
struct  max_site
 Define an accumulator that computes the first site with the maximum value in an image. More...
struct  nil
 Define an accumulator that does nothing. More...
struct  p
 Generic p of accumulators. More...
struct  pair
 Generic pair of accumulators. More...
struct  rms
 Generic root mean square accumulator class. More...
struct  tuple
 Generic tuple of accumulators. More...
struct  val
 Generic val of accumulators. More...

Functions

template<typename A , typename I >
A::result compute (const Accumulator< A > &a, const Image< I > &input)
 Make an accumulator compute the pixels of the image input.
template<typename Meta_Accu , unsigned Dir, typename I , typename O >
void line (const Image< I > &input, const typename I::site &p_start, unsigned len, unsigned half_length, Image< O > &output)
template<typename A , typename I >
 mln_meta_accu_result (A, util::pix< I >) compute(const Meta_Accumulator< A > &a
 Make an accumulator compute the pixels of the image input.
template<typename V >
std::ostream & operator<< (std::ostream &ostr, const histo< V > &h)
template<typename A , typename I >
void take (const Image< I > &input, Accumulator< A > &a)
 Make an accumulator take the pixels of the image input.
template<typename I , typename A , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
transform (const Image< I > &input, const Accumulator< A > &a, const Window< W > &win)
template<typename I , typename A , typename W >
mln::trait::ch_value< I,
mln_meta_accu_result(A,
typename I::value) >::ret 
transform (const Image< I > &input, const Meta_Accumulator< A > &a, const Window< W > &win)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
transform_diagonal (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
mln_meta_accu_result(A,
typename I::value) >::ret 
transform_diagonal (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
transform_directional (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win, unsigned dir)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
mln_meta_accu_result(A,
typename I::value) >::ret 
transform_directional (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win, unsigned dir)
template<typename A , typename I >
mln::trait::ch_value< I,
mln_meta_accu_result(A,
typename I::value) >::ret 
transform_line (const Meta_Accumulator< A > &a, const Image< I > &input, unsigned length, unsigned dir)
template<typename A , typename I >
mln::trait::ch_value< I,
typename A::result >::ret 
transform_line (const Accumulator< A > &a, const Image< I > &input, unsigned length, unsigned dir)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
transform_snake (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win)
template<typename A , typename I , typename W >
mln::trait::ch_value< I,
mln_meta_accu_result(A,
typename I::value) >::ret 
transform_snake (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win)
template<typename I , typename A , typename W >
mln::trait::ch_value< I,
mln_meta_accu_result(A,
typename I::value) >::ret 
transform_stop (const Image< I > &input, const Meta_Accumulator< A > &a, const Window< W > &win)
template<typename I , typename A , typename W >
mln::trait::ch_value< I,
typename A::result >::ret 
transform_stop (const Image< I > &input, const Accumulator< A > &a, const Window< W > &win)
template<typename T >
stat::median_alt< T > unmeta (const meta::stat::median_alt< T > &m, T)
template<typename M , typename T >
void unmeta (const Meta_Accumulator< M > &, T)
template<typename T >
stat::rank< T > unmeta (const meta::stat::rank &m, T)
template<typename M , typename T >
M::template with< T >::ret unmeta (const M &, T)
template<typename T >
stat::rank_high_quant< T > unmeta (const meta::stat::rank_high_quant &m, T)

Variables

const Image< I > & input

Detailed Description

Namespace of accumulators.


Function Documentation

template<typename A , typename I >
A::result mln::accu::compute ( const Accumulator< A > &  a,
const Image< I > &  input 
) [inline]

Make an accumulator compute the pixels of the image input.

Parameters:
[in] input The input image.
[in] a An accumulator.

This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.

Warning:
This routine does not perform a.init().

Definition at line 130 of file accu/compute.hh.

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

Referenced by mln::accu::internal::compute_dispatch().

template<typename Meta_Accu , unsigned Dir, typename I , typename O >
void mln::accu::line ( const Image< I > &  input,
const typename I::site &  p_start,
unsigned  len,
unsigned  half_length,
Image< O > &  output 
)

Line an accumulator onto the pixel values of the image input.

Parameters:
[in] input The input image.
[in] p_start The starting site of the line.
[in] len The line length.
[in] half_length The half length of the line.
[in,out] output The resulting image.

This routine runs:
tmp = a
tmp.init()
accu::take(input, tmp)
return tmp.to_result()

Definition at line 381 of file accu/line.hh.

template<typename A , typename I >
mln::accu::mln_meta_accu_result ( ,
util::pix< I >   
) const [inline]

Make an accumulator compute the pixels of the image input.

Parameters:
[in] input The input image.
[in] a A meta accumulator.

This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.

Warning:
This routine does not perform a.init().
template<typename V >
std::ostream & mln::accu::operator<< ( std::ostream &  ostr,
const histo< V > &  h 
) [inline]

Definition at line 224 of file accu/histo.hh.

template<typename A , typename I >
void mln::accu::take ( const Image< I > &  input,
Accumulator< A > &  a 
) [inline]

Make an accumulator take the pixels of the image input.

Parameters:
[in] input The input image.
[in,out] a The accumulator.

This routine runs:
for all p of input, a.take( pix(input, p) )

Warning:
This routine does not perform a.init().

Definition at line 87 of file take.hh.

References mln::exact(), and mln::accu::impl::take().

template<typename I , typename A , typename W >
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform ( const Image< I > &  input,
const Accumulator< A > &  a,
const Window< W > &  win 
) [inline]
template<typename I , typename A , typename W >
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform ( const Image< I > &  input,
const Meta_Accumulator< A > &  a,
const Window< W > &  win 
)
template<typename A , typename I , typename W >
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_diagonal ( const Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win 
) [inline]
template<typename A , typename I , typename W >
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_diagonal ( const Meta_Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win 
) [inline]
template<typename A , typename I , typename W >
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_directional ( const Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win,
unsigned  dir 
) [inline]
template<typename A , typename I , typename W >
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_directional ( const Meta_Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win,
unsigned  dir 
) [inline]
template<typename A , typename I >
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_line ( const Meta_Accumulator< A > &  a,
const Image< I > &  input,
unsigned  length,
unsigned  dir 
) [inline]
template<typename A , typename I >
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_line ( const Accumulator< A > &  a,
const Image< I > &  input,
unsigned  length,
unsigned  dir 
) [inline]
template<typename A , typename I , typename W >
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_snake ( const Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win 
) [inline]
template<typename A , typename I , typename W >
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_snake ( const Meta_Accumulator< A > &  a,
const Image< I > &  input,
const Window< W > &  win 
) [inline]
template<typename I , typename A , typename W >
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_stop ( const Image< I > &  input,
const Meta_Accumulator< A > &  a,
const Window< W > &  win 
)
template<typename I , typename A , typename W >
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_stop ( const Image< I > &  input,
const Accumulator< A > &  a,
const Window< W > &  win 
) [inline]
template<typename T >
stat::median_alt<T> mln::accu::unmeta ( const meta::stat::median_alt< T > &  m,
 
)
template<typename M , typename T >
void mln::accu::unmeta ( const Meta_Accumulator< M > &  ,
 
)
template<typename T >
stat::rank<T> mln::accu::unmeta ( const meta::stat::rank &  m,
 
)

Definition at line 142 of file rank.hh.

References mln::accu::meta::stat::rank::k.

template<typename M , typename T >
M::template with< T >::ret mln::accu::unmeta ( const M &  ,
 
) [inline]

Definition at line 144 of file meta_accumulator.hh.

template<typename T >
stat::rank_high_quant<T> mln::accu::unmeta ( const meta::stat::rank_high_quant &  m,
 
)

Variable Documentation