<!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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>In my program I
read a test volume and compute the probability of each voxel in
the 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007> It is
important for me to keep the spatial location of the computed probability
values. So I want<SPAN class=274250723-27072007> to store the
probability values computed for 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>Right now, I create
an output 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 store the probability values in it. When I
open the output 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 double, then cast them in float, and then write them in the output
volume using SetPixel( ). 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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>error C2955:
'RawImageIO' : use of class template requires template argument
list<BR> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>error C2514:
'itk::SmartPointer<class
itk::RawImageIO<TObjectType,`template-parameter258'> >' : 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<class
itk::RawImageIO<TOb<BR>jectType,`template-parameter258'> >' to 'class
itk::ImageIOBase *'<SPAN class=274250723-27072007> </SPAN> 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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274250723-27072007>Tina
</SPAN></FONT></DIV></BODY></HTML>