X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkBLUTDIRGenericFilter.cxx;h=511c598a176d96407b3957cece42eef7da9223bc;hb=c4376513182f90792e51416ff39fccb983ddc736;hp=2e0c756f363c8ac244f8789a94ac9ead17cd64d2;hpb=175de75bb7c7cd15f2e61425af495faab18c6c30;p=clitk.git 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); }