Code Monkey home page Code Monkey logo

Comments (3)

ppwwyyxx avatar ppwwyyxx commented on June 3, 2024

auto overlap = overlap_region(shape1, shape2, homoM, inv);
float r1m = inliers.size() * 1.0f / get_match_cnt(overlap, true);
if (r1m < INLIER_IN_MATCH_RATIO) return false;
float r1p = inliers.size() * 1.0f / get_keypoint_cnt(overlap, true);
if (r1p < 0.01 || r1p > 1) return false;
Matrix invM = inv.to_matrix();
overlap = overlap_region(shape2, shape1, invM, homo);
float r2m = inliers.size() * 1.0f / get_match_cnt(overlap, false);
if (r2m < INLIER_IN_MATCH_RATIO) return false;
float r2p = inliers.size() * 1.0f / get_keypoint_cnt(overlap, false);
if (r2p < 0.01 || r2p > 1) return false;
print_debug("r1mr1p: %lf,%lf, r2mr2p: %lf,%lf\n", r1m, r1p, r2m, r2p);
info->confidence = (r1p + r2p) * 0.5;

from openpano.

GenaWang avatar GenaWang commented on June 3, 2024

@ppwwyyxx
Thanks for your reply. What does the confidence in the MatchInfo mean? If I want to use the Surf Match. How can I compute the value of the confidence?

from openpano.

ppwwyyxx avatar ppwwyyxx commented on June 3, 2024

Confidence: the feeling or belief that one can rely on someone or something.

In this context: the feeling or belief that one can rely on the match.

It is computed in the above code.

from openpano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.