Giter Club home page Giter Club logo

Comments (11)

versatran01 avatar versatran01 commented on September 24, 2024

Yes, PBA does not use inverse compositional algorithm.

from dsol.

NUAAguo avatar NUAAguo commented on September 24, 2024

thanks!
CalcJacGeo func in adjust.cpp
p1' = R10 * n0 + t10 * q0; R10 = R^w_1.inv * R^w_0; t10 = R^w_1.inv * (t^w_0 - t^w_1)
when i calculate the jacobian of warp function to T^w_1 and T^w_0, the jacobian to R^w_1 and R^w_0 is same as the code;
but diff when i calculate dp1_dt1 and dp1_dt0
i thought that dp1_dt1 = partial t10*q0 / partial t^w_1 = -R^w_1.inv q0
dp1_dt0 = R^w_1.inv q0
but in code, dp1_dt1 = -q0
identity
dp1_dt0 = R10
q0

from dsol.

versatran01 avatar versatran01 commented on September 24, 2024

The function is not computing jacobian wrt t^w_1, but wrt delta t^w_1, which is the error state.

from dsol.

NUAAguo avatar NUAAguo commented on September 24, 2024

i don't understand this error state, does it means the error function is: I1(W(x,T^w_1,T^w_0,dT^w_1,dT^w_0,q0))-I0(x)?
so the T10 = (T^w_1* dT^w_1).inv * (T^w_0*dT^w_0)
then i need to compute jacobian of warp to dT?

from dsol.

versatran01 avatar versatran01 commented on September 24, 2024

Yes

from dsol.

NUAAguo avatar NUAAguo commented on September 24, 2024

Thank u so much! i got the same as code.

from dsol.

NUAAguo avatar NUAAguo commented on September 24, 2024

But still i have a question : why not compute jacobian to T^w_1 T^w_0 directly, instead compute jacobian to delta

from dsol.

versatran01 avatar versatran01 commented on September 24, 2024

Because that's how nonlinear least squares works: you linearize at some nominal state x_0 using first order Taylor approximation, f(x) = f(x_0) + f'(x_0) dx. Therefore, the quantity you solve for is dx, which is the error/delta state.

from dsol.

NUAAguo avatar NUAAguo commented on September 24, 2024

Oh, i see. now i understand. thanks a lot! By the way, the code is beautiful!

from dsol.

CNchence avatar CNchence commented on September 24, 2024

Thanks for your open source, why not use inverse compositional algorithm in PBA? It's a lot fast.

from dsol.

versatran01 avatar versatran01 commented on September 24, 2024

Because inverse depth is a variable to be optimized. If I use inverse compositional, then the jacobian wrt inverse depth is zero.

from dsol.

Related Issues (19)

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.