[Z] Description of the format raw and dat of the Body Data

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.