<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Ney, </div><div><br></div><div>looks like you figured out pretty much everything :) I think you are right and that is definitely a little/big endian problem. I haven't been using Gate for a couple of month but I remember having a similar problem. I think one of the two types is not well supported, no matter what you set in the input file. </div><div><br></div><div>This is not the nicest solution to provide but I think I just changed my phantom to little endian to make it work (what you can easily do with imageJ for example). Did you give it a try? </div><div><br></div><div>Best Regards </div><div><br></div><div>Thibault </div><div><br></div><div><br></div><div><br></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Post-doctoral fellow</div><div>Division of Medical Imaging Physics </div><div>Johns Hopkins Medical Institutions</div><div>JHOC 4260, 601 N. Caroline street, Baltimore, MD, 21287</div><div>Tel: +1 410 502 3772</div><div>Fax: +1 410 614 1060</div><div><a href="http://www.hopkinsradiology.org/dmip/">http://www.hopkinsradiology.org/dmip/</a></div></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Sep 26, 2013, at 3:24 PM, Auranuch Lorsakul <<a href="mailto:auranuch.lorsakul@gmail.com">auranuch.lorsakul@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Gate Users,<br><br>With Gate v.6.2, I have a voxelized XCAT phantom uint 16 for a CT simulation, but I got an error message shown below.<br><br>"GateGeometryVoxelInterfileReader::ReadFile: WARNING: voxel not added (material translation not found); value 43520."<br><br>This phantom works fine with Gate 6.1 on the PET simulation.<br><br>However, I could reproduce a problem by simply generating a two-value phantom and a table. I found out that it is because there is a index value in the phantom is not defined in the table.<br><br>Regarding the error message shown above, I don't have the index value = 43520 in the phantom anymore (all index values in the phantom are less than 1000). I think it might be something wrong with the data type or data byte order. As the header file and the output log shown below, the data byte order is "Bigendian."<br><br>I am wondering how to define the phantom correctly in Gate 6.2. Is there anything changed/upgraded for defining the phantom?<br><br><br>!INTERFILE :=<br><br>!name of data file := IMG_LESION_1.dat<br><br>!matrix size [1] := 512<br>!matrix size [2] := 242<br>!number format := unsigned integer<br>scaling factor (mm/pixel) [1] := 1.030<br>scaling factor (mm/pixel) [2] := 1.030<br>!number of slices := 231<br>slice thickness (pixels) := +0.687<br>ce thickness (pixels) := +0.687<br><br><br>OUTPUT LOG:<br>---------------------------<br> Header read from 'Xcat_header.h33'<br> Data file name 'IMG_LESION_1.dat'<br> Nb of planes: 231<br> Nb of pixels per plane: 512 242<br> Pixel size: 1.03 1.03<br> Slice thickness: 0.687<br> Matrix size: 527.36 249.26<br> Data type: UNSIGNED INTEGER<br> Data byte order:<span class="Apple-tab-span" style="white-space:pre"> </span> BIGENDIAN<br><br>Thanks,<br>Ney<br><br>_______________________________________________<br>Gate-users mailing list<br><a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br></blockquote></div><br></body></html>