From 82b11b6c88b6b25cf6b5bb54ad94bedbb908b807 Mon Sep 17 00:00:00 2001 From: srit Date: Wed, 22 Sep 2010 09:10:24 +0000 Subject: [PATCH] Skip last level corrections --- registration/clitkBLUTDIRGenericFilter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.47.1