VIA - Volumetric Image Analysis
Functions
Label3d.c File Reference

Functions

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

Detailed Description

3D 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 VLabelImage3d ( VImage  src,
VImage  dest,
int  neighb,
VRepnKind  repn,
int *  numlabels 
)
Parameters
srcinput image (bit repn)
destoutput image (ubyte or short repn)
neighbadjacency type (6 or 26)
repnpixel repn of the output image (VUByteRepn or VShortRepn). If VUByteRepn is selected, then no more than 255 connected components can be identified.
numlabelsptr to the number of labels found.