ibaiGorordo / pyKinectAzure

Python library to run Kinect Azure DK SDK functions
MIT License
454 stars 113 forks source link

Is it possible to convert 1024x1024 depth image to 1024x1024x3 point cloud? #68

Closed JeffR1992 closed 1 year ago

JeffR1992 commented 2 years ago

I'm running a series of experiments with the Azure Kinect at a depth resolution of 1024x1024, and am trying to figure out if it's possible to convert a 1024x1024 depth image into an 1024x1024x3 point cloud. That is, I'd like to convert each pixel in the 1024x1024 image from an depth/range into an XYZ position. Does pyKinectAzure provide functionality to achieve this? Any help would be appreciated. Thanks!

ibaiGorordo commented 2 years ago

Check this example: https://github.com/ibaiGorordo/pyKinectAzure/blob/master/examples/examplePointCloud.py

Also, if you want the point cloud to have the RGB color information, check this other example: https://github.com/ibaiGorordo/pyKinectAzure/blob/master/examples/exampleColorPointCloud.py