mln::accu::shape::height< I > Struct Template Reference
[On images]

Height accumulator. More...

#include <height.hh>

Inherits base< unsigned, height< I > >.

List of all members.

Public Types

typedef util::pix< I > argument
 The accumulated data type.
typedef argument::value value
 The value type associated to the pixel type.

Public Member Functions

bool is_valid () const
 Check whether this accu is able to return a result.
void take_as_init (const T &t)
 Take as initialization the value t.
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
unsigned to_result () const
 Get the value of the accumulator.
void init ()
 Manipulators.
void set_value (unsigned h)
 Force the value of the counter to h.


Detailed Description

template<typename I>
struct mln::accu::shape::height< I >

Height accumulator.

The parameter I is the image type on which the accumulator of pixels is built.


Member Typedef Documentation

template<typename I>
typedef util::pix<I> mln::accu::shape::height< I >::argument

The accumulated data type.

The height of component is represented by the height of its root pixel. See mln::morpho::closing_height and mln::morpho::opening_height for actual uses of this accumulator. FIXME: Replaced by mln::morpho::attribute::height

template<typename I>
typedef argument::value mln::accu::shape::height< I >::value

The value type associated to the pixel type.


Member Function Documentation

template<typename I >
void mln::accu::shape::height< I >::init (  )  [inline]

Manipulators.

template<typename I >
bool mln::accu::shape::height< I >::is_valid (  )  const [inline]

Check whether this accu is able to return a result.

Always true here.

template<typename I >
void mln::accu::shape::height< I >::set_value ( unsigned  h  )  [inline]

Force the value of the counter to h.

void mln::Accumulator< height< I > >::take_as_init ( const T &  t  )  [inline, inherited]

Take as initialization the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

void mln::Accumulator< height< I > >::take_n_times ( unsigned  n,
const T &  t 
) [inline, inherited]

Take n times the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

template<typename I >
unsigned mln::accu::shape::height< I >::to_result (  )  const [inline]

Get the value of the accumulator.


Generated on Tue Jul 14 16:32:48 2009 for Milena (Olena) by  doxygen 1.5.9