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

scale_mat in preprocess.py #5

Open
ricshaw opened this issue Jun 11, 2023 · 2 comments
Open

scale_mat in preprocess.py #5

ricshaw opened this issue Jun 11, 2023 · 2 comments

Comments

@ricshaw
Copy link

ricshaw commented Jun 11, 2023

Hi thanks for the great work!
How do you compute the scale_mat in preprocess.py? How can we change this for our own data?
Thanks

@DSaurus
Copy link
Owner

DSaurus commented Jun 11, 2023

Hi,

In our implementation, scale_mat describes the center and size of the dynamic object. For example, If the bounding box of the object has a size of [2,3,4] and its center locates at [1,2,3], our scale_mat is set to

2/2 0 0 1
0 3/2 0 2
0 0 4/2 3

You can use visualhull to determine the bounding box of the object. In addition, scale_mat is to scale and translate the object from a roughly set bounding box to the range of [-1, -1, -1]~[1, 1, 1], and it does not need to be very precise.

@tb2-sy
Copy link

tb2-sy commented Mar 26, 2024

Hi,

In our implementation, scale_mat describes the center and size of the dynamic object. For example, If the bounding box of the object has a size of [2,3,4] and its center locates at [1,2,3], our scale_mat is set to

2/2 0 0 1
0 3/2 0 2
0 0 4/2 3

You can use visualhull to determine the bounding box of the object. In addition, scale_mat is to scale and translate the object from a roughly set bounding box to the range of [-1, -1, -1]~[1, 1, 1], and it does not need to be very precise.

36a348713bfcea7e423e575b6a1fe3ba
Does such a rendering result mean that I need to adjust scale_mat?

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

3 participants