Namespace of accumulators. More...
Namespaces | |
namespace | image |
Namespace of accumulator image routines. | |
namespace | impl |
Implementation namespace of accumulator namespace. | |
namespace | internal |
Internal namespace of accumulators. | |
namespace | logic |
Namespace of logical accumulators. | |
namespace | math |
Namespace of mathematic accumulators. | |
namespace | meta |
namespace | shape |
Namespace of shape accumulators. | |
namespace | site_set |
namespace | stat |
Namespace of statistical accumulators. | |
Classes | |
struct | center |
Mass center accumulator. More... | |
struct | convolve |
Generic convolution accumulator class. More... | |
struct | count_adjacent_vertices |
Accumulator class counting the number of vertices adjacent to a set of mln::p_edges_psite (i.e., a set of edges). More... | |
struct | count_labels |
Count the number of different labels in an image. More... | |
struct | count_value |
Count a given value. More... | |
struct | histo |
Generic histogram class over a value set with type V . More... | |
struct | label_used |
References all the labels used. More... | |
struct | maj_h |
Compute the majority value. More... | |
struct | max_site |
Define an accumulator that computes the first site with the maximum value in an image. More... | |
struct | nil |
Define an accumulator that does nothing. More... | |
struct | p |
Generic p of accumulators. More... | |
struct | pair |
Generic pair of accumulators. More... | |
struct | rms |
Generic root mean square accumulator class. More... | |
struct | tuple |
Generic tuple of accumulators. More... | |
struct | val |
Generic val of accumulators. More... | |
Functions | |
template<typename A , typename I > | |
A::result | compute (const Accumulator< A > &a, const Image< I > &input) |
Make an accumulator compute the pixels of the image input . | |
template<typename Meta_Accu , unsigned Dir, typename I , typename O > | |
void | line (const Image< I > &input, const typename I::site &p_start, unsigned len, unsigned half_length, Image< O > &output) |
template<typename A , typename I > | |
mln_meta_accu_result (A, util::pix< I >) compute(const Meta_Accumulator< A > &a | |
Make an accumulator compute the pixels of the image input . | |
template<typename V > | |
std::ostream & | operator<< (std::ostream &ostr, const histo< V > &h) |
template<typename A , typename I > | |
void | take (const Image< I > &input, Accumulator< A > &a) |
Make an accumulator take the pixels of the image input . | |
template<typename I , typename A , typename W > | |
mln::trait::ch_value< I, typename A::result >::ret | transform (const Image< I > &input, const Accumulator< A > &a, const Window< W > &win) |
template<typename I , typename A , typename W > | |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret | transform (const Image< I > &input, const Meta_Accumulator< A > &a, const Window< W > &win) |
template<typename A , typename I , typename W > | |
mln::trait::ch_value< I, typename A::result >::ret | transform_diagonal (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win) |
template<typename A , typename I , typename W > | |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret | transform_diagonal (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win) |
template<typename A , typename I , typename W > | |
mln::trait::ch_value< I, typename A::result >::ret | transform_directional (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win, unsigned dir) |
template<typename A , typename I , typename W > | |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret | transform_directional (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win, unsigned dir) |
template<typename A , typename I > | |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret | transform_line (const Meta_Accumulator< A > &a, const Image< I > &input, unsigned length, unsigned dir) |
template<typename A , typename I > | |
mln::trait::ch_value< I, typename A::result >::ret | transform_line (const Accumulator< A > &a, const Image< I > &input, unsigned length, unsigned dir) |
template<typename A , typename I , typename W > | |
mln::trait::ch_value< I, typename A::result >::ret | transform_snake (const Accumulator< A > &a, const Image< I > &input, const Window< W > &win) |
template<typename A , typename I , typename W > | |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret | transform_snake (const Meta_Accumulator< A > &a, const Image< I > &input, const Window< W > &win) |
template<typename I , typename A , typename W > | |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret | transform_stop (const Image< I > &input, const Meta_Accumulator< A > &a, const Window< W > &win) |
template<typename I , typename A , typename W > | |
mln::trait::ch_value< I, typename A::result >::ret | transform_stop (const Image< I > &input, const Accumulator< A > &a, const Window< W > &win) |
template<typename T > | |
stat::median_alt< T > | unmeta (const meta::stat::median_alt< T > &m, T) |
template<typename M , typename T > | |
void | unmeta (const Meta_Accumulator< M > &, T) |
template<typename T > | |
stat::rank< T > | unmeta (const meta::stat::rank &m, T) |
template<typename M , typename T > | |
M::template with< T >::ret | unmeta (const M &, T) |
template<typename T > | |
stat::rank_high_quant< T > | unmeta (const meta::stat::rank_high_quant &m, T) |
Variables | |
const Image< I > & | input |
Namespace of accumulators.
A::result mln::accu::compute | ( | const Accumulator< A > & | a, | |
const Image< I > & | input | |||
) | [inline] |
Make an accumulator compute the pixels of the image input
.
[in] | input | The input image. |
[in] | a | An accumulator. |
This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.
References mln::accu::internal::compute_dispatch(), mln::trace::entering(), mln::exact(), and mln::trace::exiting().
Referenced by mln::accu::internal::compute_dispatch().
void mln::accu::line | ( | const Image< I > & | input, | |
const typename I::site & | p_start, | |||
unsigned | len, | |||
unsigned | half_length, | |||
Image< O > & | output | |||
) |
Line an accumulator onto the pixel values of the image input
.
[in] | input | The input image. |
[in] | p_start | The starting site of the line. |
[in] | len | The line length. |
[in] | half_length | The half length of the line. |
[in,out] | output | The resulting image. |
This routine runs:
tmp = a
tmp.init()
accu::take(input
, tmp)
return tmp.to_result()
mln::accu::mln_meta_accu_result | ( | A | , | |
util::pix< I > | ||||
) | const [inline] |
Make an accumulator compute the pixels of the image input
.
[in] | input | The input image. |
[in] | a | A meta accumulator. |
This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.
std::ostream & mln::accu::operator<< | ( | std::ostream & | ostr, | |
const histo< V > & | h | |||
) | [inline] |
void mln::accu::take | ( | const Image< I > & | input, | |
Accumulator< A > & | a | |||
) | [inline] |
Make an accumulator take the pixels of the image input
.
[in] | input | The input image. |
[in,out] | a | The accumulator. |
This routine runs:
for all p of input
, a.take
( pix(input
, p) )
References mln::exact(), and mln::accu::impl::take().
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform | ( | const Image< I > & | input, | |
const Accumulator< A > & | a, | |||
const Window< W > & | win | |||
) | [inline] |
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), and mln::accu::internal::transform_dispatch().
Referenced by mln::morpho::impl::erosion_tolerant_on_set(), mln::morpho::impl::erosion_tolerant_on_set_fastest(), mln::morpho::impl::generic::general_on_function(), and mln::accu::internal::transform_dispatch().
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform | ( | const Image< I > & | input, | |
const Meta_Accumulator< A > & | a, | |||
const Window< W > & | win | |||
) |
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_diagonal | ( | const Accumulator< A > & | a, | |
const Image< I > & | input, | |||
const Window< W > & | win | |||
) | [inline] |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_diagonal | ( | const Meta_Accumulator< A > & | a, | |
const Image< I > & | input, | |||
const Window< W > & | win | |||
) | [inline] |
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_directional | ( | const Accumulator< A > & | a, | |
const Image< I > & | input, | |||
const Window< W > & | win, | |||
unsigned | dir | |||
) | [inline] |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_directional | ( | const Meta_Accumulator< A > & | a, | |
const Image< I > & | input, | |||
const Window< W > & | win, | |||
unsigned | dir | |||
) | [inline] |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_line | ( | const Meta_Accumulator< A > & | a, | |
const Image< I > & | input, | |||
unsigned | length, | |||
unsigned | dir | |||
) | [inline] |
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_line | ( | const Accumulator< A > & | a, | |
const Image< I > & | input, | |||
unsigned | length, | |||
unsigned | dir | |||
) | [inline] |
References mln::extension::adjust(), mln::trace::entering(), mln::trace::exiting(), mln::accu::internal::transform_line_dispatch(), and mln::accu::internal::transform_line_tests().
Referenced by mln::data::impl::median_line(), mln::morpho::impl::rank_filter_line(), and mln::accu::internal::transform_line_dispatch().
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_snake | ( | const Accumulator< A > & | a, | |
const Image< I > & | input, | |||
const Window< W > & | win | |||
) | [inline] |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_snake | ( | const Meta_Accumulator< A > & | a, | |
const Image< I > & | input, | |||
const Window< W > & | win | |||
) | [inline] |
mln::trait::ch_value< I, mln_meta_accu_result(A, typename I::value) >::ret mln::accu::transform_stop | ( | const Image< I > & | input, | |
const Meta_Accumulator< A > & | a, | |||
const Window< W > & | win | |||
) |
mln::trait::ch_value< I, typename A::result >::ret mln::accu::transform_stop | ( | const Image< I > & | input, | |
const Accumulator< A > & | a, | |||
const Window< W > & | win | |||
) | [inline] |
stat::median_alt<T> mln::accu::unmeta | ( | const meta::stat::median_alt< T > & | m, | |
T | ||||
) |
References mln::accu::meta::stat::median_alt< T >::s.
Referenced by mln::labeling::compute(), mln::morpho::elementary::impl::generic::like_ero_fun(), mln::morpho::elementary::impl::like_ero_fun_fastest(), transform(), transform_diagonal(), transform_directional(), transform_line(), transform_snake(), and transform_stop().
void mln::accu::unmeta | ( | const Meta_Accumulator< M > & | , | |
T | ||||
) |
stat::rank<T> mln::accu::unmeta | ( | const meta::stat::rank & | m, | |
T | ||||
) |
References mln::accu::meta::stat::rank::k.
M::template with< T >::ret mln::accu::unmeta | ( | const M & | , | |
T | ||||
) | [inline] |
stat::rank_high_quant<T> mln::accu::unmeta | ( | const meta::stat::rank_high_quant & | m, | |
T | ||||
) |
const Image<I>& mln::accu::input |
Referenced by mln::accu::image::impl::generic::init(), mln::accu::image::impl::init_fastest(), mln::accu::impl::generic::line(), mln::accu::impl::line_fastest(), mln::accu::image::impl::generic::set_value(), mln::accu::impl::take(), mln::accu::image::impl::generic::take(), mln::accu::image::impl::generic::take_as_init(), mln::accu::image::impl::generic::take_n_times(), mln::accu::image::impl::generic::to_result(), mln::accu::impl::generic::transform_stop(), and mln::accu::image::impl::generic::untake().