none
How to display both skeleton tracking & live video together just like the picture below ? RRS feed

  • Question

  • Both skeleton tracking and the camera view of the kinect working .

    However after putting the image send to back and canavas send to front

    the camera view doesn't works only show the skeleton tracking .

    May i have some sample codes or anything that could help me solve this problem ?

      

    using(ColorImageFramecolorFrame = e.OpenColorImageFrame ())

                {

                   

    if(colorFrame == null)

                    {

                       

    return;

                    }

                   

    byte[] pixels = newbyte[colorFrame.PixelDataLength];

                    colorFrame.CopyPixelDataTo(pixels);

                   

    intstride = colorFrame.Width * 4;

                    image.Source =

                       

    BitmapSource.Create(colorFrame.Width, colorFrame.Height, 96, 96, PixelFormats.Bgr32, null, pixels, stride);

                }

      

    using(ColorImageFramecolorFrame = e.OpenColorImageFrame ())

                {

                   

    if(colorFrame == null)

                    {

                       

    return;

                    }

                   

    byte[] pixels = newbyte[colorFrame.PixelDataLength];

                    colorFrame.CopyPixelDataTo(pixels);

                   

    intstride = colorFrame.Width * 4;

                    image.Source =

                       

    BitmapSource.Create(colorFrame.Width, colorFrame.Height, 96, 96, PixelFormats.Bgr32, null, pixels, stride);

                }

    This is the code for my camera view


    • Edited by Vaynette Friday, June 7, 2013 8:12 AM
    Friday, June 7, 2013 8:04 AM

Answers