Point-Cloud of Body with the Kinect SDK

I am making a program with an SDK where, when users are discovered, the program draws a skeleton for them. I recently saw a game advertised on my Xbox, Nike + Kinect, and saw how it displays a copy of a character doing something else:

http://www.swaggerseek.com/wp-content/uploads/2012/06/fcb69__xboxkinect1.jpg

Or

http://www.swaggerseek.com/wp-content/uploads/2012/06/fcb69__xboxkinect.jpg

Can I create a point cloud representation of only the detected person (and not the background)? Thanks in advance!


EDIT

Using this site , I can create point clouds, but still I can’t cut off the human body.

+5
source share
4 answers

, , . sdk Kinect for Windows. , , - . . , .

. Kinect Windows SDK, :

//Change image type to BGRA32
image1.Source = 
                BitmapSource.Create(depthFrame.Width, depthFrame.Height, 
                96, 96, PixelFormats.Bgra32, null, pixels, stride); 

        //hardcoded locations to Blue, Green, Red, Alpha (BGRA) index positions       
        const int BlueIndex = 0;
        const int GreenIndex = 1;
        const int RedIndex = 2;
        const int AlphaIndex = 3;

//get player and depth at pixel
int player = rawDepthData[depthIndex] & DepthImageFrame.PlayerIndexBitmask;
int depth = rawDepthData[depthIndex] >> DepthImageFrame.PlayerIndexBitmaskWidth;

//check each pixel for player, if player is blue intensity.

            if (player > 0)
            {
                pixels[colorIndex + BlueIndex] = 255;
                pixels[colorIndex + GreenIndex] = intensity;
                pixels[colorIndex + RedIndex] = intensity;
                pixels[colorIndex + AlphaIndex] = 100;

            }
            else
            {
                //if not player make black and transparent
                pixels[colorIndex + BlueIndex] = 000;
                pixels[colorIndex + GreenIndex] = 000;
                pixels[colorIndex + RedIndex] = 000;
                pixels[colorIndex + AlphaIndex] = 0;
            }

, - . :

enter image description here

- .

,

+5

Kinect SDK. SDK OpenNI, , . , . z- , , z 0 userZ + , .

- , - ( ) , , , , , . , , , ().

PCL (http://docs.pointclouds.org/trunk/group__segmentation.html), , . , (http://pointclouds.org/documentation/tutorials/planar_segmentation.php).

+2

Kinect for Windows SDK v1.5 has a sample that could be changed for this.

Examples of names: depth-d3d or depthwithcolor-d3d.

They are both point clouds.

0
source

All Articles