[Insight-users] itk::PermuteAxesImageFilter: Order indices must not repeat
Yves Martelli
ymartelli at cistib.upf.edu
Thu Mar 24 11:37:42 EDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110324/8e41981d/attachment.htm>
More information about the Insight-users
mailing list