Giter VIP home page Giter VIP logo

Comments (4)

sngImagry avatar sngImagry commented on June 28, 2024

I think it is fine, it is the basic formula of perspective projection: tan(fov/2)=cu/f; where f is the focal length and cu is the range between the origin_x coordinate and the center_x of the image. In the attached line we try to find a similar triangle in which the tan(fov/2)= X/self.z_max.
Therefore: X = self.z_max*cu/f

from translating-images-into-maps.

Thang1703hrsh avatar Thang1703hrsh commented on June 28, 2024

I have a question, as far as I know calib is a 3x3 matrix with 2 dimensions, but in this line of code calib is a 3-dimensional matrix f, cu = calib[:, 0, 0], calib[ :, 0, 2]

from translating-images-into-maps.

avishkarsaha avatar avishkarsaha commented on June 28, 2024

from translating-images-into-maps.

Thang1703hrsh avatar Thang1703hrsh commented on June 28, 2024

So what is the calib size here, I think it's still 3x3, so when I run to that line I get the error too many indices for tensor of dimension 2

from translating-images-into-maps.

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.