Skip to content

Commit

Permalink
topo: fix for OriBundleAdj
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmuller committed Jun 14, 2024
1 parent 08d3fcd commit 66756f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
13 changes: 6 additions & 7 deletions MMVII/src/BundleAdjustment/cAppliBundAdj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ cCollecSpecArg2007 & cAppliBundlAdj::ArgOpt(cCollecSpecArg2007 & anArgOpt)
<< mPhProj.DPRigBloc().ArgDirInOpt("BRDirIn","Dir for Bloc Rigid if != DataDir") // RIGIDBLOC
<< mPhProj.DPRigBloc().ArgDirOutOpt() // RIGIDBLOC
<< mPhProj.DPTopoMes().ArgDirInOpt("TopoDirIn","Dir for Topo measures") // TOPO
<< mPhProj.DPTopoMes().ArgDirOutOpt() // TOPO
<< mPhProj.DPTopoMes().ArgDirOutOpt("TopoDirOut","Dir for Topo measures output") // TOPO
<< AOpt2007
(
mGCPW,
Expand Down Expand Up @@ -271,7 +271,11 @@ int cAppliBundlAdj::Exe()
{
mBA.SetSharedIntrinsicParams(mVSharedIP);
}


if (mPhProj.DPTopoMes().DirInIsInit())
{
mBA.AddTopo();
}

if (IsInit(&mGCPW)) // Add if any first the standard GCP weighting
{
Expand Down Expand Up @@ -301,11 +305,6 @@ int cAppliBundlAdj::Exe()
mBA.AddCamBlocRig(aNameIm);
}

if (mPhProj.DPTopoMes().DirInIsInit())
{
mBA.AddTopo();
}

MMVII_INTERNAL_ASSERT_User(mMeasureAdded,eTyUEr::eUnClassedError,"Not any measure added");

for (int aKIter=0 ; aKIter<mNbIter ; aKIter++)
Expand Down
5 changes: 4 additions & 1 deletion MMVII/src/BundleAdjustment/cMMVII_BundleAdj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ void cMMVII_BundleAdj::OneIteration(tREAL8 aLVM)
if (mTopo) // TOPO
{
mTopo->AddTopoEquations(*mR8_Sys);
mTopo->printObs(true);
#ifdef VERBOSE_TOPO
mTopo->print();
#endif
mTopo->printObs(false);
}

const auto & aVectSol = mSys->R_SolveUpdateReset(aLVM);
Expand Down
2 changes: 1 addition & 1 deletion MMVII/src/Topo/ctopoobsset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void cTopoObsSetStation::makeConstraints(cResolSysNonLinear<tREAL8> & aSys)
bool cTopoObsSetStation::initialize()
{
#ifdef VERBOSE_TOPO
StdOut() << <<"cTopoObsSetStation::initialize "<<mOriginName<<std::endl;
StdOut() <<"cTopoObsSetStation::initialize "<<mOriginName<<std::endl;
#endif

// auto fix mStationIsOriented if has orientation obs
Expand Down

0 comments on commit 66756f0

Please sign in to comment.