andyzeng / tsdf-fusion-python

Python code to fuse multiple RGB-D images into a TSDF voxel volume.
http://andyzeng.github.io/
BSD 2-Clause "Simplified" License
1.25k stars 219 forks source link

Surface level must be within volume data range. #37

Open Alihamdy2496 opened 3 years ago

Alihamdy2496 commented 3 years ago

hello Andy, thank you for your wonderful contribution.

I tried a different data , and modified the voxel_size to 0.1 to avoid memory problems but i get this error

ValueError: Surface level must be within volume data range.

from the function

measure.marching_cubes_lewiner(tsdf_vol, level=0)

at

tsdf_vol.get_point_cloud()

thank you for your time

ckLibra commented 3 years ago

Hi, I have met the same issue. Have you solved it?

Alihamdy2496 commented 3 years ago

i think the problem is the camera poses and camera intrinsics try normalizing the camera poses (P=[R|t] without K) and make the the camera intrinsics.txt identity matrix, the error will be solved but the output wasn't correct for me, tell me if u get correct results

ckLibra commented 3 years ago

Thanks for your reply. The cause of my problem may be different from yours. I found that the intrinsic matrix I input was 4x4. I changed it to 3x3 and no error was reported.