Home > C: Programming > Function descriptions > History back  Previous chapter  Next chapter  Print  

is_SetBlCompensation

uEye Camera Manual Version 4.00

is_SetBlCompensation

Windows_Logo

Linux_Logo

USB 2.0

USB 3.0

GigE

USB 2.0

USB 3.0

GigE

Syntax

INT is_SetBlCompensation (HIDS hCam, INT nEnable, INT offset, INT reserved)

Description

is_SetBlCompensation() enables the black level correction function which might improve the image quality under certain circumstances. By default, the sensor adjusts the black level value for each pixel automatically. If the environment is very bright, it can be necessary to adjust the black level manually by the offset parameter.

UI-112x/UI-512x only: On models with HDR sensor the function is_SetBlCompensation() controls the black level when a contrast adjustment is performed.

Fig. 165: Black level correction - Auto

Fig. 165: Black level correction - Auto

Fig. 166: Black level correction - Auto + offset

Fig. 166: Black level correction - Auto + offset

Fig. 167: Schwarzwert-Korrektur nur Offset

Fig. 167: Schwarzwert-Korrektur nur Offset

Input parameters

hCam

Camera handle

IS_BL_COMPENSATION_DISABLE

Disables automatic black level correction. The offset value is used as black level instead. This mode is only supported by sensors of the UI-154x/UI-554x series.

IS_BL_COMPENSATION_ENABLE

Enables automatic black level correction. The offset value is added to the automatic black level value.

IS_GET_BL_COMPENSATION

Returns the current mode.

IS_GET_BL_OFFSET

Returns the currently set value for offset.

IS_GET_BL_DEFAULT_MODE

Returns the default mode.

IS_GET_BL_DEFAULT_OFFSET

Returns the default value for offset.

IS_GET_BL_SUPPORTED_MODE

Returns the supported modes.

Possible values:

IS_BL_COMPENSATION_ENABLE
The sensor supports automatic black level correction.

IS_BL_COMPENSATION_OFFSET
For the sensor used, it is also possible to set the offset manual.

IS_IGNORE_PARAMETER

The nEnable parameter is ignored.

offset

Contains the offset value used for compensation. Valid values are between 0 and 255.

IS_IGNORE_PARAMETER

The offset parameter is ignored.

reserved

Reserved. 0 must be passed.

Return values

When used together with

IS_GET_BL_SUPPORTED_MODE

Supported modes

When used together with

IS_GET_BL_COMPENSATION

Current mode

When used together with

IS_GET_BL_OFFSET

Current offset

IS_CANT_COMMUNICATE_WITH_DRIVER

Communication with the driver failed because no driver has been loaded.

IS_CANT_OPEN_DEVICE

An attempt to initialize or select the camera failed (no camera connected or initialization error).

IS_INVALID_CAMERA_TYPE

The camera type defined in the .ini file does not match the current camera model.

IS_INVALID_CAMERA_HANDLE

Invalid camera handle

IS_INVALID_MODE

Camera is in standby mode, function not allowed

IS_INVALID_PARAMETER

One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode.

IS_IO_REQUEST_FAILED

An IO request from the uEye driver failed. Possibly the versions of the ueye_api.dll (API) and the driver file (ueye_usb.sys or ueye_eth.sys) do not match.

IS_NO_SUCCESS

General error message

IS_NOT_CALIBRATED

The camera does not contain any calibration data.

IS_NOT_SUPPORTED

The camera model used here does not support this function or setting.

IS_NULL_POINTER

Invalid array

IS_SUCCESS

Function executed successfully

IS_TIMED_OUT

A timeout occurred. An image capturing process could not be terminated within the allowable period.


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com