$extrastylesheet
#include <mln/morpho/attribute/volume.hh>
Public Member Functions | |
volume () | |
unsigned | area () 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 > &px) |
void | take (const volume< I > &other) |
void | take_as_init_ (const typename I::value &v) |
void | take_as_init_ (const util::pix< I > &px) |
Protected Attributes | |
unsigned | area_ |
I::value | cur_level_ |
unsigned | volume_ |
Public Types | |
typedef I::value | argument |
typedef Accumulator< void > | category |
typedef volume< I > | exact_t |
typedef unsigned | q_result |
typedef mln::metal::unqualif < unsigned >::ret | result |
Volume accumulator class.
The parameter I
is the image type on which the accumulator of pixels is built.
Definition at line 79 of file morpho/attribute/volume.hh.
mln::morpho::attribute::volume< I >::volume | ( | ) |
unsigned mln::morpho::attribute::volume< I >::area | ( | ) | const |
Give the area.
void mln::morpho::attribute::volume< I >::init | ( | ) |
Manipulators.
bool mln::morpho::attribute::volume< I >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
|
inherited |
void mln::morpho::attribute::volume< I >::take | ( | const typename I::value & | v | ) |
void mln::morpho::attribute::volume< I >::take | ( | const util::pix< I > & | px | ) |
void mln::morpho::attribute::volume< I >::take | ( | const volume< I > & | other | ) |
|
inherited |
Take as initialization the value t
.
void mln::morpho::attribute::volume< I >::take_as_init_ | ( | const typename I::value & | v | ) |
|
inherited |
INTERNAL_API
Default implementation of "take as initialization".
void mln::morpho::attribute::volume< 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::volume< I >::to_result | ( | ) | const |
Get the value of the accumulator.
|
protected |
The area of the component.
Definition at line 112 of file morpho/attribute/volume.hh.
|
protected |
The current level.
Definition at line 110 of file morpho/attribute/volume.hh.
|
protected |
The volume of the component.
Definition at line 114 of file morpho/attribute/volume.hh.
typedef I ::value mln::morpho::attribute::volume< I >::argument |
Definition at line 82 of file morpho/attribute/volume.hh.
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
|
inherited |