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

数据加载中的相机参数问题 #24

Open
caiyongqi opened this issue Feb 27, 2024 · 1 comment
Open

数据加载中的相机参数问题 #24

caiyongqi opened this issue Feb 27, 2024 · 1 comment

Comments

@caiyongqi
Copy link

caiyongqi commented Feb 27, 2024

在human_loader.py中:
projection_matrix = getProjectionMatrix(znear=self.opt.znear, zfar=self.opt.zfar, K=intr, h=height, w=width).transpose(0, 1) world_view_transform = torch.tensor(getWorld2View2(R, T, np.array(self.opt.trans), self.opt.scale)).transpose(0, 1)
这个代码里面world_view_transform为什么是 世界坐标系到相机坐标系 变换矩阵的转置呀?(为什么多用了个transpose(0, 1))
projection_matrix 也使用transpose(0, 1)进行了转置?
intr, extr是相机的内参和world to camera的外参吧?

@ShunyuanZheng
Copy link
Collaborator

这边是直接使用了3DGS源代码的写法scene/cameras.py,需要传入的intr和extr是W2C的没错。

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