[Insight-users] Please urgent answer about .raw data

tony hakki tony2007vtk at yahoo.com
Thu Jan 25 10:12:01 EST 2007


thank you for your kind reply ,Is that code,what you suggested to me?
...
....
const unsigned int Dimension = 3;
typedef float PixelType;
typedef itk::ImageFileReader< MovingImageType > ReaderType;
typedef itk::RawImageIO<PixelType,Dimension> ImageIOType;
ImageIOType::Pointer RawIO = ImageIOType::New();
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName("3Ddataset.raw");



----- Original Message ----
From: Xabier Artaechevarria Artieda <xabiarta at unav.es>
To: tony hakki <tony2007vtk at yahoo.com>
Cc: insight-users at itk.org
Sent: Thursday, January 25, 2007 3:44:10 PM
Subject: Re: [Insight-users] Please urgent answer about .raw data


Hi Tony,
you can not use a normal ImageReader to read RAW data. You must use  
the RawImageIO class. You will need to specify the pixel type, the  
dimensions and so on of your image. But it might be easier to write a  
header and construct a *.mhd image. That way you can use the generic  
ImageReader.
Regards,
Xabi

-- 
Xabier Artaechevarria
Cancer Imaging Laboratory
Centre for Applied Medical Research
www.cima.es



tony hakki <tony2007vtk at yahoo.com> ha escrito:

> Hello ;
> I need really an urgent answer. I hope somebody will help me. Does   
> ITK support .raw data formats.  Can I read it like that,if no how   
> can  I read it.
> ...
> ....
> MovingImageReaderType::Pointer movingImageReader =   
> MovingImageReaderType::New();
> movingImageReader->SetFileName("3Ddataset.raw" );
> ....
> ....
> registrationMethod->SetMovingImage(movingImageReader );
>
> Thank you
>
>
>
> ____________________________________________________________________________________
> Cheap talk?
> Check out Yahoo! Messenger's low PC-to-Phone call rates.
> http://voice.yahoo.com



----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es


 
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070125/ae793ff3/attachment-0001.htm


More information about the Insight-users mailing list