Skip to content

Commit 9e5b4a3

Browse files
author
deseilligny
committed
Bundle Line 2 debug ...
1 parent 344696c commit 9e5b4a3

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

MMVII/src/BundleAdjustment/BundleAdjustment.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,14 +454,16 @@ class cMMVII_BundleAdj
454454
void SetSharedIntrinsicParams(const std::vector<std::string> &);
455455

456456

457-
void AddPoseViscosity();
458-
void AddConstrainteRefPose();
457+
void AddPoseViscosity();
458+
void AddConstrainteRefPose();
459459
void AddConstrainteRefPose(cSensorCamPC & aCam,cSensorCamPC & aCamRef);
460460

461461

462-
void AddLineAdjust(const std::vector<std::string> &);
462+
void AddLineAdjust(const std::vector<std::string> &);
463+
void DeleteLineAdjust();
464+
void IterAdjustOnLine();
463465

464-
void SaveBlocRigid();
466+
void SaveBlocRigid();
465467
void Save_newGCP3D();
466468
void SaveTopo();
467469

@@ -477,7 +479,6 @@ class cMMVII_BundleAdj
477479

478480
cSetInterUK_MultipeObj<tREAL8> & SetIntervUK();
479481
private :
480-
void DeleteLineAdjust();
481482

482483
//============== Methods =============================
483484
cMMVII_BundleAdj(const cMMVII_BundleAdj &) = delete;

MMVII/src/BundleAdjustment/BundleLines.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ void cUK_Line3D_4BA::AddEquation()
367367
}
368368
}
369369

370+
/* *********************************************************** */
371+
/* */
372+
/* cMMVII_BundleAdj */
373+
/* */
374+
/* *********************************************************** */
375+
370376
void cMMVII_BundleAdj::AddLineAdjust(const std::vector<std::string> & aVParam)
371377
{
372378
tREAL8 aSigmaIm = cStrIO<double>::FromStr(aVParam.at(0));
@@ -376,6 +382,11 @@ void cMMVII_BundleAdj::AddLineAdjust(const std::vector<std::string> & aVParam)
376382
mSetIntervUK.AddOneObj(mLineAdjust);
377383
}
378384

385+
void cMMVII_BundleAdj::IterAdjustOnLine()
386+
{
387+
if (mLineAdjust)
388+
mLineAdjust->AddEquation();
389+
}
379390

380391

381392
// cUK_Line3D_4BA::cUK_Line3D_4BA(const std::vector<cSensorCamPC *> & aVCam,cPhotogrammetricProject * aPhProj,cMMVII_BundleAdj * aBA) :

MMVII/src/BundleAdjustment/cAppliBundAdj.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class cAppliBundlAdj : public cMMVII_Appli
101101
bool mShow_Cond; ///< compute and show system condition number
102102
std::vector<std::string> mParamShow_UK_UC;
103103
std::string mPostFixReport;
104+
std::vector<std::string> mParamLine;
104105
};
105106

106107
cAppliBundlAdj::cAppliBundlAdj(const std::vector<std::string> & aVArgs,const cSpecMMVII_Appli & aSpec) :
@@ -164,6 +165,7 @@ cCollecSpecArg2007 & cAppliBundlAdj::ArgOpt(cCollecSpecArg2007 & anArgOpt)
164165
<< AOpt2007(mShow_Cond,"Cond","Compute and show system condition number")
165166
<< AOpt2007(mParamShow_UK_UC,"UC_UK","Param for uncertainty & Show names of unknowns (tuning)")
166167
<< AOpt2007(mPostFixReport,NameParamPostFixReport(),CommentParamPostFixReport())
168+
<< AOpt2007(mParamLine,"AdjLine3D","Parameter for line Adjustment [SigmaIm,NbPtsSampl]",{{eTA2007::ISizeV,"[2,2]"}})
167169
;
168170
}
169171

@@ -324,6 +326,10 @@ int cAppliBundlAdj::Exe()
324326
mBA.AddCamBlocRig(aNameIm);
325327
}
326328

329+
if (IsInit(&mParamLine))
330+
{
331+
mBA.AddLineAdjust(mParamLine);
332+
}
327333

328334
if (mPhProj.DPClinoMeters().DirInIsInit())
329335
{

0 commit comments

Comments
 (0)