Items with no label
3335 Discussions

Can i get a display coordinate from World coordinate?

松拓也
Novice
1,499 Views

Can i get a display coordinate from World coordinate?

 

I want to know where i am looking at display.

 

(It's not world.image coordinate.)
1 Solution
MartyG
Honored Contributor III
212 Views

Usually people want to convert color (display) to depth (world), so your request is reversed from the norm.

For your needs, an SDK instruction called ProjectCameraToColor may be suitable. "The ProjectCameraToColor function projects an array of world coordinates to the color image coordinates."

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/projectcameratocolor_pxcprojection.html ProjectCameraToColor

View solution in original post

0 Kudos
6 Replies
MartyG
Honored Contributor III
213 Views

Usually people want to convert color (display) to depth (world), so your request is reversed from the norm.

For your needs, an SDK instruction called ProjectCameraToColor may be suitable. "The ProjectCameraToColor function projects an array of world coordinates to the color image coordinates."

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/projectcameratocolor_pxcprojection.html ProjectCameraToColor

0 Kudos
松拓也
Novice
212 Views

Hi.

Sorry for my late reply.

Many Thanks. I'll try it!

0 Kudos
jb455
Valued Contributor II
212 Views

How are you getting your world coordinates? I get mine from ProjectColourToCamera, which means the nth element in the world coordinates array is the nth pixel in the colour image, so as long as my world coordinates array stays in the same order I know which colour pixel it represents. If you don't currently do any mapping between the colour and depth images, Marty's suggestion might be easiest to implement.

0 Kudos
松拓也
Novice
212 Views

I get the world coordinate to method below.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/doc_face_face_landmark_data.html Face Landmark Data [+JS,UWP]

Once, I'll try Marty's method.

Thank you for your help!

0 Kudos
idata
Employee
212 Views

Hi jazz_up_feeling_0809,

 

 

Keep us updated on your progress. If you have any questions, don't hesitate to ask.

 

 

-Sergio A

 

0 Kudos
idata
Employee
212 Views

Hi jazz_up_feeling_0809,

 

 

Do you still need assistance on this case? Did you find the answer you were looking for?

 

We'll be waiting for your response.

 

 

-Sergio A

 

0 Kudos
Reply