VIA - Volumetric Image Analysis
Functions
Label2d.c File Reference

Functions

VImage VLabelImage2d (VImage src, VImage dest, int neighb, VRepnKind repn, int *numlabels)

Detailed Description

2D connected component labelling

Each foreground voxel receives a label indicating its membership in a connected component. The algorithm is based on depth first search.

Reference:
G. Lohmann (1998). "Volumetric Image Analysis", John Wiley & Sons, Chichester, England.
Author:
Gabriele Lohmann, MPI-CBS

Function Documentation

VImage VLabelImage2d ( VImage  src,
VImage  dest,
int  neighb,
VRepnKind  repn,
int *  numlabels 
)
Parameters
srcinput image (bit repn)
destoutput image (ubyte repn)
neighbadjacency type (4 or 8).
repnoutput pixel representation (VUByteRepn or VShortRepn)
numlabelsptr to the number of labels found.