<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [Gate-users] Hoffmann brain phantom- GATE can't read interfile</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi, Daniel,<BR>
<BR>
I guess you should copy the data file "hof3.i33"<BR>
to your current dir "./".<BR>
<BR>
For<BR>
"Error: Could not open header file 'hof3.i33'!"<BR>
<BR>
I guess it is just a typo in gate code, may should be data file not header file.<BR>
<BR>
Actually, a good practice in GATE is to copy all necessary files<BR>
(e.g., GateMaterials.db, all macros, all header and data files)<BR>
in running dir, and to check and modify respect dependency before running<BR>
a job.<BR>
<BR>
Hope it is the case. Good lucky.<BR>
<BR>
Yu Chen, Ph.D.<BR>
University of Massachusetts Medical School<BR>
Division of Nuclear Medicine<BR>
55 Lake Avenue North<BR>
Worcester, MA 01655-0243<BR>
Phone: (508) 856-6123<BR>
Fax: (508) 856-4572<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: gate-users-bounces@lists.healthgrid.org on behalf of Daniel Woodsworth<BR>
Sent: Tue 6/5/2007 5:47 PM<BR>
To: gate-users@lists.healthgrid.org<BR>
Subject: [Gate-users] Hoffmann brain phantom- GATE can't read interfile<BR>
<BR>
Hi,<BR>
<BR>
I am trying to run a simulation of a digital Hoffmann brain phantom. I am<BR>
using the Interfile data distributed with GATE (found in<BR>
$GATEHOME/examples/example_PHANTOM_SOURCE/Voxelized_Phantom_Source). When<BR>
I try to read the interfile into GATE I get:<BR>
<BR>
PreInit> /gate/hof_brain/interfileReader/readFile ../hoffmann_data/hof3.h33<BR>
/gate/hof_brain/interfileReader/readFile ../hoffmann_data/hof3.h33<BR>
Header read from '../hoffmann_data/hof3.h33'<BR>
Data file name 'hof3.i33'<BR>
Nb of planes: 55<BR>
Nb of pixels per plane: 128 128<BR>
Pixel size: 2.000e+00 2.000e+00<BR>
Slice thickness: 2.000e+00<BR>
Matrix size: 2.560e+02 2.560e+02<BR>
Data type: UNSIGNED INTEGER<BR>
<BR>
<BR>
Error: Could not open header file 'hof3.i33'!<BR>
PreInit><BR>
<BR>
I have looked at the hof3.i33 file (using matlab to read in the binary)<BR>
and it seems completely uncorrupted. Does anyone know how to fix this<BR>
problem? I wonder why it says could not open header file 'hof3.i33' when<BR>
the .i33 file is in fact not the header (which is the .h33 file) and<BR>
rather is the binary file? The .h33 file and the .i33 file are in the same<BR>
directory and GATE seems to read the header file fine, so I don't think it<BR>
is simply an access problem. I pasted my macro below (it is essentially<BR>
the same as the GATE example).<BR>
<BR>
Thanks for any help.<BR>
<BR>
Daniel<BR>
<BR>
<BR>
###############################################################################<BR>
#Phantom Macro. (phan.mac)<BR>
###############################################################################<BR>
<BR>
#Create and intialize a voxellized object.<BR>
/gate/world/daughters/name hof_brain<BR>
/gate/world/daughters/insert parameterizedBoxMatrix<BR>
<BR>
#Tell GATE to get ready to read an interfile.<BR>
/gate/hof_brain/geometry/insertReader interfile<BR>
/gate/hof_brain/interfileReader/insertTranslator range<BR>
<BR>
#GATE now reads in a table which contains a greyscale range, with a<BR>
#corresponding attenuation coefficient. It tells GATE what attenuation values<BR>
#to assign to the greyscale pixels.<BR>
/gate/hof_brain/interfileReader/rangeTranslator/readTable<BR>
../hoffmann_data/range.dat<BR>
/gate/hof_brain/interfileReader/rangeTranslator/describe 1<BR>
<BR>
#Now read the interfile and perform the mapping.<BR>
/gate/hof_brain/interfileReader/readFile ../hoffmann_data/hof3.h33<BR>
<BR>
#Attach VoxelPhantomSD- toolkit so GATE can track particle interactions in<BR>
the<BR>
#Phantom. Note that it must be Voxel, not normal PhantomSD<BR>
/gate/hof_brain/attachVoxelPhantomSD<BR>
<BR>
<BR>
_______________________________________________<BR>
Gate-users mailing list<BR>
Gate-users@lists.healthgrid.org<BR>
<A HREF="http://lists.healthgrid.org/mailman/listinfo/gate-users">http://lists.healthgrid.org/mailman/listinfo/gate-users</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>