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

is_SetSensorScaler

uEye Camera Manual Version 3.80

is_SetSensorScaler

Windows_Logo

Linux_Logo

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.

Hinweis

Internal image scaling is only supported by UI-149x/549x and UI-124x / UI-524x series sensors.

Input Parameters

hCam

Camera handle

nMode

Function mode

IS_ENABLE_SENSOR_SCALER

Enable image scaling

IS_ENABLE_SENSOR_SCALER |
IS_ENABLE_ANTI_ALIASING

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

is_GetSensorScalerInfo()

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);


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!


© 2010 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com