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:
Where, the pixel value is X1000 rather than X5000.
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:
Where, the pixel value is X1000 rather than X5000.