[Insight-users] itk::PermuteAxesImageFilter: Order indices must not repeat
Magnotta, Vincent A
vincent-magnotta at uiowa.edu
Thu Mar 24 11:52:26 EDT 2011
Yves,
It looks like the Transformation matrix is not orthogonal. The OrientImageFilter requires that the matrix defines three orthogonal vectors. I would recommend not using this filter and deal with the image in Physical space versus voxel space.
Vince
--
Associate Professor
Department of Radiology
0453-D JCP
200 Hawkins Drive
Iowa City, IA 52242
E-mail: vincent-magnotta at uiowa.edu
Phone: 319-356-8255 Fax: 319-353-6275
Website: http://www.healthcare.uiowa.edu/Radiology
From: Yves Martelli <ymartelli at cistib.upf.edu<mailto:ymartelli at cistib.upf.edu>>
Date: Thu, 24 Mar 2011 16:37:42 +0100
To: "insight-users at itk.org<mailto:insight-users at itk.org>" <insight-users at itk.org<mailto:insight-users at itk.org>>
Subject: [Insight-users] itk::PermuteAxesImageFilter: Order indices must not repeat
Dear list,
I am trying to reorient an itk::Image using the itk::OrientImageFilter in ITK version 3.20 but I run into the ‘Order indices must not repeat’ error from the itk::PermuteAxesImageFilter used inside the orient filter.
Here is the mhd header of my data:
ObjectType = Image
NDims = 3
BinaryData = True
BinaryDataByteOrderMSB = False
CompressedData = False
TransformMatrix = 0.828301 0.488478 0.274421 -0.533463 0.537852 0.652789 0.171276 -0.687099 0.706088
Offset = -5.73852 -56.2626 -66.4521
CenterOfRotation = 0 0 0
AnatomicalOrientation = RPI
ElementSpacing = 0.964286 0.964286 0.964286
DimSize = 112 112 111
ElementType = MET_FLOAT
ElementDataFile = image.raw
And this is what I am trying to do:
orienter->UseImageDirectionOn();
orienter->SetDesiredCoordinateOrientation(itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RAI);
orienter->SetInput( reader->GetOutput() );
Is there a problem with its orientation that makes it incompatible with the permute filter? Are they any limitations in terms of orientations for the orient filter? Or is there an error in the image file?
Best,
Yves
_____________________________________ 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
________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110324/e3d989f2/attachment.htm>
More information about the Insight-users
mailing list