Namespaces | Functions

mln::canvas::labeling Namespace Reference

Namespace of labeling canvas. More...

Namespaces

namespace  impl
 

Implementation namespace of labeling canvas namespace.


namespace  internal

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.
template<typename I , typename N , typename L , typename F >
mln::trait::ch_value< I, L >::ret sorted (const Image< I > &input, const Neighborhood< N > &nbh, L &nlabels, F &functor, bool increasing)
template<typename I , typename N , typename L , typename F >
mln::trait::ch_value< I, L >::ret video (const Image< I > &input, const Neighborhood< N > &nbh, L &nlabels, F &functor)

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] input The input image.
[in] nbh The connexity of the objects.
[out] nlabels The Number of labels. Its value is set in the algorithms.
[in,out] functor A 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.

References mln::canvas::labeling::impl::generic::blobs(), mln::trace::entering(), mln::exact(), and mln::trace::exiting().

template<typename I , typename N , typename L , typename F >
mln::trait::ch_value< I, L >::ret mln::canvas::labeling::sorted ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
L &  nlabels,
F &  functor,
bool  increasing 
) [inline]
template<typename I , typename N , typename L , typename F >
mln::trait::ch_value< I, L >::ret mln::canvas::labeling::video ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
L &  nlabels,
F &  functor 
) [inline]