question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Projection of Depth map into point cloud

See original GitHub issue

Start with the why:

The depth map that we can currently obtain from the DepthAI API is an image that contains depth information at each index of the matrix/image.

Projecting this depth map into point cloud allows us to exploit features like point cloud’s registration, subsampling, reconstruction etc.

For the initial implementation, this step is done on the host side instead of the Myriad X

It is important to do this on the Myriad X itself since it can unlock the above-mentioned features to be carried out on the Myriad X and reducing more load on the CPU.

The How:

Considering the depth map image is relative to the right camera of the stereo camera. Using its intrinsic parameters, we can obtain the (x_k, y_k, 1) in the camera reference frame. Multiplying z value from the depth map will provide us with the (x, y, z) of each point captured by the stereo camera.

The what

Support point cloud projection on the DepthAI itself, with options like

  • sub-sampling
  • registration

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
MOj0commented, Sep 13, 2021

Added RGB Point Cloud Visualizer with depth information here.

2reactions
saching13commented, Feb 28, 2021

Created an host based example for rgb alignment using gen2. Code can be found here P.S: Follow the instructions in the example carefully on how to modify calibration information manually since calibration api is not available in gen2 yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

From depth map to point cloud - Medium
From depth map to point cloud · This tutorial introduces the intrinsic matrix and walks you through how you can use it to...
Read more >
Estimate Point Clouds From Depth Images in Python
In this tutorial, we will learn how to compute point clouds from a depth image ... A depth image (also called a depth...
Read more >
Depth map to 3D point cloud with OpenCV ? : r/computervision
The simple approach is to iterate over each pixel and compute the 3D location of that pixel, which then becomes a point in...
Read more >
Point Cloud Compression using Depth Maps
The link between a point cloud defining a surface in 3D space, and a depth map is given by a projection matrix M....
Read more >
3-D Sensing - GitHub Pages
How To Point Cloud · A depth map provides the distance from the camera in pixel coordinates · Using a camera calibration, this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found