Home > C: Programming > Function Descriptions > | History back Previous chapter Next chapter Print |
is_SetSensorScaler |
uEye Camera Manual Version 3.80
is_SetSensorScaler
USB 2.0 GigE |
USB 2.0 GigE |
Syntax
INT is_SetSensorScaler (HIDS hCam, UINT nMode, double dblFactor)
Description
is_SetSensorScaler() enables internal image scaling for some sensors. This allows to reduce the image resolution by adjustable factors. Thus, the amount of data from high resolution sensors can be reduced.
|
Input Parameters
hCam |
Camera handle |
nMode |
Function mode |
IS_ENABLE_SENSOR_SCALER |
Enable image scaling |
IS_ENABLE_SENSOR_SCALER | |
Enable image scaling with smoothed edges (anti alising effect) |
dblFactor |
Scaling factor |
Return Values
IS_SUCCESS |
Function executed successfully |
IS_INVALID_PARAMETER |
General error message |
IS_NOT_SUPPORTED |
The test image function is not supported by the camera. |
IS_NOT_SUPPORTED |
The sensor does not support image scaling |
Related Functions
Code Sample
SENSORSCALERINFO Info;
INT nRet;
double dblNewFactor;
// Query information on image scaling
nRet = is_GetSensorScalerInfo (hCam, &Info,
sizeof(Info));
// Enable scaling with anti aliasing
dblNewFactor = Info.dblMinFactor + Info.dblFactorIncrement;
nRet = is_SetSensorScaler (hCam, IS_ENABLE_SENSOR_SCALER |
IS_ENABLE_ANTI_ALIASING, dblNewFactor);