Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::binary::Labeling< T > Class Template Reference

#include <Labeling.h>

Inheritance diagram for prapi::binary::Labeling< T >:

prapi::ImageTransform< int, T > List of all members.

Detailed Description

template<class T = bool>
class prapi::binary::Labeling< T >

Label all connected components in a (binary) image.

The first component found is given the label one, the second one the label two and so on. Background is marked with zeros.

Public Methods

 Labeling (ConnectivityType cType=CONNECT_4)
 Create a new Labeling instance that inspects neighbors with the given connectivity type.

void setConnectivityType (ConnectivityType cType)
 Set the connectivity type used for labeling.

ConnectivityType getConnectivityType () const
 Get the connectivity type.

util::Matrix< int > getTransformedImage (const util::Matrix< T > &mat) throw (ImageTransformException&)
 Label an image using either 4- or 8-neighbors.

Member Function Documentation

template<class T>
util::Matrix< int > prapi::binary::Labeling< T >::getTransformedImage const util::Matrix< T > &    mat throw (ImageTransformException&) [virtual]

Label an image using either 4- or 8-neighbors.

mat  The matrix wanted to make labeling.

Implements prapi::ImageTransform< int, T >.

The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.