Dear Naser,<br><br>I'm trying to do the same, and I think I've managed a bit on the way. I haven't implemented the dynamic phantom yet, only one frame of it but I think you can only apply it like that, do one simulation per "phantom frame" and then add them somehow. I create a voxelized phantom (via an ascii file, not interfile). Anyway, here's how I've done it so far (any comments are welcome of course!).<br>
<br>1. Generate the XCAT (formerly NCAT) phantom. I get the 32bit float binary output that I then convert to text output via my unix system by typing in the command line:<br><span style="color: rgb(51, 51, 255);">hexdump -v -e '1/4 "%f "' -e '"\n"' < binary32bitFloatInputFile > nameOfOutputfile.dat</span><br>
you then get the binary image represented as a long list of voxel values. You have to add a first line containing the image dimensions and the second line voxel dimensions. Your file (here voxelPhantom.dat) should look something like:<br>
<span style="color: rgb(51, 51, 255);">Nx Ny Nz</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">dx dy dz</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">2</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">4</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">5</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">6</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">1</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">6</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">5</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">2</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">3</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">.</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">.</span><span style="color: rgb(51, 51, 255);"></span><br><br>2. Make a range (range.dat) file that translates each voxel value to a material, e.g.<br><span style="color: rgb(51, 51, 255);">6</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">1 Air true 1.0 0.0 0.0 1.0</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">2 Water true 0.0 1.0 0.0 0.2</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">3 LSO true 0.0 0.0 1.0 1.0</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">4 GSO true 1.0 1.0 1.0 0.2</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">5 Tungsten true 1.0 1.0 0.0 0.2</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">6 Lucite true 1.0 0.5 0.0 0.2</span><br><br>see page 102 in the users guide (v5.0.0).<br>
<br>3. The voxelized phantom macro can look something like (page 101):<br><br><span style="color: rgb(51, 51, 255);"># V O X E L L I Z E D P H A N T O M</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"># Create a phantom called xcatPhantom</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">/gate/world/daughters/name xcatPhantom</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">/gate/world/daughters/insert regularMatrix</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"># Read the file : </span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">/gate/xcatPhantom/geometry/insertReader image</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">/gate/xcatPhantom/imageReader/insertTranslator tabulated</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">/gate/xcatPhantom/imageReader/tabulatedTranslator/readTable range.dat</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">/gate/xcatPhantom/imageReader/readFile voxelPhantom.dat</span><br>
<br>4. All ready to go I think! =)<br><br>Good luck!<br>Ida<br><br><div class="gmail_quote">2009/9/24 Naser Darwish <span dir="ltr"><<a href="mailto:naser.darwish@gmail.com">naser.darwish@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear gate-users,<br><br>I know that it is possible to use NCAT with GATE. Does anyone have any suggestions in how to setup NCAT with GATE. I appreciate any help.<br><br>Best regards,<br><font color="#888888"><br>Naser<br>
</font><br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br></blockquote></div><br>