<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>I have a question 
regarding using Analyze or Raw image file formats. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>In&nbsp;my program I 
read&nbsp;a test&nbsp;volume and compute the probability of each&nbsp;voxel in 
the&nbsp;volume belonging to some </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>class A. 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>&nbsp;It is 
important for me to keep the spatial&nbsp;location of the computed probability 
values. So I want<SPAN class=274250723-27072007>&nbsp;to store the 
probability&nbsp;values computed for&nbsp;every voxel, in a new volume with the 
same size and spacing information as the original volume, so l can compare the 
probability map with the original image.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>Right now, I create 
an output&nbsp;volume in Analyze format ( with the same header <FONT face=Arial 
size=2><SPAN class=274250723-27072007>information as the input 
volume)</SPAN></FONT>, and&nbsp;store the probability values&nbsp; in it. When I 
open the output&nbsp;volume it looks alright in terms of corresponding to the 
original image. But I am not sure if I am keeping the correct numerical values 
for the computed probabilities in my output volume. I compute the probabilities 
as&nbsp;double, then cast them in float, and then write them in the output 
volume using SetPixel( ). &nbsp;I get a warning when running the program. Can I 
store float values in the Analyze image? Do I loose any precision storing my 
numerical data in Analyze format? </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>I tried saving it as 
Raw image, using RawImageIO, and I get some errors in compile time as 
following:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>error C2955: 
'RawImageIO' : use of class template requires template argument 
list<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></FONT><FONT 
face=Arial size=2><SPAN class=274250723-27072007><BR>error C2955: 'RawImageIO' : 
use of class template requires template argument list</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>error C2514: 
'itk::SmartPointer&lt;class 
itk::RawImageIO&lt;TObjectType,`template-parameter258'&gt; &gt;' : class has no 
constructors</SPAN></FONT></DIV><FONT><SPAN class=274250723-27072007>
<DIV><BR><FONT face=Arial size=2>error C2262: 'rawIO' : cannot be 
destroyed</FONT></DIV>
<DIV><BR><FONT face=Arial size=2>error C2664: 'SetImageIO' : cannot convert 
parameter 1 from 'class itk::SmartPointer&lt;class 
itk::RawImageIO&lt;TOb<BR>jectType,`template-parameter258'&gt; &gt;' to 'class 
itk::ImageIOBase *'<SPAN class=274250723-27072007> </SPAN>&nbsp;No 
user-defined-conversion operator available that can perform this conversion, or 
the operator cannot be called<BR>Error executing 
cl.exe.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>I appreciate your 
feedback,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=274250723-27072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>Tina 
</SPAN></FONT></DIV></BODY></HTML>