[Insight-users] Reading nii images with itk

Martijn Steenwijk martijnsteenwijk at gmail.com
Mon Jan 16 15:48:34 EST 2012


Refer to http://www.itk.org/Wiki/ITK/Examples/IO/ImageFileReader, with the difference that you have 3 or more dimensions. If the extension is nii or nii.gz, the reader will automatically detect the filetype.

Best Martijn

Verstuurd vanaf mijn iPhone

Op 16 jan. 2012 om 20:23 heeft cagatay bilgin <bilgincc at gmail.com> het volgende geschreven:

> Hi Ali, 
> 
> ITK Examples webpage is a good location to find 
> quick demonstrations for these. 
> 
> The writer part of the following example
> http://www.vtk.org/Wiki/ITK/Examples/IO/TIFFImageIO
> 
> and the reader part of the following example
> http://www.vtk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM
> 
> demonstrates the use of ImageIO classes for TIFF and DICOM
> files. I believe reading/writing NIFTI images will have a very 
> similar usage, instantiate NIFTIImageIO and SetImageIO for 
> the reader/writer. 
> 
> Regards, 
> Cagatay
> 
> 
> On Mon, Jan 16, 2012 at 10:14 AM, Ali Mouizina <ali.mouizina at gmail.com> wrote:
> Hi,
> 
> I'm a newbie in ITK and I'm looking for a basic example to read NIFTI images unsuccessfully. I found this class http://www.itk.org/Doxygen/html/classitk_1_1NiftiImageIO.html , but I don't see how could I use it. I read the documentation of ITK about how to read images and I don't see at which moment Isould invoke methods from  <itkNiftiImageIO.h> . Can anyone help me ? 
> 
> Regards,
> 
> Ali 
> 
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120116/59f37577/attachment.htm>


More information about the Insight-users mailing list