简体   繁体   中英

Kinect v2 obtain x,y,z from mouse click using Color image and Depth Image c#

I am new in kinect and I am trying to develop an app where the user can click on a specific location on the Color Image and obtain the x,y,z coordinates.

I am first trying to display the Color Stream Image and the depth stream image where the user should be able to select a point.

I would like to show the point that the user is selecting on the color image and the depth image.

The (x,y,z) coordinate point is known as CameraSpacePoint .

Using CoordinateMapper Class You can Map ColorFrame to CameraSpace using MapColorFrameToCameraSpace Method.

To Map DepthFrame to CameraSpace use MapDepthFrameToCameraSpace Method.

To understand How to use Coordinate Mapper Class, click here .

Also you can see the Coordinate Mapping Basics-WPF sample in SDK Browser (Kinect for windows) v2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM