<html><head></head><body bgcolor="#FFFFFF"><div><div>Refer to&nbsp;<a href="http://www.itk.org/Wiki/ITK/Examples/IO/ImageFileReader">http://www.itk.org/Wiki/ITK/Examples/IO/ImageFileReader</a>, 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.</div><div><br></div><div>Best Martijn</div><br>Verstuurd vanaf mijn iPhone</div><div><br>Op 16 jan. 2012 om 20:23 heeft cagatay bilgin &lt;<a href="mailto:bilgincc@gmail.com">bilgincc@gmail.com</a>&gt; het volgende geschreven:<br><br></div><div></div><blockquote type="cite"><div><div>Hi Ali,&nbsp;</div><div><br></div><div>ITK Examples webpage is a good location to find&nbsp;</div><div>quick demonstrations for these.&nbsp;</div><div><br></div><div>The writer part of the following example</div><div><a href="http://www.vtk.org/Wiki/ITK/Examples/IO/TIFFImageIO">http://www.vtk.org/Wiki/ITK/Examples/IO/TIFFImageIO</a></div>
<div><br></div><div>and the reader part of the following example</div><a href="http://www.vtk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM">http://www.vtk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM</a><br><br>demonstrates the use of ImageIO classes for TIFF and DICOM<div>
files. I believe reading/writing NIFTI images will have a very&nbsp;</div><div>similar usage, instantiate NIFTIImageIO and SetImageIO for&nbsp;</div><div>the reader/writer.&nbsp;</div><div><br></div><div>Regards,&nbsp;</div><div>Cagatay<br><div>
<br><br><div class="gmail_quote">On Mon, Jan 16, 2012 at 10:14 AM, Ali Mouizina <span dir="ltr">&lt;<a href="mailto:ali.mouizina@gmail.com">ali.mouizina@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I'm a newbie in ITK and I'm looking for a basic example to read
    NIFTI images unsuccessfully. I found this class <a href="http://www.itk.org/Doxygen/html/classitk_1_1NiftiImageIO.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1NiftiImageIO.html</a>
    , 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<span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">&nbsp; &lt;</span><a href="http://www.itk.org/Doxygen/html/itkNiftiImageIO_8h_source.html" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:monospace;font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">itkNiftiImageIO.h</a><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">&gt;</span> . Can
    anyone help me ? <br>
    <br>
    Regards,<br><font color="#888888">
    <br>
    Ali <span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none"></span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none"><br>

    </span> <br>
  </font></div>

<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_____________________________________</span><br><span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at</span><br><span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Kitware offers ITK Training Courses, for more information visit:</span><br><span><a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the ITK FAQ at:</span><br><span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br></div></blockquote></body></html>