Commit 89c217b5 authored by Jerome Benoit's avatar Jerome Benoit

Imported Upstream version 0.99~b6+dsx

parent 69f7eaa3
This directory contains a collection of volume data sets.
Contents:
README.format file format description
denfile.c sample code to read .den files
dencopy.c sample program which uses denfile.c to copy a volume,
possibly converting it to the native byte ordering
head/ CT scan of a human head (several resolutions)
brain/ MR scan of a human head (several resolutions)
engine/ CT scan of an engine block
This README file describes the format of the volume data files in this
directory.
.DEN FILES
----------
Files with names ending in .den contain a header followed by a 3D
array of byte samples. The header describes the size of the array
(and has other random fields for historical reasons). The file
"denfile.c" contains sample code to read and write .den files. Here
is the header definition:
short map_version; /* Version of this .den file */
short orig_min[3]; /* Dimensions of original data file */
short orig_max[3];
short orig_len[3];
short extr_min[3]; /* Extracted portion of original file */
short extr_max[3]; /* (mins and maxes will be subset of */
short extr_len[3]; /* orig and lengths will be <= orig) */
short map_min[3]; /* Dimensions of this map */
short map_max[3]; /* (mins will be 0 in this program and */
short map_len[3]; /* lens may be != extr if warps > 0) */
short map_warps; /* Number of warps since extraction */
/* (0 = none) */
int map_length; /* Total number of densities in map */
/* (= product of lens) */
The map_version field contains the value "1". The map_len array
contains the size of the data set, and the map_length field contains
the number of bytes in the volume array. It should always be equal to
the product of the entries in map_len. The other fields are not
normally useful.
After the header comes the volume data, stored as a sequence of bytes.
The X dimension (map_len[0]) varies most rapidly, and the Z dimension
(map_len[2]) varies least rapidly.
The files were written on an SGI workstation which is a big-endian
machine. If you read the files on a little-endian machine (e.g. DEC
or Intel) then all of the numbers in the header will have to be
byte-swapped. However, since the volume data consists of byte data it
does not have to be swapped.
This directory contains volume data derived from an MR scan of a human
head. The data is in .den format (see the file format description in
../README.format) and has been compressed.
The original MR scan is from the Chapel Hill Volume Rendering Test
Dataset, Volume I (available from omicron.cs.unc.edu [128.109.136.159]
in pub/softlab/CHVRTD/volI). The data was taken on the Siemens Magnetom
and provided courtesy of Siemens Medical Systems, Inc., Iselin, NJ.
You may redistribute this data provided you include the above
information about the source of the data.
Contents:
brain.den.Z 256x256x109 voxel data set
the voxels must be scaled 1.54x in the Z dimension
brainsmall.den.Z 128x128x84 voxel data set derived from brain.den
by applying a Gaussian filter; no further scaling
is necessary
bigbrain.den.Z 256x256x167 voxel data set derived from brain.den
by applying a cubic bspline filter; no further
scaling is necessary
brainsmall.vprdemo rendering parameters for brainsmall.den
(use with the "vprdemo" program that
comes with vprender)
bigbrain.vprdemo rendering parameters for bigbrain.den
(use with the "vprdemo" program that
comes with vprender)
/*
* dencopy.c
*
* Copy a density file. The destination file is in the native byte ordering,
* even if the source file is not.
*
* Usage: dencopy src.den dst.den
* Compilation: cc -o dencopy dencopy.c denfile.c
*/
#include <stdio.h>
main(argc, argv)
int argc;
char **argv;
{
unsigned char *data, *read_den();
int xlen, ylen, zlen;
if (argc != 3) {
fprintf(stderr, "Usage: dencopy src.den dst.den\n");
exit(1);
}
if ((data = read_den(argv[1], &xlen, &ylen, &zlen)) == NULL) {
fprintf(stderr, "dencopy: read failed\n");
exit(1);
}
if (!write_den(argv[2], data, xlen, ylen, zlen)) {
fprintf(stderr, "dencopy: write failed\n");
exit(1);
}
return(0);
}
This diff is collapsed.
This directory contains volume data acquired from a CT scan of an
engine block. The data is in .den format (see the file format
description in ../README.format) and has been compressed.
This data is in the public domain.
Contents:
engine.den.Z 256x256x110 voxel data set
the aspect ratio is uniform in all three
dimensions (no scaling is necessary)
engine.vprdemo rendering parameters for engine.den
(use with the "vprdemo" program that
comes with vprender)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment