Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Related Pages  

Camera Class Reference

Abstract camera class. More...

#include <Camera.h>


Public Methods

virtual bool open (void)=0
 Return true on success and false if camera is unsupported on this machine virtual bool open(const char* device) = 0;. More...

virtual void close (void)=0
 Releases camera. More...

virtual void read (Picture *p_frame)=0
 Fetch next frame from camera. More...

virtual bool iscolor (void)
 Does this camera return color or grey scale images. More...

virtual void get_info (CamInfo *info)=0
 Get information on image width, height and bits per pixel. More...

virtual void setBrightness (int value)=0
 Set the brightness control of the camera. More...

virtual void setContrast (int value)=0
 Set the contrast control of the camera. More...

virtual void setSaturation (int value)=0
 Set the saturation control of the camera. More...

virtual void setAutoBrightness (bool on)=0
 Toggle the autobrightness feature of the camera driver. More...

virtual int getBrightness (void)=0
 Return the brightness control of the camera. More...

virtual int getContrast (void)=0
 Return the contrast control of the camera. More...

virtual int getSaturation (void)=0
 Return the saturation control of the camera. More...

virtual bool getAutoBrightness (void)=0
 Return whether the autobrightness feature of the camera driver is enabled or not. More...


Detailed Description

Abstract camera class.


Member Function Documentation

virtual void Camera::close void    [pure virtual]
 

Releases camera.

Must be called if open succeded.

virtual void Camera::get_info CamInfo   info [pure virtual]
 

Get information on image width, height and bits per pixel.

virtual bool Camera::getAutoBrightness void    [pure virtual]
 

Return whether the autobrightness feature of the camera driver is enabled or not.

virtual int Camera::getBrightness void    [pure virtual]
 

Return the brightness control of the camera.

virtual int Camera::getContrast void    [pure virtual]
 

Return the contrast control of the camera.

virtual int Camera::getSaturation void    [pure virtual]
 

Return the saturation control of the camera.

virtual bool Camera::iscolor void    [inline, virtual]
 

Does this camera return color or grey scale images.

virtual bool Camera::open void    [pure virtual]
 

Return true on success and false if camera is unsupported on this machine virtual bool open(const char* device) = 0;.

virtual void Camera::read Picture *    p_frame [pure virtual]
 

Fetch next frame from camera.

virtual void Camera::setAutoBrightness bool    on [pure virtual]
 

Toggle the autobrightness feature of the camera driver.

Note that if the camera has autobrightness on the chip, then this can not (usually) be disabled by this function.

virtual void Camera::setBrightness int    value [pure virtual]
 

Set the brightness control of the camera.

Note that for camera with autobrightness chips, this usually has no effect.

virtual void Camera::setContrast int    value [pure virtual]
 

Set the contrast control of the camera.

virtual void Camera::setSaturation int    value [pure virtual]
 

Set the saturation control of the camera.


The documentation for this class was generated from the following file:
Generated on Tue Apr 1 11:01:17 2003 for ImprovQT by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002