简体   繁体   中英

Kinect color to depth mapping

Given a color pixel coordinate(x,y), is there a way to find the corresponding depth image co-ordinate? I looked into co-ordinate mapping, using which you can map a skeleton pixel to a color pixel. I'm identifying objects in the color stream and I want to know how far they are using the depth stream. Am I overlooking something here?

DepthImagePoint headDepthPoint = depth.MapSkeletonPointToDepthPoint(skel.Joints[JointType.Head].Position);

ColorImagePoint headColorPoint = depth.MapDepthPointToColorPoint. X, headDepthPoint. Y, ColorImageFormat.RgbResolution640x480Fps30);

like this try if there any methods like "MapColorPointToDepthPoint"

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