]> Creatis software - clitk.git/commitdiff
Set the inverse orientation flag after the addorientation
authorDavid Sarrut <david.sarrut@gmail.com>
Wed, 19 Oct 2011 11:03:09 +0000 (13:03 +0200)
committerDavid Sarrut <david.sarrut@gmail.com>
Wed, 19 Oct 2011 11:03:09 +0000 (13:03 +0200)
tools/clitkRelativePositionGenericFilter.txx

index 66c4be47cfa9c80e9e5b687675e30ecf6f6e1061..4114e55cfc1b8d1f238dfb42659ee7e47f2a8901 100644 (file)
@@ -69,6 +69,9 @@ SetOptionsFromArgsInfoToFilter(FilterType * f)
   f->SetVerboseStepFlag(mArgsInfo.verboseStep_flag);
   f->SetWriteStepFlag(mArgsInfo.writeStep_flag);
 
+  // Must be set before AddOrientationTypeString
+  f->SetInverseOrientationFlag(mArgsInfo.inverse_flag);
+  
   for(uint i=0; i<mArgsInfo.orientation_given; i++) {
     f->AddOrientationTypeString(mArgsInfo.orientation_arg[i]);
   }
@@ -85,8 +88,6 @@ SetOptionsFromArgsInfoToFilter(FilterType * f)
   f->SetRemoveObjectFlag(!mArgsInfo.doNotRemoveObject_flag);
   f->SetAutoCropFlag(!mArgsInfo.noAutoCrop_flag);
   f->SetCombineWithOrFlag(mArgsInfo.combineWithOr_flag);
-  f->SetInverseOrientationFlag(mArgsInfo.inverse_flag);
-  
 }
 
 //--------------------------------------------------------------------