Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Render image with depth contour on top of color image

Marios_B_
Beginner
449 Views

Hi there!

I want to:

1)Estimate the inner contour points of a blob (DONE)

2)Render the contour points on color image

However,when I tried doing this,the contour in the color image is not aligned correctly.Of course I get that this happens because depth and color streams are not aligned.

What is the correct way to render the contour I got from depth data on top of the color image correctly?

Any sample code of similar cases?

Should I just add an constant offset until I find the one that fits the best?

Or should I use projections etc?If yes,how exactly?

UPDATE: I used projection->queryUVMap(depthIm, uvmap) and I managed to do part of the task I want to do.

I tried rendering the points and they are correct.However I get some values in the uvmap that are -1,-1 and as a result rendering doesn't act correctly.

What can I do so that my program only renders points+lines of contour that has correct value?

I used an if expression but it seems that this makes the system slow and I get only 6 lines out of 20 let's say rendered correctly.

0 Kudos
0 Replies
Reply