Tensor4D icon indicating copy to clipboard operation
Tensor4D copied to clipboard

scale_mat in preprocess.py

Open ricshaw opened this issue 1 year ago • 2 comments

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

ricshaw avatar Jun 11 '23 06:06 ricshaw

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.

DSaurus avatar Jun 11 '23 16:06 DSaurus

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?

tb2-sy avatar Mar 26 '24 15:03 tb2-sy