Http://openqvis.sourceforge.net/docu/fileformat.html
Volume File Format
Openqvis uses a simple file format for volume data sets. every data set consists of a header file (extension *. dat) in ASCII format and a data file (extension *. raw) in binary format. the header file contains information about the size and format of the data file. A typical example of such an ASCII file is displayed in the figure left. note that the file format originated from the University of Erlangen, Germany and was used to describe a large amount of different kinds of data. thus it contains some entries which are not relevant for openqvis.
The header file must contain the following entries:
Objectfilename: |
The object file name refers to the name of the data file, which contains the raw Voxel data. this can be either an absolute path or a relative path with respect to the storage position of the DAT file. |
Taggedfilename: |
The tagged file name refers to an optional data which contains additional Segmentation Data in the form of voxel tags. this can be either an absolute path or a relative path with respect to the storage position of the DAT file. if no such file is available, the entry shocould be set to "---" (three minus signs) |
Resolution: |
The volume data set consists of a large array of voxel values. The resolution of the data set is given by the number of voxels in X-, Y-and Z-direction. |
Slicethickness: |
The size of one voxel in X-, Y-and Z-direction (usually in millimeters ). |
Format: |
The data format of one voxel. can be eitherUchar(8 bit) orUshort(16 bit). Note that, depending on the selected draw style, openqvis my internally convert 16 bit values to 8 bit! |
Nbrtags: |
The number of different tag numbers contained in the Tag file. The value is simply ignored if there is no tag file specified in line 2 of the DAT file. |
Objecttype: |
Must be setTexture_volume_object |
Objectmodel: |
Must be setRgba. |
Gridtype: |
Must be setEquidistant. |
The data file simply contains the raw Voxel data as a large binary array which is indexed
Voxel (x, y, z) = array [z * ydim * xdim + y * xdim + x],
with xdim, ydim and zdim referring to the resolution of the data set, as specified in line 3 of the header file. for 16 bit data, the data may be stored either in big endian or little endian format. the correct byte ordering must be chosen in the preference dialog in the options menu of openqvis.