Auto white balance with OpenNI
Is it possible to disable the auto white balance of the Kinect camera using the openni_kinect driver?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is it possible to disable the auto white balance of the Kinect camera using the openni_kinect driver?
As far as I know, you can't.
OpenNI provides extremely limited access to camera properties. I don't know of any way to change the RGB camera's exposure, gain, or white balance settings through OpenNI.
You can play with the available properties by editing /etc/primesense/GlobalDefaults.ini
. This file is read by OpenNI at startup. There are WhiteBalancedEnabled
and Gain
properties in the [Depth]
section, but oddly not in the [Image]
section which configures the RGB camera. Note that the openni_kinect driver overrides some properties (e.g. InputFormat
/OutputFormat
, Resolution
, Registration
, RegistrationType
). The properties are defined in the source code at https://github.com/PrimeSense/Sensor/blob/master/Include/XnStreamParams.h">XnStreamParams.h.
You can try asking this on the openni-dev list.
The libfreenect guys have figured out how to access the registers of the color CMOS sensor to change a variety of settings, including white balance. They don't appear to have added access to these to their API yet, but if you're interesting in hacking, this looks like the easiest path to modify the camera settings.
At WG, for applications where we absolutely require high-quality color images and/or fine control of the camera, we've mounted a Prosilica to the Kinect and calibrated it to the depth sensor. That's a lot of pain for something that should be easy though.
If anyone has more success with this I'm interested to hear about it.
This question still pops up every now and then. I found this thread, might be useful: http://www.pcl-users.org/Kinect-auto-exposure-td4020887.html
It's possible in OpenNI2. See the toggleImageAutoExposure function here: https://github.com/OpenNI/OpenNI2/blo...
Asked: 2011-06-09 01:14:04 -0500
Seen: 3,003 times
Last updated: Sep 02 '11
Ubuntu 12.04.2 and openni_launch not detecting Kinect after update?
How to read depth_registered image in callback ?
Slow Kinect frame rate in openni parameters
OpenCV Error with openni_node.launch
OpenNI and RGBDSLAM Launch Files
2D SLAM with gmapping and openni_kinect
registered depth only works sometimes with openni_launch
openni_launch problems with kinect and asus, electric and fuerte.