readVolume
DESCRIPTION
Read a volume dataset in the 'canonical' chopper format:
The "chopper" format for volumetric data is a single binary file with
some header information followed by the volumetric data. Both the header
and the data are arranged in a single stream.
Header:
nx - (int) extent of the volume in the "X" direction.
ny - (int) extent of the volume in the "Y" direction.
nz - (int) extent of the volume in the "Z" direction.
nspace - (int) spacing information to retain the proper volume
dimensions. "nspace" indicates how far the nx*ny slices
are spaced apart. Its value is the number of slices that
would fit between the actual slices given in the data.
For volumes where the slice spacing is the same as the
distance between voxels in the plane of a slice, "nspace"
is zero. (Right now this value is ignored and assumed
to be zero.)
datatype - (int) switch value indicating the data type of the volume
information.
0 - char
1 - short
2 - long
3 - float
4 - double
minvoxel - (datatype) minimum voxel value
maxvoxel - (datatype) maximum voxel value
Data:
volume - (datatype) stream of data of length nx*ny*nz. Values in
the "X" direction vary the fastest, followed by the "Y"
direction, then "Z".
INPUTS
WIDGETS
Port: filepath
Type: Text
The volume filename
OUTPUTS
Port: Volume
Type: Lattice
Port: Min_Max
Type: Lattice
The minimum and maximum values
as stored in the data. This
is a 1 x 2 lattice.
PROBLEMS
SEE ALSO
[
Documentation Home ]
© The Numerical Algorithms Group Ltd,
Oxford UK. 1996