$extrastylesheet
#include <mln/morpho/attribute/height.hh>
Public Member Functions | |
height () | |
unsigned | base_level () const |
unsigned | current_level () const |
bool | is_valid () const |
unsigned | subj_ () |
void | take_as_init (const T &t) |
void | take_as_init_ (const T &t) |
void | take_n_times (unsigned n, const T &t) |
void | take_n_times_ (unsigned n, const T &t) |
unsigned | to_result () const |
void | init () |
void | take (const typename I::value &v) |
void | take (const util::pix< I > &v) |
void | take (const height< I > &other) |
void | take_as_init_ (const typename I::value &v) |
void | take_as_init_ (const util::pix< I > &px) |
Protected Attributes | |
unsigned | cur_ |
bool | initialized_ |
unsigned | ref_ |
Public Types | |
typedef I::value | argument |
typedef Accumulator< void > | category |
typedef height< I > | exact_t |
typedef unsigned | q_result |
typedef mln::metal::unqualif < unsigned >::ret | result |
Height accumulator class.
The parameter I
is the image type on which the accumulator of pixels is built.
Definition at line 81 of file morpho/attribute/height.hh.
mln::morpho::attribute::height< I >::height | ( | ) |
unsigned mln::morpho::attribute::height< I >::base_level | ( | ) | const |
Get base & current level of the accumulator.
unsigned mln::morpho::attribute::height< I >::current_level | ( | ) | const |
void mln::morpho::attribute::height< I >::init | ( | ) |
Manipulators.
bool mln::morpho::attribute::height< I >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
|
inherited |
void mln::morpho::attribute::height< I >::take | ( | const typename I::value & | v | ) |
void mln::morpho::attribute::height< I >::take | ( | const util::pix< I > & | v | ) |
void mln::morpho::attribute::height< I >::take | ( | const height< I > & | other | ) |
|
inherited |
Take as initialization the value t
.
void mln::morpho::attribute::height< I >::take_as_init_ | ( | const typename I::value & | v | ) |
|
inherited |
INTERNAL_API
Default implementation of "take as initialization".
void mln::morpho::attribute::height< I >::take_as_init_ | ( | const util::pix< I > & | px | ) |
|
inherited |
Take n
times the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
unsigned mln::morpho::attribute::height< I >::to_result | ( | ) | const |
Get the value of the accumulator.
|
protected |
The current level in the component.
Definition at line 114 of file morpho/attribute/height.hh.
|
protected |
Mark of initialization.
Definition at line 116 of file morpho/attribute/height.hh.
|
protected |
The reference level in the component.
Definition at line 112 of file morpho/attribute/height.hh.
typedef I ::value mln::morpho::attribute::height< I >::argument |
Definition at line 84 of file morpho/attribute/height.hh.
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
|
inherited |