From d61af23ffdc64b4ca42c242bdd8a364151c042c4 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Wed, 19 Oct 2011 13:03:09 +0200 Subject: [PATCH] Set the inverse orientation flag after the addorientation --- tools/clitkRelativePositionGenericFilter.txx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/clitkRelativePositionGenericFilter.txx b/tools/clitkRelativePositionGenericFilter.txx index 66c4be4..4114e55 100644 --- a/tools/clitkRelativePositionGenericFilter.txx +++ b/tools/clitkRelativePositionGenericFilter.txx @@ -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; iAddOrientationTypeString(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); - } //-------------------------------------------------------------------- -- 2.47.1