Packagecom.tastenkunst.airkinectv2
Classpublic class KV2Config
InheritanceKV2Config Inheritance Object

Use the KV2Config class to set the data streams you want to retrieve. Every option you add will lower the overall performance of your app. Everytime you change a setting in this config, you will need to use KV2Manager.start to restart the Kinect sensor.

There are 3 "coordinate spaces":

The different Kinect data readers have a certain source coordinate space, but can be mapped to other spaces, if needed. Some will be used regulary, like BodyIndexFrame to ColorSpace, but some might not be used at all (eg. LongExposureInfraredFrame to ColorSpace or ColorFrame to DepthSpace)



Public Properties
 PropertyDefined By
  bodyIndexFrameColors : Vector.<uint> = null
The BodyIndexFrame returns a colored pixel mask for each body index.
KV2Config
  enableBodyFrame : Boolean = false
This will enable the tracking of the BodyFrame (skeleton/joints).
KV2Config
  enableBodyIndexFrame : Boolean = false
This will enable the BodyIndexFrameReader of the Kinect sensor.
KV2Config
  enableBodyIndexFrameMappingToColorSpace : Boolean = false
This will enable the mapping of the BodyIndexFrame to the ColorSpace.
KV2Config
  enableColorFrame : Boolean = false
This will enable the ColorFrameReader of the Kinect sensor.
KV2Config
  enableColorFrameMappingToDepthSpace : Boolean = false
This will enable the mapping of the ColorFrame to the DepthSpace.
KV2Config
  enableDepthFrame : Boolean = false
This will enable the DepthFrameReader of the Kinect sensor.
KV2Config
  enableDepthFrameMappingToColorSpace : Boolean = false
This will enable the mapping of the DepthFrame to the ColorSpace.
KV2Config
  enableInfraredFrame : Boolean = false
This will enable the InfraredFrameReader of the Kinect sensor.
KV2Config
  enableInfraredFrameMappingToColorSpace : Boolean = false
This will enable the mapping of the InfraredFrame to the ColorSpace.
KV2Config
  enableLongExposureInfraredFrame : Boolean = false
This will enable the LongExposureInfraredFrameReader of the Kinect sensor.
KV2Config
  enableLongExposureInfraredFrameMappingToColorSpace : Boolean = false
This will enable the mapping of the LongExposureInfraredFrame to the ColorSpace.
KV2Config
  enableVisualGestureBuilderFrame : Boolean = false
This will enable the tracking of gestures (GBD/GBA files).
KV2Config
Property Detail
bodyIndexFrameColorsproperty
public var bodyIndexFrameColors:Vector.<uint> = null

The BodyIndexFrame returns a colored pixel mask for each body index. You can specify the colors by changing the default colors in this Vector.

The default colors are:

The Kinect SDK uses a diffrent color space than AS3. The ANE will automatically take care of transforming the colors, so use the AS3 ARGB.

enableBodyFrameproperty 
public var enableBodyFrame:Boolean = false

This will enable the tracking of the BodyFrame (skeleton/joints).

enableBodyIndexFrameproperty 
public var enableBodyIndexFrame:Boolean = false

This will enable the BodyIndexFrameReader of the Kinect sensor. The BodyIndexFrame is a "mask" of pixels in the color of the body, that is tracked.

enableBodyIndexFrameMappingToColorSpaceproperty 
public var enableBodyIndexFrameMappingToColorSpace:Boolean = false

This will enable the mapping of the BodyIndexFrame to the ColorSpace.

enableColorFrameproperty 
public var enableColorFrame:Boolean = false

This will enable the ColorFrameReader of the Kinect sensor. The ColorFrame is the HD colored camera image.

enableColorFrameMappingToDepthSpaceproperty 
public var enableColorFrameMappingToDepthSpace:Boolean = false

This will enable the mapping of the ColorFrame to the DepthSpace.

enableDepthFrameproperty 
public var enableDepthFrame:Boolean = false

This will enable the DepthFrameReader of the Kinect sensor. The DepthFrame is the image visualizing the tracked depth data.

enableDepthFrameMappingToColorSpaceproperty 
public var enableDepthFrameMappingToColorSpace:Boolean = false

This will enable the mapping of the DepthFrame to the ColorSpace.

enableInfraredFrameproperty 
public var enableInfraredFrame:Boolean = false

This will enable the InfraredFrameReader of the Kinect sensor. The InfraredFrame is the image visualizing the tracked infrared data.

enableInfraredFrameMappingToColorSpaceproperty 
public var enableInfraredFrameMappingToColorSpace:Boolean = false

This will enable the mapping of the InfraredFrame to the ColorSpace.

enableLongExposureInfraredFrameproperty 
public var enableLongExposureInfraredFrame:Boolean = false

This will enable the LongExposureInfraredFrameReader of the Kinect sensor. The LongExposureInfraredFrame is the image visualizing the tracked long exposure infrared data.

enableLongExposureInfraredFrameMappingToColorSpaceproperty 
public var enableLongExposureInfraredFrameMappingToColorSpace:Boolean = false

This will enable the mapping of the LongExposureInfraredFrame to the ColorSpace.

enableVisualGestureBuilderFrameproperty 
public var enableVisualGestureBuilderFrame:Boolean = false

This will enable the tracking of gestures (GBD/GBA files). Not active at the moment, further testing needed.