Namespaces | Classes | Functions

mln::accu Namespace Reference

Namespace of accumulators. More...

Namespaces

namespace  image
 

Namespace of accumulator image routines.


namespace  impl
 

Implementation namespace of accumulator namespace.


namespace  logic
 

Namespace of logical accumulators.


namespace  math
 

Namespace of mathematic accumulators.


namespace  shape
 

Namespace of shape accumulators.


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 A , typename I >
void take (const Image< I > &input, Accumulator< A > &a)
 Make an accumulator take the pixels of the image 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.

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