Skip to content

Commit

Permalink
cSetMesImGCP::GetNbImMesForPoint with SVP
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmuller committed Jul 9, 2024
1 parent 7fe22de commit e97d4ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MMVII/include/MMVII_MeasuresIm.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class cSetMesImGCP : public cMemCheck

/// suppress mMesGCP & mMesIm with no images measure (eventually can give higher threshold)
cSetMesImGCP * FilterNonEmptyMeasure(int NbMeasureMin=1) const;
int GetNbImMesForPoint(const std::string & aGCPName) const;
int GetNbImMesForPoint(const std::string & aGCPName, bool SVP=false) const;

const cSetMesPtOf1Im & MesImInitOfName(const std::string &) const;
const cMes1GCP & MesGCPOfName(const std::string &) const;
Expand Down
9 changes: 6 additions & 3 deletions MMVII/src/Sensors/Measures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,13 @@ void cSetMesImGCP::AsserGCPFinished() const
MMVII_UnclasseUsEr("cSetMesImGCP : use with no image file");
}

int cSetMesImGCP::GetNbImMesForPoint(const std::string & aGCPName) const
int cSetMesImGCP::GetNbImMesForPoint(const std::string & aGCPName, bool SVP) const
{
size_t aKGCP = m2MapPtInt.Obj2I(aGCPName,true);
return mMesImOfPt[aKGCP].VImages().size();
int aKGCP = m2MapPtInt.Obj2I(aGCPName,SVP);
if (aKGCP<0)
return 0;
else
return mMesImOfPt[aKGCP].VImages().size();
}

cSetMesImGCP * cSetMesImGCP::FilterNonEmptyMeasure(int aNbMeasureMin) const
Expand Down

0 comments on commit e97d4ba

Please sign in to comment.