ankurhanda / simkinect

Simulating Kinect Noise: adding noise to clean depth-maps rendered with a graphics engine.
77 stars 10 forks source link

Question about Using Generated Depth Image #1

Open wangmiaowei opened 3 years ago

wangmiaowei commented 3 years ago

Recently, I have generated some depth images by projecting the 3D model using intrinsic and extrinsic. However, when I run your code, I meet some problem: RuntimeWarning: divide by zero encountered in true_divide I found the the reasults of out_disp = filterDisp(depth_f, dotpattern, invaliddisp) are all equal to invaliddisp = 99999999.9 Could you help solve this problem. My depth image is pasted here: 6

Where, the pixel value is X1000 rather than X5000.