[ITK] [ITK-users] header direction matrix error when reading in ITK

Emma Saunders emmasaunders123 at gmail.com
Wed Apr 16 13:59:48 EDT 2014


Hi all,

I have a vector field produced by antsRegistration which uses ITKV4.  It
produces a vector field which when I try to read with both ITK and ITKsnap
I receive an error regarding the direction matrix.

When loading this nii file into matlab however I obtain the quaternions as:

     quatern_b: -0.5000
      quatern_c: 0.5000
      quatern_d: -0.5000

Which results in a valid direction matrix R=[0 0 1; -1 0 0; 0  -1 0].

How can ITK not read this data, is it doing something more with the nii
file header?

The file is only 1 slice but the dimensions are consistent i.e 64x64x1

Has anyone any idea where the problem lies?

I have attached the file if anyone is interested

Thanks

Emma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140416/97a24c0d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Warp.nii
Type: application/octet-stream
Size: 49504 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140416/97a24c0d/attachment-0001.obj>
-------------- next part --------------
_____________________________________
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.php

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


More information about the Community mailing list