Skip to content

SfMPerspectiveCameras projection matrix bug fix #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

SiddhantRanade
Copy link
Contributor

Fixed a bug in creating the projection matrix for the SfMPerspectiveCameras class. Also fixed the corresponding test in test_cameras.py.

The p0x, p0y are 2D coordinates for the principal point in the NDCS, and therefore should be added AFTER the perspective z divide. I.e. we expect

The current behavior is

which is incorrect.

…ameras class. Also fixed the corresponding test in test_cameras.py.

The p0x, p0y are 2D coordinates for the principal point in the NDCS, and therefore should be added AFTER the perspective z divide.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 11, 2020
@nikhilaravi nikhilaravi self-assigned this Apr 13, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davnov134 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@davnov134 davnov134 self-assigned this Apr 15, 2020
@davnov134
Copy link
Contributor

Hi @SiddhantRanade, thanks a lot for spotting this and the fix! We will review asap. At this point it looks good to me.

@facebook-github-bot
Copy link
Contributor

@davnov134 merged this pull request in 677b0bd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants