| Home > C: Programming > Function descriptions > | History back Previous chapter Next chapter Print |
is_SetColorMode |
|
uEye Camera Manual Version 4.00
|
|
USB 2.0 USB 3.0 GigE |
USB 2.0 USB 3.0 GigE |
Syntax
INT is_SetColorMode (HIDS hCam, INT Mode)
Description
is_SetColorMode() sets the color mode to be used when image data are saved or displayed by the graphics card. For this purpose, the allocated image memory must be large enough to accommodate the data with the selected color mode. When images are transferred directly to the graphics card memory, make sure that the display settings match the color mode settings. Otherwise, the images will be displayed with altered colors or are not clearly visible.
|
|
|
|
|
|
|
|
Input parameters
hCam |
Camera handle |
Mode |
Color mode to be set For a list of all available color formats and the associated input parameters, see the Appendix: Color and memory formats section. |
IS_CM_BAYER_RG16 |
Raw Bayer (16), only for color cameras, LUT/gamma inactive |
IS_CM_BAYER_RG12 |
Raw Bayer (12), only for color cameras, LUT/gamma inactive |
IS_CM_BAYER_RG8 |
Raw Bayer (8), only for color cameras, LUT/gamma inactive |
IS_CM_MONO16 |
Grayscale (16), for monochrome and color cameras, LUT/gamma active |
IS_CM_MONO12 |
Grayscale (12), for monochrome and color cameras, LUT/gamma active |
IS_CM_MONO8 |
Grayscale (8), for monochrome and color cameras, LUT/gamma active |
IS_CM_SENSOR_RAW16 |
Raw sensor data (16), for monochrome and color cameras, LUT/gamma active. For color cameras same as IS_CM_BAYER_RG16. |
IS_CM_SENSOR_RAW12 |
Raw sensor data (12), for monochrome and color cameras, LUT/gamma active. For color cameras same as IS_CM_BAYER_RG12. |
IS_CM_SENSOR_RAW8 |
Raw sensor data (8), for monochrome and color cameras, LUT/gamma active. For color cameras same as IS_CM_BAYER_RG8. |
IS_CM_RGB10V2_PACKED |
RGB30 (10 10 10), for monochrome and color cameras, LUT/gamma active |
IS_CM_RGBA8_PACKED |
RGB32 (8 8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_RGBY8_PACKED |
RGBY (8 8 8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_RGB8_PACKED |
RGB24 (8 8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_BGR10V2_PACKED |
BGR30 (10 10 10), for monochrome and color cameras, LUT/gamma active |
IS_CM_BGRA8_PACKED |
BGR32 (8 8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_BGR8_PACKED |
BGR24 (8 8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_BGRY8_PACKED |
BGRY (8 8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_BGR565_PACKED |
BGR16 (5 6 5), for monochrome and color cameras, LUT/gamma active |
IS_CM_BGR555_PACKED |
BGR15 (5 5 5), for monochrome and color cameras, LUT/gamma active |
IS_CM_UYVY_PACKED |
YUV 4:2:2 (8 8), for monochrome and color cameras, LUT/gamma active |
IS_CM_CBYCRY_PACKED |
YCbCr 4:2:2 (8 8), for monochrome and color cameras, LUT/gamma active |
IS_GET_COLOR_MODE |
Returns the current setting. |
Return values
When used together with |
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_CAPTURE_RUNNING |
A capturing operation is in progress and must be terminated before you can start another one. |
IS_INVALID_CAMERA_TYPE |
The camera type defined in the .ini file does not match the current camera model. |
IS_INVALID_COLOR_FORMAT |
Invalid color format |
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_IR_FILTER |
No IR filter available |
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_OUT_OF_MEMORY |
No memory could be allocated. |
IS_SUCCESS |
Function executed successfully |
IS_TIMED_OUT |
A timeout occurred. An image capturing process could not be terminated within the allowable period. |
Related functions
The following parameters for color formats are obsolete. Only the new parameters should be used:
Old parameter |
New parameter |
|---|---|
IS_SET_CM_RGB32 |
IS_CM_BGRA8_PACKED |
IS_SET_CM_RGB24 |
IS_CM_BGR8_PACKED |
IS_SET_CM_RGB16 |
IS_CM_BGR565_PACKED |
IS_SET_CM_RGB15 |
IS_CM_BGR555_PACKED |
IS_SET_CM_Y8 |
IS_CM_MONO8 |
IS_SET_CM_BAYER |
IS_CM_BAYER_RG8 |
IS_SET_CM_UYVY |
IS_CM_UYVY_PACKED |
IS_SET_CM_UYVY_MONO |
IS_CM_UYVY_MONO_PACKED |
IS_SET_CM_UYVY_BAYER |
IS_CM_UYVY_BAYER_PACKED |
IS_SET_CM_CBYCRY |
IS_CM_CBYCRY_PACKED |
IS_SET_CM_RGBY |
IS_CM_BGRY8_PACKED |
IS_SET_CM_RGB30 |
IS_CM_BGR10V2_PACKED |
IS_SET_CM_Y12 |
IS_CM_MONO12 |
IS_SET_CM_BAYER12 |
IS_CM_BAYER_RG12 |
IS_SET_CM_Y16 |
IS_CM_MONO16 |
IS_SET_CM_BAYER16 |
IS_CM_BAYER_RG16 |