Milena (Olena)  User documentation 2.0a Id
mln::canvas::labeling Namespace Reference

Namespace of labeling canvas. More...

Namespaces

namespace  impl
 

Implementation namespace of labeling canvas namespace.


Functions

template<typename I , typename N , typename L , typename F >
mln::trait::ch_value< I, L >::ret blobs (const Image< I > &input_, const Neighborhood< N > &nbh_, L &nlabels, F &functor)
 Canvas for connected component labeling of the binary objects of a binary image using a queue-based algorithm.

Detailed Description

Namespace of labeling canvas.


Function Documentation

template<typename I , typename N , typename L , typename F >
mln::trait::ch_value< I, L >::ret mln::canvas::labeling::blobs ( const Image< I > &  input_,
const Neighborhood< N > &  nbh_,
L &  nlabels,
F &  functor 
) [inline]

Canvas for connected component labeling of the binary objects of a binary image using a queue-based algorithm.

Parameters:
[in]inputThe input image.
[in]nbhThe connexity of the objects.
[out]nlabelsThe Number of labels. Its value is set in the algorithms.
[in,out]functorA functor computing data while labeling.
Returns:
The label image.
Precondition:
The input image has to be binary (checked at compile-time).

A fast queue is used so that the algorithm is not recursive and can handle large binary objects (blobs).

Definition at line 167 of file canvas/labeling/blobs.hh.

 All Classes Namespaces Functions Variables Typedefs Enumerator