-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volumetric conversion #5
Comments
@PranjaLBiswas27
----- Here's the script to convert a depth image to a point cloud.
|
Thanks a lot for the help, I will try it out. |
Hi,
What exactly might be the issue and how can I resolve it? |
@PranjaLBiswas27 If your depth image is captured by your Kinect v2, then you need to get the correct K matrix for that Kinect. It seems the K matrix you used is not correct. You may need to manually calibrate your camera. |
Thanks for the reply, but how can I ensure that my K matrix is correct? Cause after calibration the pixel error that was reported by the tool was around 0.1, thus I thought the camera is calibrated fine. Also, while calculating x and y in your code(which I guess is w.r.t. camera reference frame), the values are of wi, hi and elements of matrix K are in pixels, what is the unit for depth[hi, wi]? |
The depth unit is meters. Your K matrix looks ok, and a reprojection error <= 0.1 is fine. Your problem may be in the depth or in the fov. |
@Yang7879 , @morpheus1820 Thank you for your inputs. Apparently I made a very trivial error. I calculated the K matrix using IR(depth camera) images, while I was attempting to create point cloud using depth images registered on images from the rgb camera, which will change the principal point and focal length i.e K matrix. This also resulted in depth image to be of the higher resolution as rgb image. After registering rgb image on depth image, the point clouds were exactly as expected using the same K matrix as mentioned above. Although this reduces the resolution of rgb image to that of the depth image, but preserves the actual spatial geometry in the point cloud. |
How do you convert the raw depth image to volumetric representation that acts as input of the network? Do you use "binvox" for voxelization of the single view point cloud and also the 3D CAD models? Thanks in advance.
The text was updated successfully, but these errors were encountered: