Skip to content

Commit

Permalink
test pts no obs 2d shur
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmuller committed Jan 18, 2024
1 parent 6ad1c04 commit e38248a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MMVII/src/BundleAdjustment/cAppliBundAdj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int cAppliBundlAdj::Exe()
{
mPhProj.LoadIm(aFullMesGCP,aSens->NameImage(),aSens,true);
}
cSetMesImGCP * aMesGCP = aFullMesGCP.FilterNonEmptyMeasure();
cSetMesImGCP * aMesGCP = aFullMesGCP.FilterNonEmptyMeasure(0);

cStdWeighterResidual aWeighter(mGCPW,1);
mBA.AddGCP(mGCPW.at(0),aWeighter,aMesGCP);
Expand Down
5 changes: 3 additions & 2 deletions MMVII/src/Matrix/cInputOutputRSNL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ template <class Type> void cSetIORSNL_SameTmp<Type>::AddOneEq(const tIO_OneEq &
mNbEq += anIO.mVals.size();
if
(
(mNbEq > mNbTmpUk) // A priori there is no use to less or equal equation, this doesnt give any constraint
&& ( mSetIndTmpUk.NbElem()== mNbTmpUk) // we are sure to have good index, because we cannot add oustide
(mNbEq >= mNbTmpUk) // A priori there is no use to less or equal equation, this doesnt give any constraint
// but useful for GCP with 3d constraints and no 2d obs
&& ( mSetIndTmpUk.NbElem()== mNbTmpUk) // we are sure to have good index, because we cannot add oustide
)
{
mOk = true;
Expand Down
2 changes: 2 additions & 0 deletions MMVII/src/Matrix/cLeasSqtAA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ template <class Type>
mSetInd.MakeInvertIndex();

mNbUk = mSetInd.mVIndOcc.size();
if (mNbUk==0) return; // nothing to substitute

mNbUkTot = mNbUk + mNbTmp;

// Adjust size, initialize of mSysRed
Expand Down

0 comments on commit e38248a

Please sign in to comment.