Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Coding4Fun Kinect Toolkit

Coding4Fun Kinect Toolkit

Toolkit to help simplify Kinect development, built by the Coding4Fun team as they built their own Kinect projects (i.e. you gain from their pain)

Overview of the Coding4Fun Kinect Toolkit:

WPF Extensions:

  • ImageFrame.ToBitmapSource()
    • returns BitmapSource
  • int[].ToBitmapSource()
    • returns BitmapSource
  • int[].ToBitmapSource(int width, int height, int minimumDistance, Color highlightColor)
    • returns BitmapSource
  • ImageFrame.ToDepthArray2D()
    • returns int[][]
  • ImageFrame.ToDepthArray()
    • returns int[]
  • int[].GetMidpoint(int startX, int startY, int endX, int endY, int minimumDistance)
    • returns Point

WPF Controls:

  • Hover Button

WinForm Extensions:

  • ImageFrame.ToBitmap()
    • returns Bitmap
  • int[].ToBitmap()
    • returns Bitmap
  • int[].ToBitmap(int width, int height, int minimumDistance, Color highlightColor)
    • returns Bitmap
  • ImageFrame.ToDepthArray2D()
    • returns int[][]
  • ImageFrame.ToDepthArray()
    • returns int[]
  • int[].GetMidpoint(int startX, int startY, int endX, int endY, int minimumDistance)
    • returns Point

Skeletal Extensions:

  • Joint.ScaleTo(int width, int height)
    • Scales a Joint's Position to the maximum width and height specified
  • Joint.ScaleTo(int width, int height, float maxSkeletonX, float maxSkeletonY)
    • Scales a Joint's Position to the maximum width and height specified

Project Information URL: http://c4fkinect.codeplex.com/

Project Download URL: http://c4fkinect.codeplex.com/releases/view/68333

image_2

image

void RuntimeColorFrameReady(object sender, ImageFrameReadyEventArgs e)
{
   colorImg.Source = e.ImageFrame.ToBitmapSource();
   e.ImageFrame.ToBitmapSource().Save("catpure.jpg", ImageFormat.Jpeg);
}void RuntimeDepthFrameReady(object sender, ImageFrameReadyEventArgs e)
{
   depthImg.Source = e.ImageFrame.ToBitmapSource();
   e.ImageFrame.ToDepthArray2D()[160][120];
   e.ImageFrame.GetDistance(160, 120);
   e.ImageFrame.ToDepthArray();
   e.ImageFrame.ToBitmapSource().Save("catpure.jpg", ImageFormat.Jpeg);
} 

Contact Information:

Follow the Discussion

  • DarkSilenceDarkSilence

    how do you create a hover button?
    it's somehow not in the toolbox.
    thx in advance

  • DarkSilenceDarkSilence

    how do you create a hover button?
    it's somehow not in the toolbox.
    thx in advance

  • Sorry for posting here, not other viable channel :/

    You know, i want a cool feature on my Xbox with Kinect. And since there is no way to coding it on the xbox and integrate it on the dashboard. I simply suggest it.

    When the xbox with kinect do not recognize a command word. Broadcast it via UDP and make some HDMI (CEC) control words. Make it a an open standard, and i no time you will have the TV, Media Centers, PC, Home Theathers, controlled via Kinect.

     

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.