Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::accu::shape::height< I > Struct Template Reference

Height accumulator. More...

#include <height.hh>

Inherits mln::accu::internal::base< unsigned, height< I > >.

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.

Definition at line 68 of file accu/shape/height.hh.

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

Definition at line 78 of file accu/shape/height.hh.

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

The value type associated to the pixel type.

Definition at line 80 of file accu/shape/height.hh.

Member Function Documentation

template<typename I >
void height< I >::init ( )
inline

Manipulators.

Definition at line 150 of file accu/shape/height.hh.

template<typename I >
bool height< I >::is_valid ( ) const
inline

Check whether this accu is able to return a result.

Always true here.

Definition at line 199 of file accu/shape/height.hh.

template<typename I >
void height< I >::set_value ( unsigned  h)
inline

Force the value of the counter to h.

Definition at line 188 of file accu/shape/height.hh.

void mln::Accumulator< height< I > >::take_as_init ( const T &  t)
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 
)
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 height< I >::to_result ( ) const
inline

Get the value of the accumulator.

Definition at line 180 of file accu/shape/height.hh.