Accumulate
Include <mln/labeling/accumulate.hpp>
-
template<Image I, AccumulatorLike A>
std::vector<typename accu::result_of<AccuLike, image_point_t<I>>::type> accumulate(lbl_input, int nlabel, A accu) -
template<Image I, Image J, AccumulatorLike A>
std::vector<typename accu::result_of<AccuLike, image_value_t<J>>::type> accumulate_on(I lbl_input, J values, int nlabel, A accu) Compute an attribute on points of a label image (1) or on the values of another image (2).
- Parameters:
input – Input image of labels
input (optional) – Input image of values
nlabel – The number of labels in the image input
accu – The accumulator to compute.
- Returns:
An array of features of size nlabel+1 for each component of input
- Exception:
None
Notes
Complexity
Linear.