Coding4Fun Kinect Toolkit

  • Posted: Jun 16, 2011 at 9:22 AM
  • Avg Rating: 3

    (2)

The Coding4Fun Kinect Toolkit is a set of extension methods and controls to make developing applications for the Kinect using the Kinect for Windows SDK easier.  Here's a sample of what's included:

WPF:

Depth Data Extension Methods:

  • ImageFrame.ToBitmapSource()
    • returns BitmapSource
  • int[].ToBitmapSource()
    • returns BitmapSource
  • int[].ToBitmapSource(int width, int height, int minimumDistance, Color highlightColor)
    • returns BitmapSource
  • ImageFrame.ToDepthArray()
    • returns int[]
  • int[].GetMidpoint(int startX, int startY, int endX, int endY, int minimumDistance)
    • returns Point
  • BitmapSource.Save(string fileName, ImageFormat format)
    • returns nothing

Skeleton Data Extension Methods:

  • 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

Controls:

  • Hover Button

WinForm:

Depth Data Extension Methods:

  • ImageFrame.ToBitmap()
    • returns Bitmap
  • int[].ToBitmap()
    • returns Bitmap
  • int[].ToBitmap(int width, int height, int minimumDistance, Color highlightColor)
    • returns Bitmap
  • ImageFrame.ToDepthArray()
    • returns int[]
  • int[].GetMidpoint(int startX, int startY, int endX, int endY, int minimumDistance)
    • returns Point
  • Bitmap.Save(string fileName, ImageFormat format)
    • returns nothing

Skeleton Data Extension Methods:

  • 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

Screenshots:

testApp