[英]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. 我是kinect的新手,我正在尝试开发一个应用程序,用户可以在其中单击彩色图像上的特定位置并获取x,y,z坐标。
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
. (x,y,z)坐标点称为
CameraSpacePoint
。
Using CoordinateMapper
Class You can Map ColorFrame
to CameraSpace
using MapColorFrameToCameraSpace
Method. 使用
CoordinateMapper
类可以映射ColorFrame
到CameraSpace
使用MapColorFrameToCameraSpace
方法。
To Map DepthFrame
to CameraSpace
use MapDepthFrameToCameraSpace
Method. 要将
DepthFrame
到CameraSpace
使用MapDepthFrameToCameraSpace
方法。
To understand How to use Coordinate Mapper
Class, click here . 要了解如何使用
Coordinate Mapper
类,请单击此处 。
Also you can see the Coordinate Mapping Basics-WPF sample in SDK Browser (Kinect for windows) v2. 您还可以在SDK浏览器(适用于Windows的Kinect)v2中看到“坐标映射基础-WPF”示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.