<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< MovingImageType > ReaderType;</P></FONT><FONT color=#0000ff size=2>
<P>typedef</FONT><FONT size=2> itk::RawImageIO<PixelType,Dimension> ImageIOType;</P>
<P>ImageIOType::Pointer RawIO = ImageIOType::New();</P>
<P>ReaderType::Pointer reader = ReaderType::New();</P>
<P>reader->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 <xabiarta@unav.es><BR>To: tony hakki <tony2007vtk@yahoo.com><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 <BR>the RawImageIO class. You will need to specify the pixel type, the <BR>dimensions and so on of your image. But it might be easier to write a <BR>header and construct a *.mhd image. That way you can use the generic <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 <tony2007vtk@yahoo.com> ha escrito:<BR><BR>> Hello ;<BR>> I need really an urgent answer. I hope somebody will help me. Does <BR>> ITK support .raw data formats. Can I read it like that,if no how <BR>> can I read it.<BR>> ...<BR>> ....<BR>> MovingImageReaderType::Pointer movingImageReader = <BR>>
MovingImageReaderType::New();<BR>> movingImageReader->SetFileName("3Ddataset.raw" );<BR>> ....<BR>> ....<BR>> registrationMethod->SetMovingImage(movingImageReader );<BR>><BR>> Thank you<BR>><BR>><BR>><BR>> ____________________________________________________________________________________<BR>> Cheap talk?<BR>> Check out Yahoo! Messenger's low PC-to-Phone call rates.<BR>> <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>