Image2Graph.c File Reference

Functions

VGraph VImage2Graph (VImage src, VGraph dest, VDouble xmin, VDouble xmax, VBoolean link, VBoolean border)
 Convert a raster image to graph representation.

Detailed Description

Convert a raster image to graph representation

Each foreground voxel is represented by a node in the output graph. Optionally, only border voxels are used. Optionally, 26-adjacent voxels are connected by arcs. Voxels of grey value '0' are assumed to be background voxels.

Author:
Gabriele Lohmann, MPI-CBS

Function Documentation

VGraph VImage2Graph ( VImage  src,
VGraph  dest,
VDouble  xmin,
VDouble  xmax,
VBoolean  link,
VBoolean  border 
)

Convert a raster image to graph representation.

Parameters:
src input image (any repn)
dest output graph
xmin voxels with values below 'xmin' are assumed to be background.
xmax voxels with values above 'xmax' are assumed to be background. If both xmin and xmax equal zero then these thresholds are ignored.
link if 'TRUE', then 26-adjacent voxels are linked by an arc.
border if 'TRUE', convert only border voxels.
Generated on Thu May 13 02:45:23 2010 for VIA - Volumetric Image Analysis by  doxygen 1.6.3