| Home > C: Programming > Function descriptions > | History back Previous chapter Next chapter Print |
is_ScenePreset |
|
uEye Camera Manual Version 4.00
|
|
USB uEye XS |
USB uEye XS |
Syntax
INT is_ScenePreset (HIDS hCam, UINT nCommand, void *pParam, UINT nSizeOfParam)
Description
is_ScenePreset() adjusts a number of camera parameters – e.g. color and exposure settings – to suit specific image capture situations (for a list of supported modes, see SCENE_MODE). Depending on the selected mode, the feature changes the settings for several of the following parameters:
•Exposure time
•Gain
•Sharpness
•Color temperature
•Fields of view for measuring auto focus and exposure time
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the nSizeOfParam input parameter.
|
|
|
|
Input parameters
hCam |
Camera handle |
||||||||||||
nCommand
|
|||||||||||||
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
||||||||||||
nSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
||||||||||||
SCENE_INVALID |
The camera does not support scene modes |
SCENE_SENSOR_AUTOMATIC |
Mode for automatic adjustment |
SCENE_SENSOR_PORTRAIT |
Mode for capturing portraits |
SCENE_SENSOR_SUNNY |
Mode for image capture in direct sunlight |
SCENE_SENSOR_ENTERTAINMENT |
Mode for image capture in artificial light environments |
SCENE_SENSOR_NIGHT |
Mode for image capture with little light |
SCENE_SENSOR_SPORTS |
Mode for capturing fast moving objects |
SCENE_SENSOR_LANDSCAPE |
Mode for capturing landscapes |
Return values
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_NULL_POINTER |
Invalid array |
IS_SUCCESS |
Function executed successfully |
Related functions