<div dir="ltr"><div><div><div>Hi User,<br><br></div>your macro should read the header which is h33, I am not sure why your macro doesn't able to read the header.<br></div><div><br></div><div><br></div>Regards,<br></div>Ahmed<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 3:52 AM, Said Kaddouch <span dir="ltr"><<a href="mailto:saidkaddouch@gmail.com" target="_blank">saidkaddouch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="margin-bottom:0in" lang="en-US"><font size="4">Dear Ahmed<br></font></p><font size="4">
</font><p style="margin-bottom:0in" lang="en-US"><font size="4">I want to
use Zubal voxelized phantom in my simulation. I converted the Zubal data format to interfile using
</font></p><p style="margin-bottom:0in" lang="en-US"><font size="4">(X)Medcon
as follows </font>:</p>
<p style="margin-bottom:0in" lang="en-US"><br>
</p>
<p style="margin-bottom:0in" lang="en-US"> <font>Number
of images [1]? 243
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> General
header offset to binary data [0 bytes]? 0
(or 4096)</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Image
header offset to binary data [0 bytes]? 0
(or 4096)</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Image
header repeated before each image [No]? No
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Swap
the pixel bytes [No]? No
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Same
characteristics for all images [Yes]? Yes
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> ALL
IMAGES
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> ----------
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Absolute
offset in bytes [0]? 0
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Image
columns [0]? 128
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Image
rows [0]? 128
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Pixel
data type:
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
1 -> bit
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
2 -> Int8 3 -> Uint8
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
4 -> Int16 5 -> Uint16
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
6 -> Int32 7 -> Uint32
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
10 -> float 11 -> double
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
12 -> ascii
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
20 -> RGB
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font>
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font> Your
choice [4]? 5
</font></p>
<p style="margin-bottom:0in" lang="en-US"> <font size="4">after
running my macro with virtual GATE6.2 the following messages appear
and running procedure aborts.</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">'!ror:
Could not open header file 'zubal_phantom.i33
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">[Core-0]
Initialization of geometry
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">--------
EEEE ------- G4Exception-START -------- EEEE -------
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">***
G4Exception : GeomSolids0002
</font></p>
<p style="margin-bottom:0in" lang="en-US">
<font style="font-size:8pt">issued by : G4Box::G4Box()
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">Dimensions
too small for Solid: hof_zubal_solid!
</font></p>
<p style="margin-bottom:0in" lang="en-US"> <font style="font-size:8pt">hX,
hY, hZ = 0, 0, 0
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">***
Fatal Exception *** core dump ***
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">--------
EEEE -------- G4Exception-END --------- EEEE -------
</font></p>
<p style="margin-bottom:0in" lang="en-US"><font style="font-size:8pt">
</font></p>
<p style="margin-bottom:0in" lang="en-US">
</p>
<p style="margin-bottom:0in" lang="en-US"><font size="4">Gate can
not open the header file. what to do to solve this problem.</font></p><p style="margin-bottom:0in" lang="en-US"><font size="4">can you help me please?</font><br></p></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-10-13 22:59 GMT+02:00 Ahmed Elmekawy <span dir="ltr"><<a href="mailto:ahmedfelmekawy@gmail.com" target="_blank">ahmedfelmekawy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Mohsen,<br><br></div>Yes, you can use Xmedcon program to convert whatever you need, which mean dicom or analyze format image to interfile format, that mean " xxxx.dcm <span style="color:rgb(0,0,255)">or</span> xxxx.hdr and xxxx.img <span style="color:rgb(0,0,255)"> to </span> xxxx.h33 and xxxx.i33" .<br><br></div>Use this link ( <span style="color:rgb(0,0,255)"><a href="http://xmedcon.sourceforge.net/Main/Download" target="_blank">http://xmedcon.sourceforge.net/Main/Download</a></span> ) to download the package but use Windows package not Mac iso package because Mac iso doesn't have viewer screen as I tried before may be it will work with you for Mac, after install Xmedcon with windows system, you can open the image and save as the image with interfile format and you will get image with extension h33 and i33.<br><br><br></div>Best Regards,<br>Ahmed <br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 12, 2014 at 8:49 PM, xcao <span dir="ltr"><<a href="mailto:xcao@mail.ihep.ac.cn" target="_blank">xcao@mail.ihep.ac.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="MARGIN:10px">
<div>hello,mohsen</div>
<div> </div>
<div> You may use the software
<font size="5"><font color="#ffffff"><font color="#000001" face="" size="1">xmedcon to try, it can transfer xcat data to
Gate。</font></font></font><span> </span></div>
<div><span></span> </div>
<div><span>Shelly</span></div>
<hr style="WIDTH:210px;min-height:1px" color="#b5c4df" align="left" size="1">
<div><span>xcao</span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="PADDING-BOTTOM:8px;PADDING-LEFT:8px;PADDING-RIGHT:8px;BACKGROUND:#efefef;COLOR:#000000;FONT-SIZE:12px;PADDING-TOP:8px">
<div><b>From:</b> <a href="mailto:gate-users-request@lists.opengatecollaboration.org" target="_blank">gate-users-request</a></div>
<div><b>Date:</b> 2014-10-12 16:54</div>
<div><b>To:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users</a></div>
<div><b>Subject:</b> Gate-users Digest, Vol 101, Issue 12</div></div></div>
<div>
<div>Send Gate-users mailing list submissions to</div>
<div><a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a></div>
<div> </div>
<div>To subscribe or unsubscribe via the World Wide Web, visit</div>
<div><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
<div>or, via email, send a message with subject or body 'help' to</div>
<div><a href="mailto:gate-users-request@lists.opengatecollaboration.org" target="_blank">gate-users-request@lists.opengatecollaboration.org</a></div>
<div> </div>
<div>You can reach the person managing the list at</div>
<div><a href="mailto:gate-users-owner@lists.opengatecollaboration.org" target="_blank">gate-users-owner@lists.opengatecollaboration.org</a></div>
<div> </div>
<div>When replying, please edit your Subject line so it is more specific</div>
<div>than "Re: Contents of Gate-users digest..."</div>
<div>------------------------------</div>
<div> </div>
<div>Message: 2</div>
<div>Date: Sun, 12 Oct 2014 10:45:04 +0100</div>
<div>From: Mohsen Sadat shahabi <<a href="mailto:s.mohsen_shahabi@yahoo.com" target="_blank">s.mohsen_shahabi@yahoo.com</a>></div>
<div>To: "<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a>"</div>
<div><<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a>></div>
<div>Subject: [Gate-users] problem with voxelized phantom</div>
<div>Message-ID:</div>
<div><<a href="mailto:1413107104.80514.YahooMailNeo@web171705.mail.ir2.yahoo.com" target="_blank">1413107104.80514.YahooMailNeo@web171705.mail.ir2.yahoo.com</a>></div>
<div>Content-Type: text/plain; charset="utf-8"</div>
<div> </div>
<div>Hello Gate Users</div>
<div>I want to use Zubal phantom in gate and downloaded zubal .dat file from internet.</div>
<div>I converted this file to .hdr+ .img files using imagej software. I used this files for voxelized phantom</div>
<div>and it do not work.</div>
<div>Now i think maybe converting the .dat file to .h33 + .i33 files works. I searched whole internet an there is nothing about .i33 file.</div>
<div>Can anyone help me for converting .dat file to .i33 file?(i already added intrerfile_Tp pluging to imagej, but there is nothing about .i33 or .h33)</div>
<div>thanks in advance</div>
<div>mohsen</div>
<div>-------------- next part --------------</div>
<div>An HTML attachment was scrubbed...</div>
<div>URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141012/59a82f7e/attachment.html" target="_blank">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141012/59a82f7e/attachment.html</a>></div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>_______________________________________________</div>
<div>Gate-users mailing list</div>
<div><a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a></div>
<div><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
<div> </div>
<div>End of Gate-users Digest, Vol 101, Issue 12</div>
<div>*******************************************</div></div></div>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>