You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am planning to generate Truncated Signed Distance Field based on your depth image. Based on my understanding, I think I can get tdf from depth image here:
Another question is that do I need to change camera distance based on corresponding XML files in the above function? Or 2.2 is good enough? Since here:
seems need the corresponding camera pose for rendering.
I use 2.2 as the camera distance for now, and tdf has very small values. I try to visualize the tdf in voxel grids. The first image is an example for values smaller than 0.05, and the second image is an example for values smaller than 0.005, the third image is the depth image. I think the the second image seems reasonable to me, but could you explain why the values are so small?
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered:
The camera distance should be consistent with the XML files, as we assume the distance functions are discretized in a unit cube in global space, since all the models are normalized.
The values are distances in metric space, therefore usually on a magnitude of 1 / voxel_size.
Here are my understanding based on your answers, please correct me if I am wrong. So in order to get correct tdf:
Get a depth image (depth_im) form the dataset and its corresponding camera pose in the world_frame (camera_pose)
Use util_sph.render_spherical(data, mask), and pass camera_pose to tdf = depth_to_mesh_df(depth_im, th, False, 1.0, camera_pose), then replace t.camera.position = camera_pose
final_tdf = tdf * voxel_size
Does this seem correct?
One more question is that how can I get voxel_size? By using (depth_max - depth_min) / 128?
Hi,
Thanks a lot for sharing the code!
I am planning to generate Truncated Signed Distance Field based on your depth image. Based on my understanding, I think I can get tdf from depth image here:
GenRe-ShapeHD/util/util_sph.py
Line 45 in ee42add
Is that correct?
Another question is that do I need to change camera distance based on corresponding XML files in the above function? Or 2.2 is good enough? Since here:
GenRe-ShapeHD/util/util_img.py
Line 70 in ee42add
I use 2.2 as the camera distance for now, and tdf has very small values. I try to visualize the tdf in voxel grids. The first image is an example for values smaller than 0.05, and the second image is an example for values smaller than 0.005, the third image is the depth image. I think the the second image seems reasonable to me, but could you explain why the values are so small?
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: