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

Images preprocessing #15

Closed
ThibautLbl opened this issue May 4, 2021 · 2 comments
Closed

Images preprocessing #15

ThibautLbl opened this issue May 4, 2021 · 2 comments

Comments

@ThibautLbl
Copy link

ThibautLbl commented May 4, 2021

In the data_convention.md file, the preprocess script says that it generates the needed cameras.npz file.
The code loads an initial cameras.npz file, but how should we build this cameras.npz file to run the preprocess code on new images ?

@ykasten
Copy link
Collaborator

ykasten commented Jun 6, 2021

The code generates the needed cameras.npz file which contains both the camera parameters and the normalization matrices. However, it needs the camera matrices as an input which are stored in the input cameras.npz file in this example.

In more details, the input cameras.npz file contains the camera matrices, where P_i = cameras['world_mat_%d' % i][:3, :] is a 3x4 matrix that projects points from the 3D world coordinates to the 2D coordinates of image i (intrinsics and extrinsics, i.e. P=K[R | t] )

The output cameras.npz contains also a normalization matrix for changing the coordinates system such that the captured object is located inside the unit sphere.

@qinzhibao123
Copy link

How do you get the input cameras.npz (world_mat and scale_mat), not the output cameras_new.npz?

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

4 participants