<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES-TRAD link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Dear list,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Here is the mhd header of my data:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>ObjectType = Image<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>NDims = 3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>BinaryData = True<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>BinaryDataByteOrderMSB = False<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>CompressedData = False<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>TransformMatrix = 0.828301 0.488478 0.274421 -0.533463 0.537852 0.652789 0.171276 -0.687099 0.706088<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Offset = -5.73852 -56.2626 -66.4521<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>CenterOfRotation = 0 0 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>AnatomicalOrientation = RPI<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ElementSpacing = 0.964286 0.964286 0.964286<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>DimSize = 112 112 111<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ElementType = MET_FLOAT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ElementDataFile = image.raw<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>And this is what I am trying to do:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>orienter->UseImageDirectionOn();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>orienter->SetDesiredCoordinateOrientation(itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RAI);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>orienter->SetInput( reader->GetOutput() );<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Best,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Yves<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div></body></html>