User manual
Table Of Contents
- Introduction
- Getting started with smallv
- Stereo Geometry
- Calibration
- API Reference – C++ Language
Small Vision System User Manual 62
The CheckParams() function returns true if the current parameters are consistent.
None of the frame or sampling mode parameters can be changed while images are being acquired,
except for the offset parameters. These can be changed at any time, to pan and tilt the subwindow during
acquisition.
5.6.5 Image Quality Parameters
bool SetExposure(bool auto, int exposure, int gain)
bool SetBalance(bool auto, int red, int blue)
bool SetLevel(bool auto, int brightness, int contrast)
See Section 2.1.9 and 2.1.12 for more information about video quality parameters.
These functions set various video controls for the quality of the image, including color information,
exposure and gain, brightness and contrast. Not all stereo devices support all of the various video modes
described by these parameters.
In general, parameters are normalized to be integers in the range [0,100].
SetExposure() sets the exposure and gain levels for the device. If auto is chosen, the manual
parameters are ignored.
SetBalance() sets the color balance for the device. Manual parameters for red and blue
differential gains are between –40 and 40. If auto is chosen, the manual parameters are ignored.
SetLevel() sets the brightness and contrast for the device. In auto mode, the brightness value is
ignored. Contrast is always set manually.
These functions can be called during video streaming, and their effect is immediate.
5.6.6 Controlling the Video Stream
See the functions in Section 5.5.3.