Namespaces | Functions

mln::labeling::impl Namespace Reference

Implementation namespace of labeling namespace. More...

Namespaces

namespace  generic
 

Generic implementation namespace of labeling namespace.


Functions

template<typename A , typename I , typename L >
util::array< typename A::result > compute_fastest (const Accumulator< A > &a_, const Image< I > &input_, const Image< L > &label_, const typename L::value &nlabels)
 Fastest implementation of labeling::compute.
template<typename A , typename I , typename L >
util::array< typename A::result > compute_fastest (util::array< A > &accus, const Image< I > &input_, const Image< L > &label_, const typename L::value &nlabels)
 Fastest implementation of labeling::compute.

Detailed Description

Implementation namespace of labeling namespace.


Function Documentation

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::impl::compute_fastest ( const Accumulator< A > &  a_,
const Image< I > &  input_,
const Image< L > &  label_,
const typename L::value &  nlabels 
) [inline]

Fastest implementation of labeling::compute.

Parameters:
[in] a_ An accumulator.
[in] input_ The input image.
[in] label_ The labeled image.
[in] nlabels The number of labels in label.
Returns:
A util::array of accumulator result (one result per label).

Definition at line 373 of file labeling/compute.hh.

References mln::geom::ncols().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::impl::compute_fastest ( util::array< A > &  accus,
const Image< I > &  input_,
const Image< L > &  label_,
const typename L::value &  nlabels 
) [inline]

Fastest implementation of labeling::compute.

Parameters:
[in] accus An array of accumulators.
[in] input_ The input image.
[in] label_ The labeled image.
[in] nlabels The number of labels in label.
Returns:
A util::array of accumulator result (one result per label).

Definition at line 427 of file labeling/compute.hh.

References mln::geom::ncols(), mln::util::array< T >::resize(), and mln::util::array< T >::size().