![]() |
![]() |
---|---|
USB 2.0 USB 3.0 GigE |
USB 2.0 USB 3.0 GigE |
Syntax
INT is_SetCameraLUT (HIDS hCam, UINT Mode, UINT NumberOfEntries, double* pRed_Grey, double* pGreen, double* pBlue)
Description
This function is obsolete and should not be used anymore. We recommend to use the is_LUT() function instead. |
Using is_SetCameraLUT(), you can enable a hardware LUT for uEye cameras. This LUT which will be applied to the image in the camera. A number of predefined LUTs are available. Alternatively, you define your own LUT. It is possible to define a LUT without enabling it at the same time. You can query the current LUT used by the camera by calling the is_GetCameraLUT() function.
Each lookup table (LUT) for the uEye contains modification values for the image brightness and contrast parameters. When a LUT is used, each brightness value in the image will be replaced by a value from the table. LUTs are typically used to enhance the image contrast or the gamma curve. The values must be in the range between 0.0 and 1.0. A linear LUT containing 64 equidistant values between 0.0 and 1.0 has no effect on the image.
The is_SetCameraLUT() function is only supported by cameras of the GigE and USB 3 uEye series and the USB 2.0 models UI-214x and UI-228x and all cameras with Rev. 3. |
To be able to use is_SetCameraLUT() you have to set the Bayer conversion mode to IS_CONV_MODE_HARDWARE_3X3 by using the is_SetColorConverter() function. |
Input parameters
hCam |
Camera handle |
||
|
|||
|
|||
pRed_Grey |
Array containing the values for the LUT red channel or the LUT grayscale channel (GigE uEye SE cameras). |
||
pGreen |
Array containing the values for the LUT green channel. |
||
pBlue |
Array containing the values for the LUT blue channel. |
Structure of the LUT arrays
The pRed_Grey, pGreen and pBlue arrays contain double values between 0.0 and 1.0. The array size must correspond exactly to the value predefined by NumberOfEntries (64 or 128).
GigE uEye SE/RE/LE/CP and USB 3 uEye CP color and monochrome cameras ignore the pGreen and pBlue parameters.
GigE uEye HE cameras use all three parameters: pRed_Grey, pGreen and pBlue. If you set all three parameters to the same value for GigE uEye HE monochrome cameras, the LUT curve creates a monochrome output image. Assigning different values to the three parameters will result in false-color representation.
Return values
IS_INVALID_CAMERA_HANDLE |
Invalid camera handle |
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
Example
//Enable the latest LUT set
INT nRet;
nRet = is_SetCameraLUT (hCam, IS_ENABLE_CAMERA_LUT, IS_CAMERA_LUT_64, NULL, NULL, NULL);
//Set the LUT default "Glow1" and enable it
INT nRet;
double Red[IS_CAMERA_LUT_64];
double Green[IS_CAMERA_LUT_64];
double Blue[IS_CAMERA_LUT_64];
nRet = is_SetCameraLUT (hCam, IS_ENABLE_CAMERA_LUT | IS_SET_CAMERA_LUT_VALUES | IS_CAMERA_LUT_GLOW1, IS_CAMERA_LUT_64, Red, Green, Blue);