<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=GB2312" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Guifen,<br>
<br>
The file you wish to read is a binary file with certain properties
regarding its size, data type, individual voxel size etc.<br>
In order to be able to read it with a viewer that supports Interfile
3.3 standard, you need to create a special text file which describes
the above characteristics of the binary file(size dimensions, data
type, voxel size are the most important).This file also contains the
directory path of the binary file and is called: header file.<br>
<br>
The Interfile 3.3 standard defines how to describe the characteristics
of a binary file inside a header text file.<br>
I am sending you an example of an Interfile header file so that you can
see the special Intefile format that is required.<br>
This header file is designed to read an image, so the most basic
information you need to provide are<br>
- the name and the path of the binary data file<br>
- the number of pixels (voxels) in each one of the three dimensions<br>
- the physical dimensions of each voxel in mm<br>
- the data type (float, integer, etc) and the number of bytes used for
each data element (e.g. 4 bytes per pixel)<br>
<br>
Therefore the most important field values of an Interfile header file
that you need to check every time you create such a file are:<br>
name of data file := <The name of the binary file> (If the file
is not in the same directory with the header file you need to include
the full directory path)<br>
imagedata byte order := LITTLEENDIAN<br>
!number format := float (your data type, GATE generates dose maps of
float data type, be default)<br>
!number of bytes per pixel := 4 (GATE dose maps are 32-bit float,
i.e. 4 bytes per pixel)<br>
number of dimensions := 3 (3-dimensional dose maps, x-y-z)<br>
matrix axis label [1] := x (label your first axis)<br>
!matrix size [1] := 256 (in this case the header file refers to a
256x256x256 dose map)<br>
scaling factor (mm/pixel) [1] := 1 (each pixel has physical dimensions
in mm: 1x1x1)<br>
matrix axis label [2] := y<br>
!matrix size [2] := 256<br>
scaling factor (mm/pixel) [2] := 1<br>
matrix axis label [3] := z<br>
!matrix size [3] := 256<br>
scaling factor (mm/pixel) [3] := 1<br>
number of time frames := 1 (in case you have more than one time frames)<br>
<br>
Now, when you use AMIDE or any other image viewer that supports
Interfile 3.3 standard, you need to specify that the input image will
be read by the viewer according the above Interfile specifications.<br>
The actual file that you input is NOT the binary file itself, but the
header text file that was described above.<br>
<br>
In case of AMIDE a reader for raw binary data is also provided. I would
recommend you to use the raw data option when you read the image, since
this option does not require the creation of a header file for each
image you wish to read. The image is read directly by the viewer.<br>
In this case you input the binary file itself and then AMIDE asks you
to enter the image type, data type, dimensions in number of voxels, and
physical dimensions of each voxel in mm, time frames number and gate
number.<br>
After you enter these, make sure the total number of bytes calculated
by your input characteristics matches the total number of bytes of the
image read by AMIDE. If there is a match, then you probably enter the
correct properties and you can view the correct image after you click
<OK><br>
<br>
The raw viewer is safer than the Interfile viewer if you are not sure
about the exact meaning of all required fields specified in an
Interfile text header file.<br>
<br>
Best regards<br>
Nicolas<br>
<br>
<br>
________________________________________________________
<br>
Nicolas Karakatsanis, PhD Candidate
<br>
Biomedical Simulations and Imaging Technologies Laboratory
<br>
School of Electrical and Computer Engineering
<br>
National Technical University of Athens, Greece
<br>
<br>
<br>
<br>
<br>
Guifen Lin wrote:
<blockquote cite="mid:982032.54311.qm@web15701.mail.cnb.yahoo.com"
type="cite">
<div>Hi,all gate-users</div>
<div>I want to read the file dose.bin which is created during a
simulation with a voxelised source.I open it using amide.Here is my
steps:</div>
<div>amide.exe->File->Import File(specify)->InterFile 3.3.</div>
<div>the results are shown:</div>
<div>AMIDE WARNING: Can't read file D:\amide\hof_brain_paraDose.bin
with libmdc/(X)MedCon<br>
Could you tell me how to read the dose.bin?</div>
<div>Thanks in advance!</div>
<p> </p>
<hr size="1"><a moz-do-not-send="true"
href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a>
<a class="moz-txt-link-freetext"
href="http://lists.healthgrid.org/mailman/listinfo/gate-users">http://lists.healthgrid.org/mailman/listinfo/gate-users</a>
__________ NOD32 3162 (20080605) Information __________
This message was checked by NOD32 antivirus system.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
</body>
</html>