Skip to content

Commit c1574ec

Browse files
author
deseilligny
committed
Line "dont plante" result to test ...
1 parent 9e5b4a3 commit c1574ec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

MMVII/src/BundleAdjustment/BundleLines.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ cOneData_L23::cOneData_L23(cSensorCamPC * aCam,const tSeg2dr & aSeg,int aKIm) :
106106
mSeg (aSeg),
107107
mPlane (mCam->SegImage2Ground(mSeg)),
108108
mKIm (aKIm),
109-
mLineM (nullptr)
109+
mLineM (nullptr),
110+
mCalcEqSeg (nullptr)
110111
{
111112
}
112113

@@ -317,6 +318,7 @@ void cUK_Line3D_4BA::AddOneEquation(tREAL8 aLambda,tREAL8 aWeight,const cOneData
317318
cPt2dr aTgtL2 = aLDM->TgSpace(aPImOnL2).at(0);
318319
cPt2dr aNormL2 = Rot90(aTgtL2);
319320

321+
//StdOut() << " PIMG=" << aPImPG << " PL=" << aPImOnL2 << "\n";
320322

321323
// std::vector<std::string> aVecLIne2D = Append(NamesP2("Line2D_Pt"),NamesP2("Line2D_Norm"));
322324
aPImOnL2.PushInStdVector(aVObs);
@@ -352,6 +354,7 @@ void cUK_Line3D_4BA::AddOneEquation(tREAL8 aLambda,tREAL8 aWeight,const cOneData
352354
}
353355
}
354356

357+
355358
mBA->Sys()->R_CalcAndAddObs(aData.SetAndGet_CalcEqSeg(),aVIndexes,aVObs,aWeight);
356359
}
357360

MMVII/src/BundleAdjustment/cMMVII_BundleAdj.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ void cMMVII_BundleAdj::OneIteration(tREAL8 aLVM,bool isLastIter, bool doShowCond
388388
for (const auto & aLidarPh : mVBA_Lidar )
389389
aLidarPh->AddObs();
390390

391+
// Add observation for line adjustment
392+
IterAdjustOnLine();
393+
391394
if (mCompute_Uncert && isLastIter)
392395
{
393396
// StdOut() << "mCompute_UncertmCompute_UncertmCompute_Uncert--------------------------------\n";

0 commit comments

Comments
 (0)