Download SRI Small Vision System
Transcript
73 Small Vision System User Manual bool SetBalance(bool auto, int red, int blue) bool SetBrightness(bool auto, int brightness) bool SetLevel(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]. See individual device manuals for the interpretation of the parameters for the device. SetExposure() has two forms. For manual control, either form can be used, with the auto parameters set to false. For auto exposure and gain control, the first form sets auto mode for both gain and exposure. The second form allows more control over whether exposure or gain is auto controlled. In auto mode, 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 and available for the device, the manual parameters are ignored. SetBrightness() sets the brightness control for digital devices. Brightness can be set between 0 and 100, with 30 being a typical value. If auto is chosen and available for the device, the manual parameters are ignored. SetLevel() sets the brightness and contrast for analog framegrabbers. It is no longer used. These functions can be called during video streaming, and their effect is immediate. 6.6.6 Stereo Device Parameter Upload and Download bool SaveParams(); bool ReadParams(); // save params to currently open device // read params from currently open device Parameters in a video object can be saved to a stereo device (SaveParams), and read back in from the device (ReadParams). The device must have a FW firmware version of 2.1 or greater. All the current parameters of the device are saved. The device must already be opened with a call to Open() in order to save parameters. Any stored parameters are automatically loaded when the device is opened. Parameters may be saved to a device using the File->Upload to Device menu item of smallv. They may be downloaded using the File->Download from Device menu item. There are also utility applications for loading and storing parameter files to stereo devices; see the stereo device manual for your device. 6.6.7 Controlling the Video Stream See the functions in Section 6.5.4.