Please enable JavaScript to view this site.

uEye DirectShow 4.97

IID_IuEyeGain

This interface provides special features for setting the analog sensor gain for uEye models that are not covered by the standard DirectShow interface. The various gain channels for the sensor can each be set independently from 0 % to 100 %. The gain factor actually achieved at a setting of 100 % will depend on each sensor and is detailed in the section "Camera and Sensor Data" of the uEye Handbook.

hint_info

Note on usage of sensor gain

Amplifying signals will cause an increased level of image noise. For this reason it is not recommended to use a very high gain setting.

It is recommended to use the following sequence when making your gain settings:

1.Enable the Gain_SetGainBoostValue feature (for additional analog gain)

2.Readjust where necessary using Gain_SetHwGainFactor

Depending on when you have adjusted the gain, the change will be applied only to the next image you take.

hint_info

Note on the linearity of sensor gain

On uEye cameras, you can set the gain factor in increments from 0 to 100. These increments are not graduated linearly throughout the range due to the sensor. The increments will typically be greater in the upper range than in the lower range.

The maximum gain factor settings also vary from sensor to sensor.

To use the interface, you must integrate the uEyeCaptureInterface.h header file into your project.

IuEyeGain provides the following features:

Gain_IsMasterSupported

Returns whether the camera provides total gain master gain.

Gain_IsRGBSupported

Returns whether the camera provides RGB color gain.

Gain_GetHwGain

Returns the gain values set [0,100].

Gain_SetHwGain

Sets the gain values [0,100].

Gain_GetHwGainDefaults

Returns the default values for the gain.

Gain_GetHwGainRange

Returns the value range for the gain.

Gain_GetHwGainFactor

Returns the set gain factors as percentages (e.g.: 200 corresponds to a factor of 2.0).

Gain_SetHwGainFactor

Sets the gain factors as percentages.

Gain_GetHwGainFactorDefaults

Returns the default values for the gain factors.

Gain_InquireHwGainFactor

Converts a normalized value [0,100] for the gain into a gain factor.

Gain_GetHwGainFactorRange

Returns the value range for the gain factors.

Gain_IsGainBoostSupported

Returns whether the camera provides the analog Gain Boost feature.

Gain_GetGainBoostValue

Returns whether the Gain Boost feature is enabled [0,1].

Gain_SetGainBoostValue

Sets the value of the Gain Boost [0,1].