Calculating Kinect pixel size
-
Wednesday, March 07, 2012 3:33 AM
Hi,
I have a Kinect. I have no problems running it and getting (also) depth info.
I am looking for suggestions on how to calculate each pixel size as a function of the vertical distance (i.e. the depth information the Kinect generates) from the sensor
Thanks
Yori
All Replies
-
Thursday, March 08, 2012 10:20 PM
The horizontal angle of view for the depth camera is 57 degrees.
Where d is depth and w is the frame width, you should be able to calculate a pixel width as: tan(28.5) * 2 * d/w.
[Shameless plug -- this formula is from chapter 3 of the Beginning Kinect Programming book.]
You can also retrieve the horizontal field of view of the depth camera (57 degrees) by calling DepthImageStream.NominalHorizontalFieldOfView property.
James Ashley - Presentation Layer Architect at Razorfish Emerging Experiences
jamesashley@imaginativeuniversal.com
www.imaginativeuniversal.com www.emergingexperiences.com- Proposed As Answer by Carmine Si - MSFTMicrosoft Employee, Owner Friday, March 09, 2012 12:09 AM
- Marked As Answer by Carmine Si - MSFTMicrosoft Employee, Owner Tuesday, May 01, 2012 10:06 PM
-
Tuesday, April 17, 2012 1:13 PM
Note though that DepthImageStream.NominalHorizontalFieldOfView is 58,5 and not 57 as specified in the documentation. Likewise is DepthImageStream.NominalVerticalFieldOfView 45,6 and not 43. (and the values change if you change the resolution - for some unknown reason)
Best regards,
Jesper

