-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
project pixel from RGB to IR or depth issue #1051
Comments
Hi @haoshuwen3 , can you please elaborate what exactly are you trying to achieve? |
Hi @zivsha , we had some points like eyes that were detected on RGB Image. Then we try to locate the corresponding points on IR image. I took a look at the rs2::align code, and find the useful rsutil tool. But the projected points on IR is far from the real eye position. |
Can you please post a snippet that reproduces this? |
Hi @zivsha ,
} |
Hi @haoshuwen3 , We've just pushed Pull Request #1068 which addresses the alignment of color to depth. |
Hi @zivsha , |
The way to map a color pixel to depth pixel is by doing the same process as mapping depth to color, but returning the color pixels instead. The PR I mentioned uses this technique to calculate the entire frame,rather than a single pixel, as you have to through all depth pixels to find the one(s) matching the color pixel. If you use the |
Hi @zivsha, |
After using |
[Realsense Customer Engineering Team Comment] |
Hello, I know this has been closed but I can't use the My code is as followed:
It can't get past the
Actually I posted the same question a year ago and it was fixed. Somehow it is not working now when I set up a new program and downloaded the repository few days ago. I have looked at this but it is for Matlab and also this which suggesting calling the projecting functions myself. I am using Windows 10 if it matters. |
Project the pixel from color to depth with a tolerance of about 10 pixels, How to call the right API for this case?
The text was updated successfully, but these errors were encountered: