User`s guide

Acquiring Image and Skeletal Data Using Kinect
12-13
Device-Specific Property – Color
Sensor
Description
Hue Indicates hue setting. Values must be in the range
-22 to 22, with a default value of 0.
PowerLineFrequency Option for reducing flicker caused by the frequency
of a power line. Values are Disabled, FiftyHertz,
and SixtyHertz. The default is Disabled.
Note that this property is only valid if
AutoExposure is set to Enabled.
Saturation Indicates saturation level. Values must be in the
range 0 to 2, with a default value of 1.
Sharpness Indicates sharpness level. Values must be in the
range 0 to 1, with a default value of 0.5.
WhiteBalance Indicates color temperature in degrees Kelvin. The
value range is 2700 to 6500 and the default is
2700.
Note that this property is only valid if
AutoWhiteBalance is set to Disabled.
3
You can optionally set some of these properties shown in the previous step. For
example, you might be acquiring images in a low light situation. You could adjust
the acquisition for this by setting the BacklightCompensation property to
LowLightsPriority, which favors a low light level.
src.BacklightCompensation = 'LowLightsPriority';
4
Preview the color stream by calling preview on the color sensor object created in
step 1.
preview(vid);
When you are done previewing, close the preview window.
closepreview(vid);
5
Create the videoinput object for the depth sensor. Note that a second object is
created (vid2), and DeviceID 2 is used for the depth sensor.