Code Monkey home page Code Monkey logo

Comments (2)

puzzlepaint avatar puzzlepaint commented on June 30, 2024

The goal of the MergeKeyframes() function is to find keyframes that observe almost the same view of the scene, which means that they are mostly redundant and can be merged / deleted without causing much trouble. This criterion is approximated with a heuristical difference metric, which is based on the positional distance and the version of an angle distance that you quoted.

The idea behind using only the third column was that this should correspond to the "forward" direction of the keyframes, which is the main part of the direction that determines where a keyframe is looking at. Two hypothetical keyframes that have equal position and have the same "forward" direction, but differ in the remaining axes of the orientation, still mostly observe the same part of the scene because they look in the same direction and only differ by some "roll" rotation (a rotation around the "forward" direction) - at least assuming that the camera frustum has similar extents on its sides. Thus, the heuristic only takes that part of the orientation difference into account.

Of course, all of this is only a heuristic and two frames that are very close to each other in position and orientation could still observe strongly different parts of the scene, for example, if they are on different sides of some kind of obstacle. However, a more elaborate criterion (for example, based on the depth images) would be slower to compute.

from badslam.

AreteQin avatar AreteQin commented on June 30, 2024

I understood. Thank you so much for your exhaustive explanation.

from badslam.

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.