The Temperature class provides methods for setting the color temperature (in Kelvin) of an image when you are using a color camera. The class will use the sensor's hardware gain controls for the setting, as far as possible. In addition, you can choose between different color spaces. A specific color temperature will result in slightly differing RGB values, depending on the selected color space.
The color temperature is the temperature to which a black body radiator has to be heated to glow and give off light in the corresponding color. Warm light (reddish) has a lower color temperature than cold light (bluish). The following table lists a few example values:
Light source |
Color temperature |
---|---|
Light bulb (100 W) |
2800 |
Halogen lamp |
3200 |
Fluorescent lamp (cold white) |
4000 |
Morning and evening sunlight |
5000 |
Noon sunlight |
5500-5800 |
Flash strobe |
6000 |
Overcast daylight |
6500-7500 |
Fog |
8000 |
ColorTemperature cannot be used simultaneously with the automatic white balance methods in Software. |
The following class and methods exist:
Methods
Method |
Description |
---|---|
Returns the set color temperature. |
|
Returns the default value for the color temperature. |
|
Returns the range of the color temperature. |
|
Sets a color temperature. |