Items with no label

camera origin

kdaib
Novice
1,780 Views

The SDK uses the following two types of coordinate system definitions: Image and Camera. However, there is no explanation how to transform between the two system. If I need to get the projected position of the camera origin on the image plane, how should I do?

Any help is appreciated! Thank you!

7 Replies
jb455
Valued Contributor II
308 Views

Hi,

For mapping between the different images and coordinate systems, you need to use the projection interface.

Specifically to map from the camera to the colour image you can use http://https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectcameratocolor_pxcprojection.html ProjectCameraToColor after using https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?createprojection_device_pxccapture.html Device.CreateProjection.

James

0 Kudos
kdaib
Novice
308 Views

Hi James,

thanks for your answer.

I understand how to map between different coordinate systems, but I still do not know where is camera origin.

0 Kudos
idata
Employee
308 Views

Hi Daiby,

 

 

Do you still need assistance with this case?

 

 

-Sergio

 

0 Kudos
kdaib
Novice
308 Views

Hi Sergio,

yes, I still need the assistance about where camera origin mapping to coordinate systems

0 Kudos
idata
Employee
308 Views

Hi Daiby,

 

 

Let me check if I'm understanding your request correctly. You objective is to set a certain location as the camera origin (0,0,0) and then move your camera to a different coordinate. After this you should see a projection of the change in the camera's location. Is this what you want to achieve? If that's the case I'd suggest you to look at https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?doc_essential_coordinate_systems.html https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?doc_essential_coordinate_systems.html . Here you'll find the information needed to configure a coordinate system.

 

 

Let us know if this is what you were looking for.

 

 

-Sergio

 

0 Kudos
kdaib
Novice
308 Views

Hi Sergio,

Is the camera origin (0,0,0) a absolute coordinate, or I need to set a point as the camera origin?

Thank for your suggestion.

0 Kudos
idata
Employee
308 Views

Hi Daiby,

 

 

The camera origin in 3D is at the center of the camera. This means that you need to setup a point as the camera's (0,0,0) point. The coordinate system varies slightly depending if it's a front facing or rear facing camera.

 

 

The camera's coordinate system for different cameras can be seen on https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?doc_essential_coordinate_systems.html https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?doc_essential_coordinate_systems.html.

 

 

Take a look at https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/doc_essential_configuring_coordinate_system.html https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/doc_essential_configuring_coordinate_system.html for details of configuring the camera coordinate system.

 

 

-Sergio

 

0 Kudos
Reply