Measuring in Kinect
Asked Answered
G

3

13

I'm trying to get started with Kinect, and it has a depth sensing camera, but I've seen no guidance on measuring width/height/lengths.

Is it a matter of working out the distance an object is away from the camera (depth sensor) and at that range the field of view of the Kinect, and then working out how many pixels your object takes up?

I'd like to be able to do a mesh or something from a dot-cloud and I'm having troubles figuring where to start and how to get proper width/height measurements for objects.

Garvey answered 22/6, 2011 at 3:28 Comment(2)
have the same issue as you... did you found a solution? is there a formula or something to measuring...Hienhieracosphinx
Not sure why no one else has mentioned this, but the Kinect depth frame data can be processed into a set of SkeletonPoints. These points are in real-world space, meaning that, say, a z value of 0.5 corresponds to a point that is half a meter away from the sensor. Since you can get the SkeletonPoints easily enough, it then becomes a matter of figuring out which points belong to the object you want, and using those to measure it.Aeneid
F
7

This is a rather complex task and cannot be answered with a few paragraphs here on Stackoverflow. The reason is that its a lot of knowledge that builds on other knowledge. I would start by reading up on Linear Algebra using for example the excellent Rorres, et al.

Creating the mesh from the point-cloud is a complex task and there is no defacto algorithm used today. The most popular approach seems to be to first create a discretized Truncated Signed Distance Function (TSDF) and then use e.g. Marching Cubes to get a mesh. Another algorithm is the Delaunay triangulation.

There is also a c# implementation provided by the s-hull project.

Flashy answered 22/6, 2011 at 7:52 Comment(0)
H
2

In the book Beginning Kinect Programming with the Microsoft Kinect SDK by Jarrett Webb,James Ashley you have in chapter 3 a sample of how to calculate width and height and distance :

http://books.google.es/books?id=MupB_VAmtdEC&pg=PA69&hl=es&source=gbs_toc_r&cad=4#v=onepage&q&f=false

The code is available to download at apress.com

Hollar answered 24/8, 2012 at 11:59 Comment(0)
M
0

I am aware this was asked awhile ago, but for what it's worth there is an article on channel9.msdn which shows a simpler method to calculate the user's height. I would imagine you could use a similar technique with HipLeft, HipCenter, and HipRight to estimate the width.

If you follow the project information URL from the link it has more detailed information.

Moeller answered 28/12, 2012 at 21:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.