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

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Apr 16 16:10:32 EDT 2014


Hello,

Are you Reading it as a 2D or 3D image? 

If a 2D sub-matrix is used for the orientation it may be invalid. Try reading it as a 3D image.

Brad

On Apr 16, 2014, at 1:59 PM, Emma Saunders <emmasaunders123 at gmail.com> wrote:

> 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
> <Warp.nii>_____________________________________
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community

_____________________________________
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