<div dir="ltr">For NIfTI I/O, I'd suggest you stick to the latest tags as they up to date regarding the latest standards.<div><br></div><div>What exactly do you mean my manipulation? There is an ITK filter to change image information (<a href="https://itk.org/Doxygen/html/classitk_1_1ChangeInformationImageFilter.html">https://itk.org/Doxygen/html/classitk_1_1ChangeInformationImageFilter.html</a>) but that only happens AFTER itk::ImageFileReader has done its work.</div><div><br></div><div>Could you possibly try to get your collaborator to write a few images using a latest variant of ITK (preferably version matched with yours for consistency)? If not, then perhaps try to read the information in the header using the example inĀ <a href="https://itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType">https://itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType</a> and then do comparisons between what you expect.</div><div><br></div><div>All the best,</div><div>S<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 17, 2017 at 11:21 AM, Cyril Mory <span dir="ltr"><<a href="mailto:cyril.mory@creatis.insa-lyon.fr" target="_blank">cyril.mory@creatis.insa-lyon.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi ITK users,<br>
<br>
I have recently started working with nifti files, to collaborate with a colleague that uses this format. But the itk::ImageFileReader does not correctly open the nifti files I have (image size, offset and direction matrix are wrong). I use a recent version of ITK (commit from Feb 6 18:02:49 2017), but my colleague has his own fork from nifti_reg, which is several years old.<br>
<br>
Two questions:<br>
- Does someone have experience in manipulating nifti files from ITK, and if so, is it supposed to work fine ?<br>
- Have there been important modifications in the nifti format in the last years, which the ITK reader would have followed, and which could cause the issues I'm seeing when opening old ones ?<br>
<br>
Best regards,<br>
Cyril<br>
______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/product<wbr>s/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-users</a><br>
</blockquote></div><br></div></div></div>