-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Question about ray direction #99
Comments
so have you ever figure out why? I have the same question as yours, would you please give me some response, thanks. |
world coordinates Finally, I resolve this issue from here, the axis y is reversed and then the equation matches the code. |
遇到了同样的问题,感觉你的推理是对的,但是坐标轴是对不上的,我查了下常用的坐标系,像素坐标系x轴和相机坐标系x轴是同向的,y轴是反方向的 |
Hi,
Thanks for making a great contribution to our PyTorch community. I have a question about the ray direction. The camera projection formulation is as follows:
$$u = \frac{x}{z}f + \frac{W}{2}, v = -\frac{y}{z}f + \frac{H}{2}$$
I just reverse the formulation to derive the ray direction as follows:
$$[ \frac{u-\frac{W}{2}}{f}z, \hspace{6mm} -\frac{v-\frac{H}{2}}{f}z, \hspace{6mm} z]$$ .
Then I set z=-1, which is different from your result.
Can anyone show me where I was wrong? How do you calculate the direction?
The text was updated successfully, but these errors were encountered: