#include <Labeling.h>
Inheritance diagram for prapi::binary::Labeling< T >:

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. | |
|
||||||||||
|
Label an image using either 4- or 8-neighbors.
Implements prapi::ImageTransform< int, T >. |