Loading volume from .dat file format

(question moved from slicer-users)

Can I load the .dat datasets https://www.cg.tuwien.ac.at/research/vis/datasets in 3d slicer ? Or can I convert it to some other format supported by 3d slicer?

The simplest is to create a text file in that describes the image in one of the standard formats, for example NRRD.

For example, to load the Stag beetle data set, create a text file named stagbeetle.nhdr in the same directory as the .vol file with the following content:

# Complete NRRD file format specification at:
# http://teem.sourceforge.net/nrrd/format.html
type: unsigned short
dimension: 3
space: left-posterior-superior
sizes: 832 832 494
space directions: (1,0,0) (0,1,0) (0,0,1)
kinds: domain domain domain
endian: little
encoding: raw
space origin: (0,0,0)
byte skip: 6
data file: stagbeetle832x832x494.dat

To load the data set in Slicer, drag-and-drop the .nhdr file into the Slicer application window.