<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Interfile format for STIR</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT FACE="Arial">Hello all,</FONT>
</P>
<P><FONT FACE="Arial">I have posted a question to the STIR user list and someone suggested to post it to the GATE user list.</FONT>
</P>
<P><FONT FACE="Arial">I am trying to use STIR to reconstruct simulated data using GATE, and I have a question about the input intefile format for STIR.</FONT></P>
<P><FONT FACE="Arial">STIR seems to require its own interfile format as input. The intefile format seems to be different from the Intefile 3.3 standard. When I "manip_image" on a header file in the standard Interfile 3.3 format (I think) generated with medcon, I have gotten the following warning for each parameter</FONT></P>
<P><FONT FACE="Arial"> WARNING: KeyParser warning: unrecognized keyword: </FONT>
<BR><FONT FACE="Arial">At the end of the message I have gotten another message</FONT>
<BR><FONT FACE="Arial"> ERROR: DiscretisedDensity::read_from_file: m000-sel_CT_scan.h33 seems n unsupported file format</FONT>
</P>
<P><FONT FACE="Arial">I would to know how to convert the Interfile 3.3 standard header and image files generated with medcon to the input format for the STIR executables. I tried to look at the web site</FONT> <A HREF="http://www.HammersmithImanet.com/~kris"><U><FONT COLOR="#0000FF" FACE="CMTT12">http://www.HammersmithImanet.com/</FONT><FONT COLOR="#0000FF" FACE="CMSY10">~</FONT><FONT COLOR="#0000FF" FACE="CMTT12">kris</FONT></U></A><FONT FACE="CMR12"> but I got a "not found" message on the web, I just found several email in the stir-user archive saying that the web site does not. </FONT></P>
<P><FONT FACE="CMR12">I am wondering whether there is any existing STIR executable converting the interfile 3.3 standard to .hv or I have to convert myself. If I have to convert it what parameters I should specify. I assume that the website should tell us what to do. I could not find more information in the user's guide other than the following in section 4.7.1.2. </FONT></P>
<P><FONT FACE="CMR12">Thanks,</FONT>
</P>
<P><FONT FACE="CMR12">Hyejoo</FONT>
</P>
<P><FONT FACE="CMBX12">4.7.1.2</FONT> <FONT FACE="CMTI12">Interfile</FONT> <FONT FACE="CMR12">The most comprehensively supported file format in the library</FONT>
<BR><FONT FACE="CMR12">is a newly proposed version of interfile. More details about this type can be found</FONT>
<BR><FONT FACE="CMR12">on</FONT> <A HREF="http://www.HammersmithImanet.com/kris"><U><FONT COLOR="#0000FF" FACE="CMTT12">http://www.HammersmithImanet.com/</FONT><FONT COLOR="#0000FF" FACE="CMSY10"></FONT><FONT COLOR="#0000FF" FACE="CMTT12">kris</FONT></U></A><FONT FACE="CMR12">. Interfile image files are written</FONT>
<BR><FONT FACE="CMR12">as a pair of files</FONT> <FONT FACE="CMTI12">image filename.hv, image filename.v</FONT>
<BR><FONT FACE="CMR12">where</FONT> <FONT FACE="CMTI12">image filename.hv</FONT> <FONT FACE="CMR12">is the header text file and</FONT> <FONT FACE="CMTI12">image filename.v</FONT> <FONT FACE="CMR12">is the data file.</FONT>
<BR><FONT FACE="CMR12">In addition, we currently write a</FONT> <FONT FACE="CMTI12">.ahv</FONT> <FONT FACE="CMR12">file which uses Interfile 3.3 conventions, with</FONT>
<BR><FONT FACE="CMR12">a tweak for the</FONT> <FONT FACE="CMTT12">slice thickness</FONT> <FONT FACE="CMR12">keyword to work-around an Analyze</FONT><FONT SIZE=1 FACE="CMMI8">TM</FONT> <FONT FACE="CMR12">bug (see</FONT>
<BR><FONT FACE="CMR12">the comments for write basic interfile image header() in</FONT> <FONT FACE="CMBX12">STIR</FONT><FONT FACE="CMR12">/</FONT><FONT FACE="CMBX12">IO/interfile.cxx</FONT><FONT FACE="CMR12">).</FONT>
<BR><FONT FACE="CMR12">The</FONT> <FONT FACE="CMTI12">.ahv</FONT> <FONT FACE="CMR12">file is probably also readable by other programs capable of reading Interfile</FONT>
<BR><FONT FACE="CMR12">3.3.</FONT>
<BR><FONT FACE="CMR12">If this output file format is used, and a filename without extension is specified for</FONT>
<BR><FONT FACE="CMR12">output, or when the filename has an extension</FONT> <FONT FACE="CMTI12">.hv</FONT><FONT FACE="CMR12">, the above naming conventions</FONT>
<BR><FONT FACE="CMR12">hold. If a filename with another extension is specified, this name is used for the</FONT>
<BR><FONT FACE="CMR12">name of the binary file.</FONT>
<BR><FONT FACE="CMR12">When a file must be specified for reading as a parameter for a</FONT> <FONT FACE="CMTI12">STIR</FONT> <FONT FACE="CMR12">utility or</FONT>
<BR><FONT FACE="CMR12">reconstruction program, the name of the</FONT> <FONT FACE="CMTI12">.hv</FONT> <FONT FACE="CMR12">header file should be given.</FONT>
<BR><FONT FACE="CMBX12">Warning</FONT> <FONT FACE="CMR12">The interfile 3.3 standard does not allow to specify scale factors for</FONT>
<BR><FONT FACE="CMR12">the data. Hence, the</FONT> <FONT FACE="CMTI12">.ahv</FONT> <FONT FACE="CMR12">file has no scale factors. This means that any program</FONT>
<BR><FONT FACE="CMR12">that reads the</FONT> <FONT FACE="CMTI12">.ahv</FONT> <FONT FACE="CMR12">file</FONT> <FONT FACE="CMBX12">will have improperly scaled images</FONT><FONT FACE="CMR12">, unless the scale</FONT>
<BR><FONT FACE="CMR12">factor is 1. However, when using float output,</FONT> <FONT FACE="CMTI12">STIR</FONT> <FONT FACE="CMR12">automatically writes data with</FONT>
<BR><FONT FACE="CMR12">scale factor equal to 1, so as long as your non-</FONT><FONT FACE="CMTI12">STIR</FONT> <FONT FACE="CMR12">program knows about float</FONT>
<BR><FONT FACE="CMR12">data, everything will be all right. The newly proposed Interfile standard does use a</FONT>
<BR><FONT FACE="CMR12">scale factor, and the</FONT> <FONT FACE="CMTI12">.hv</FONT> <FONT FACE="CMR12">file follows this convention. However, currently probably</FONT>
<BR><FONT FACE="CMR12">only</FONT> <FONT FACE="CMTI12">STIR</FONT> <FONT FACE="CMR12">programs know about this convention.</FONT>
</P>
<BR>
<BR>
<P><pre wrap>
=====================================================================
Please note that this e-mail and any files transmitted with it may be
privileged, confidential, and protected from disclosure under
applicable law. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
reading, dissemination, distribution, copying, or other use of this
communication or any of its attachments is strictly prohibited. If
you have received this communication in error, please notify the
sender immediately by replying to this message and deleting this
message, any attachments, and all copies and backups from your
computer.
</pre></P></BODY>
</HTML>