Skip to content

Commit 62f1c5e

Browse files
author
deseilligny
committed
ii
1 parent 0af92d1 commit 62f1c5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

MMVII/src/Geoms/GeomsMapEstimate.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ template <class TypeMap>
203203
TypeMap aMap = RansacL1Estimate(aVIn,aVOut,aParam.ParamRS().NbTestOfErrAdm(TypeMap::NbPtsMin));
204204
cParamCtrWeightedLSq aPLSq= aParam.ParamLSQ();
205205

206+
// In case aPtrRes is null, we still need it for "StabilityAfterNextError / LeastSquareRefine"
206207
tTypeElem aResidual;
207208
if (aPtrRes==nullptr)
208209
aPtrRes = &aResidual;

MMVII/src/UtiMaths/uti_stat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bool cParamCtrWeightedLSq::StabilityAfterNextError(double anErr)
181181
if (aNb<mNbIterMin)
182182
return false;
183183

184-
if (GainRel(0,1)<1e-4) // if error almost stable (Ok) or increase (dangerous ...)
184+
if (GainRel(0,1)<mErrRelStop) // if error almost stable (Ok) or increase (dangerous ...)
185185
return true;
186186

187187
return false;

0 commit comments

Comments
 (0)