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

is_SetGamma

uEye Camera Manual Version 4.00

is_SetGamma

Windows_Logo

Linux_Logo

USB 2.0

USB 3.0

GigE

USB 2.0

USB 3.0

GigE

Syntax

INT is_SetGamma (HIDS hCam, INT nGamma)

Description

is_SetGamma() enables digital gamma correction which applies a gamma characteristic to the image. When hardware color conversion is used on GigE uEye HE cameras the gamma correction is performed in the camera hardware as well. When the color conversion is performed in the PC (software conversion) the gamma correction is performed in software.

Hinweis

When the color format is set to Raw Bayer the gamma correction can not be used.

Hinweis

Typical values for gamma range between 1.6 and 2.2.

Input parameters

hCam

Camera handle

nGamma

Gamma value to be set, multiplied by 100
(Range: 1…1000.
Default = 100, corresponds to a gamma value of 1.0)

IS_GET_GAMMA

Returns the current setting.

Return values

When used with
IS_GET_GAMMA

Current setting

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_HANDLE

Invalid camera handle

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_SUPPORTED

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

IS_SUCCESS

Function executed successfully

Related functions

is_SetHardwareGamma()

See also:

Basics: Characteristics and LUT

Basics: Color filter (Bayer filter)

Programming: is_SetColorConverter()


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