VIA - Volumetric Image Analysis
Functions

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:
srcinput image (any repn)
destoutput graph
xminvoxels with values below 'xmin' are assumed to be background.
xmaxvoxels with values above 'xmax' are assumed to be background. If both xmin and xmax equal zero then these thresholds are ignored.
linkif 'TRUE', then 26-adjacent voxels are linked by an arc.
borderif 'TRUE', convert only border voxels.