MCPcopy Create free account
hub / github.com/comaps/comaps / ScoreTriangulatedGeometries

Function ScoreTriangulatedGeometries

libs/editor/feature_matcher.cpp:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267double ScoreTriangulatedGeometries(std::vector<m2::PointD> const & lhs, std::vector<m2::PointD> const & rhs)
268{
269 auto const score = geometry::GetIntersectionScoreForTriangulated(lhs, rhs);
270
271 // If area of the intersection is a half of the object area, penalty score will be returned.
272 if (score <= 0.5)
273 return geometry::kPenaltyScore;
274
275 return score;
276}
277
278double ScoreTriangulatedGeometriesByPoints(std::vector<m2::PointD> const & lhs, std::vector<m2::PointD> const & rhs)
279{

Callers 2

UNIT_TESTFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68