From: srit Date: Wed, 22 Sep 2010 09:10:24 +0000 (+0000) Subject: Skip last level corrections X-Git-Tag: v1.2.0~379 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=82b11b6c88b6b25cf6b5bb54ad94bedbb908b807;p=clitk.git Skip last level corrections --- diff --git a/registration/clitkBLUTDIRGenericFilter.cxx b/registration/clitkBLUTDIRGenericFilter.cxx index 2e0c756..511c598 100755 --- a/registration/clitkBLUTDIRGenericFilter.cxx +++ b/registration/clitkBLUTDIRGenericFilter.cxx @@ -206,10 +206,10 @@ void BLUTDIRGenericFilter::InitializeImageType() // DS : if we want to skip the last pyramid level, force to only 1 iteration DD(m_ArgsInfo.skipLastPyramidLevel_flag); - if (m_ArgsInfo.skipLastPyramidLevel_flag) { + if ((currentLevel == numberOfLevels) && (m_ArgsInfo.skipLastPyramidLevel_flag)) { DD(m_ArgsInfo.maxIt_arg); - std::cout << "I skip the last pyramid level : set max iteration to 1" << std::endl; - m_ArgsInfo.maxIt_arg = 1; + std::cout << "I skip the last pyramid level : set max iteration to 0" << std::endl; + m_ArgsInfo.maxIt_arg = 0; DD(m_ArgsInfo.maxIt_arg); }