Generic implementation namespace of labeling namespace. More...
Functions | |
template<typename A , typename L > | |
util::array< typename A::result > | compute (const Accumulator< A > &a_, const Image< L > &label_, const typename L::value &nlabels) |
Generic implementation of labeling::compute. | |
template<typename A , typename L > | |
util::array< typename A::result > | compute (util::array< A > &accus, const Image< L > &label_, const typename L::value &nlabels) |
Generic implementation of labeling::compute. | |
template<typename A , typename I , typename L > | |
util::array< typename A::result > | compute (util::array< A > &accus, const Image< I > &input_, const Image< L > &label_, const typename L::value &nlabels) |
Generic implementation of labeling::compute. | |
template<typename A , typename I , typename L > | |
util::array< typename A::result > | compute (const Accumulator< A > &a_, const Image< I > &input_, const Image< L > &label_, const typename L::value &nlabels) |
Generic implementation of labeling::compute. | |
template<typename I , typename L > | |
mln::trait::concrete< I >::ret | mean_values (const Image< I > &input_, const Image< L > &lbl_, typename L::value nlabels) |
Generic implementation namespace of labeling namespace.
util::array<typename A ::result> mln::labeling::impl::generic::compute | ( | const Accumulator< A > & | a_, | |
const Image< L > & | label_, | |||
const typename L::value & | nlabels | |||
) | [inline] |
Generic implementation of labeling::compute.
[in] | a_ | An accumulator. |
[in] | label_ | The labeled image. |
[in] | nlabels | The number of labels in label . |
Definition at line 204 of file labeling/compute.hh.
References mln::labeling::internal::compute_tests(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), and mln::value::next().
Referenced by mean_values().
util::array<typename A ::result> mln::labeling::impl::generic::compute | ( | util::array< A > & | accus, | |
const Image< L > & | label_, | |||
const typename L::value & | nlabels | |||
) | [inline] |
Generic implementation of labeling::compute.
[in] | accus_ | An array of accumulators. If the size is set to nlabels + 1, the accumulators are considered as initialized. Otherwise, the size is adjusted. |
[in] | label_ | The labeled image. |
[in] | nlabels | The number of labels in label . |
Definition at line 241 of file labeling/compute.hh.
References mln::labeling::internal::compute_tests(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), mln::value::next(), mln::util::array< T >::resize(), and mln::util::array< T >::size().
util::array<typename A ::result> mln::labeling::impl::generic::compute | ( | util::array< A > & | accus, | |
const Image< I > & | input_, | |||
const Image< L > & | label_, | |||
const typename L::value & | nlabels | |||
) | [inline] |
Generic implementation of labeling::compute.
[in] | accus | An array of accumulators. |
[in] | input_ | The input image. |
[in] | label_ | The labeled image. |
[in] | nlabels | The number of labels in label . |
Definition at line 321 of file labeling/compute.hh.
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), mln::value::next(), mln::util::array< T >::resize(), and mln::util::array< T >::size().
util::array<typename A ::result> mln::labeling::impl::generic::compute | ( | const Accumulator< A > & | a_, | |
const Image< I > & | input_, | |||
const Image< L > & | label_, | |||
const typename L::value & | nlabels | |||
) | [inline] |
Generic implementation of labeling::compute.
[in] | a_ | An accumulator. |
[in] | input_ | The input image. |
[in] | label_ | The labeled image. |
[in] | nlabels | The number of labels in label . |
Definition at line 283 of file labeling/compute.hh.
References mln::labeling::internal::compute_tests(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), and mln::value::next().
mln::trait::concrete< I >::ret mln::labeling::impl::generic::mean_values | ( | const Image< I > & | input_, | |
const Image< L > & | lbl_, | |||
typename L::value | nlabels | |||
) |
Definition at line 97 of file mean_values.hh.
References compute(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), mln::labeling::internal::mean_values_tests(), and mln::data::transform().