Skip to content
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

Get xyz giving pixel(v,u) #6275

Closed
jorge1993 opened this issue Apr 20, 2020 · 6 comments
Closed

Get xyz giving pixel(v,u) #6275

jorge1993 opened this issue Apr 20, 2020 · 6 comments

Comments

@jorge1993
Copy link

jorge1993 commented Apr 20, 2020

Someone knows how to discover the pointcloud "pixel"(x,y,z in real world) giving a pixel (v,u) from RGB camera?
For example :
I want the pointcloud index to rgb pixel h=320,w=240 (the center of rgb image).


Required Info
Camera Model { D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Linux
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC
SDK Version { legacy / 2.. }
Language {python }
Segment {Robot }
@jorge1993 jorge1993 changed the title Get xyz givin pixel(v,u) Get xyz giving pixel(v,u) Apr 20, 2020
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Apr 20, 2020

I feel that @zivsha may have done something like what you are aiming for, though in C++ instead of Python.

#1143

@zivsha
Copy link
Contributor

zivsha commented Apr 20, 2020

image

@MartyG-RealSense
Copy link
Collaborator

@zivsha I meant that it looked as though you had done some coding regarding converting (u,v) values into coordinates. :)

@zivsha
Copy link
Contributor

zivsha commented Apr 21, 2020

Been a while since I've contributed to this repo :)

@jorge1993
Copy link
Author

I resolved, with this instruction rs2_deproject_pixel_to_point

Thanks!
P.S. All of you are awesome

@MartyG-RealSense
Copy link
Collaborator

@jorge1993 Great news that you found a solution. Thanks for the update! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants