From: David Sarrut Date: Wed, 19 Oct 2011 11:03:09 +0000 (+0200) Subject: Set the inverse orientation flag after the addorientation X-Git-Tag: v1.3.0~174^2~50 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d61af23ffdc64b4ca42c242bdd8a364151c042c4;p=clitk.git Set the inverse orientation flag after the addorientation --- 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); - } //--------------------------------------------------------------------