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!
链接已复制
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
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
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
