Coding4Fun Kinect Toolkit

Description

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: