Skip to content
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

感觉好像2d to 3d的project_image_to_rect(self, uv_depth)公式有点问题,希望解答 #45

Open
dyou123 opened this issue Feb 18, 2022 · 1 comment

Comments

@dyou123
Copy link

dyou123 commented Feb 18, 2022

x = ((uv_depth[:, 0] - self.c_u) * uv_depth[:, 2]) / self.f_u + self.b_x
y = ((uv_depth[:, 1] - self.c_v) * uv_depth[:, 2]) / self.f_v + self.b_y

感觉公式好像有点问题,是不是应该这样写呀

x = (uv_depth[:, 0] - self.c_u * uv_depth[:, 2]) / self.f_u + self.b_x
y = (uv_depth[:, 1] - self.c_v * uv_depth[:, 2]) / self.f_v + self.b_y

@excitohe
Copy link

If calib.P2[2,3] is not considered, the original formula is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants