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

help of predict about camera parameter? #25

Open
zhangzhenyu-zzy opened this issue Sep 28, 2021 · 1 comment
Open

help of predict about camera parameter? #25

zhangzhenyu-zzy opened this issue Sep 28, 2021 · 1 comment

Comments

@zhangzhenyu-zzy
Copy link

zhangzhenyu-zzy commented Sep 28, 2021

hello,i find we predict the camera parameter[z,tx,ty],and then we get the wold coordinate[tx,ty,2×focal_length/img_size×z],and we get this picture just use the world coordinate in render,
image
now,i want to use pytorch3d to replace the original renderer,but in pytorch3d,the setting in camera should know the R and T,but we only konw the world coordinate [tx,ty,2×focal_length/img_size×z],can you help me,how can i use pytorch3d to get the same img(There can be no background image)

@zengwang430521
Copy link
Owner

Hi,
you may try:
R = torch.eye(3) and T = [tx,ty, 2×focal_length / (img_size×z)]

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