<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thank you for your kind reply ,Is that code,what you suggested to me?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">...</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">....</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> Dimension = 3;</P>
<P></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>float</FONT><FONT size=2> PixelType;</P></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT color=#0000ff size=2>
<P>typedef</FONT><FONT size=2> itk::ImageFileReader&lt; MovingImageType &gt; ReaderType;</P></FONT><FONT color=#0000ff size=2>
<P>typedef</FONT><FONT size=2> itk::RawImageIO&lt;PixelType,Dimension&gt; ImageIOType;</P>
<P>ImageIOType::Pointer RawIO = ImageIOType::New();</P>
<P>ReaderType::Pointer reader = ReaderType::New();</P>
<P>reader-&gt;SetFileName(</FONT><FONT color=#800000 size=2>"3Ddataset.raw"</FONT><FONT size=2>);</P></FONT><BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Xabier Artaechevarria Artieda &lt;xabiarta@unav.es&gt;<BR>To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<BR>Cc: insight-users@itk.org<BR>Sent: Thursday, January 25, 2007 3:44:10 PM<BR>Subject: Re: [Insight-users] Please urgent answer about .raw data<BR><BR>
<DIV>Hi Tony,<BR>you can not use a normal ImageReader to read RAW data. You must use&nbsp;&nbsp;<BR>the RawImageIO class. You will need to specify the pixel type, the&nbsp;&nbsp;<BR>dimensions and so on of your image. But it might be easier to write a&nbsp;&nbsp;<BR>header and construct a *.mhd image. That way you can use the generic&nbsp;&nbsp;<BR>ImageReader.<BR>Regards,<BR>Xabi<BR><BR>-- <BR>Xabier Artaechevarria<BR>Cancer Imaging Laboratory<BR>Centre for Applied Medical Research<BR><A href="http://www.cima.es/" target=_blank>www.cima.es</A><BR><BR><BR><BR>tony hakki &lt;tony2007vtk@yahoo.com&gt; ha escrito:<BR><BR>&gt; Hello ;<BR>&gt; I need really an urgent answer. I hope somebody will help me. Does&nbsp;&nbsp; <BR>&gt; ITK support .raw data formats.&nbsp;&nbsp;Can I read it like that,if no how&nbsp;&nbsp; <BR>&gt; can&nbsp;&nbsp;I read it.<BR>&gt; ...<BR>&gt; ....<BR>&gt; MovingImageReaderType::Pointer movingImageReader =&nbsp;&nbsp; <BR>&gt;
 MovingImageReaderType::New();<BR>&gt; movingImageReader-&gt;SetFileName("3Ddataset.raw" );<BR>&gt; ....<BR>&gt; ....<BR>&gt; registrationMethod-&gt;SetMovingImage(movingImageReader );<BR>&gt;<BR>&gt; Thank you<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ____________________________________________________________________________________<BR>&gt; Cheap talk?<BR>&gt; Check out Yahoo! Messenger's low PC-to-Phone call rates.<BR>&gt; <A href="http://voice.yahoo.com/" target=_blank>http://voice.yahoo.com</A><BR><BR><BR><BR>----------------------------------------------------------------<BR>Este mensaje ha sido enviado desde <A href="https://webmail.unav.es/" target=_blank>https://webmail.unav.es</A></DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
<hr size=1>Cheap Talk? <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Check out</a> Yahoo! Messenger's low PC-to-Phone call rates.</body></html>