Closed jamestodo closed 6 years ago
In demo.cu function ::Integrate,the distant is got by the code float diff = (depth_val - pt_cam_z) * sqrtf(1 + powf((pt_cam_x / pt_cam_z), 2) + powf((pt_cam_y / pt_cam_z), 2)).
::Integrate
float diff = (depth_val - pt_cam_z) * sqrtf(1 + powf((pt_cam_x / pt_cam_z), 2) + powf((pt_cam_y / pt_cam_z), 2))
But i don't know why multiply sqrtf(1 + powf((pt_cam_x / pt_cam_z), 2) + powf((pt_cam_y / pt_cam_z), 2)).
sqrtf(1 + powf((pt_cam_x / pt_cam_z), 2) + powf((pt_cam_y / pt_cam_z), 2))
Is there anyone could give me some help?Thanks a lot!
It's a bug - a relic from previous versions of the code and should not be there. I've removed it from the Integrate function in the latest commit. Thanks for the catch!
Integrate
In demo.cu function
::Integrate
,the distant is got by the codefloat diff = (depth_val - pt_cam_z) * sqrtf(1 + powf((pt_cam_x / pt_cam_z), 2) + powf((pt_cam_y / pt_cam_z), 2))
.But i don't know why multiply
sqrtf(1 + powf((pt_cam_x / pt_cam_z), 2) + powf((pt_cam_y / pt_cam_z), 2))
.Is there anyone could give me some help?Thanks a lot!