Define an accumulator that computes the first site with the maximum value in an image. More...
#include <max_site.hh>

Public Types | |
| typedef mln::util::pix< I > | argument |
| typedef Accumulator< void > | category |
| typedef max_site< I > | exact_t |
| typedef I::psite | q_result |
| typedef I::psite | result |
Public Member Functions | |
| bool | is_valid () const |
| Check whether this accu is able to return a result. | |
| max_site () | |
| operator typename I::psite () const | |
| I::psite | subj_ () |
| void | take_as_init (const T &t) |
Take as initialization the value t. | |
| void | take_as_init_ (const T &t) |
| Default implementation of "take as initialization". | |
| void | take_n_times (unsigned n, const T &t) |
Take n times the value t. | |
| void | take_n_times_ (unsigned n, const T &t) |
| Default implementation of "take n times". | |
| I::psite | to_result () const |
| Get the value of the accumulator. | |
| I::value | value_ () const |
| Underlying value. | |
| void | init () |
| Manipulators. | |
| void | take (const argument &t) |
| void | take (const max_site< I > &other) |
Protected Attributes | |
| bool | is_valid_ |
| I::psite | max_p_ |
| I::value | max_v_ |
Define an accumulator that computes the first site with the maximum value in an image.
| typedef mln::util::pix<I> mln::accu::max_site< I >::argument |
typedef Accumulator<void> mln::Accumulator< max_site< I > >::category [inherited] |
Reimplemented from mln::Proxy< max_site< I > >.
typedef max_site< I > mln::Object< max_site< I > >::exact_t [inherited] |
typedef I::psite mln::accu::internal::base< I::psite , max_site< I > >::q_result [inherited] |
| typedef I ::psite mln::accu::max_site< I >::result |
Reimplemented from mln::accu::internal::base< I::psite, max_site< I > >.
| mln::accu::max_site< I >::max_site | ( | ) | [inline] |
References mln::accu::max_site< I >::init().
| void mln::accu::max_site< I >::init | ( | ) | [inline] |
Manipulators.
References mln::accu::max_site< I >::is_valid_, and mln::accu::max_site< I >::max_v_.
Referenced by mln::accu::max_site< I >::max_site().
| bool mln::accu::max_site< I >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Always true here.
References mln::accu::max_site< I >::is_valid_.
Referenced by mln::accu::max_site< I >::take().
| mln::accu::max_site< I >::operator typename I::psite | ( | ) | const [inline] |
| I::psite mln::accu::internal::base< I::psite , max_site< I > >::subj_ | ( | ) | [inherited] |
| void mln::accu::max_site< I >::take | ( | const argument & | t | ) | [inline] |
| void mln::accu::max_site< I >::take | ( | const max_site< I > & | other | ) | [inline] |
| void mln::Accumulator< max_site< 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< max_site< I > >::take_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
| void mln::Accumulator< max_site< 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 '_').
| void mln::Accumulator< max_site< I > >::take_n_times_ | ( | unsigned | n, | |
| const T & | t | |||
| ) | [inherited] |
Default implementation of "take n times".
| I::psite mln::accu::max_site< I >::to_result | ( | ) | const [inline] |
Get the value of the accumulator.
Referenced by mln::accu::max_site< I >::take().
| I::value mln::accu::max_site< I >::value_ | ( | ) | const [inline] |
Underlying value.
Referenced by mln::accu::max_site< I >::take().
bool mln::accu::max_site< I >::is_valid_ [protected] |
I ::psite mln::accu::max_site< I >::max_p_ [protected] |
Referenced by mln::accu::max_site< I >::take().
I ::value mln::accu::max_site< I >::max_v_ [protected] |
Referenced by mln::accu::max_site< I >::init(), and mln::accu::max_site< I >::take().
1.7.1