From eb571b500b5d4cefa753757539858b923918130e Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Tue, 23 Aug 2022 10:22:28 +0200 Subject: [PATCH] fixes warnings --- modules/3d/src/levmarq.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/3d/src/levmarq.cpp b/modules/3d/src/levmarq.cpp index cc4e8a3f9b..72b2992297 100644 --- a/modules/3d/src/levmarq.cpp +++ b/modules/3d/src/levmarq.cpp @@ -343,17 +343,29 @@ LevMarq::Report detail::LevMarqBase::optimize() CV_LOG_DEBUG(NULL, "Finished: " << (found ? "" : "not ") << "found"); std::string fr = "Finish reason: "; if (settings.checkMinGradient && smallGradient) + { CV_LOG_DEBUG(NULL, fr + "gradient max val dropped below threshold"); + } if (settings.checkStepNorm && smallStep) + { CV_LOG_DEBUG(NULL, fr + "step size dropped below threshold"); + } if (settings.checkRelEnergyChange && smallEnergyDelta) + { CV_LOG_DEBUG(NULL, fr + "relative energy change between iterations dropped below threshold"); + } if (smallEnergy) + { CV_LOG_DEBUG(NULL, fr + "energy dropped below threshold"); + } if (tooLong) + { CV_LOG_DEBUG(NULL, fr + "max number of iterations reached"); + } if (bigLambda) + { CV_LOG_DEBUG(NULL, fr + "lambda has grown above the threshold, the trust region is too small"); + } return LevMarq::Report(found, iter, oldEnergy); }