TLIB documentation
 

tlCameraSVSHead.h

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////////////////
00002 //
00003 //  This file is part of the TLIB computer vision library.
00004 //  Copyright (C) 2003-2008 Sebastien Grange
00005 //  Copyright (C) 2003-2007 VRAI Group, EPFL
00006 //  All rights reserved.
00007 // 
00008 //  This library is free software; you can redistribute it and/or modify
00009 //  it under the terms of the GNU General Public License("GPL") version 2
00010 //  as published by the Free Software Foundation.
00011 // 
00012 //  <http://www.tuyphon.com/tlib>
00013 //
00014 /////////////////////////////////////////////////////////////////////////////////
00015 
00016 
00017 #ifndef __TLCAMERASVSHEAD_H__
00018 #define __TLCAMERASVSHEAD_H__
00019 
00020 
00021 #include "tlVision.h"
00022 #include "tlCameraSVSBase.h"
00023 #include "tlImage.h"
00024 
00025 #include "svsclass.h"
00026 
00027 
00028 // debug verbosity
00029 extern int tlVerbose;
00030 
00031 
00032 // interface
00033 class tlCameraSVSHead : public tlCameraSVSBase
00034 {
00035 private:
00036   svsVideoImages  *videoObject;
00037 
00038 public:
00039   tlCameraSVSHead (int fps = 0);
00040   tlCameraSVSHead (char *filename, int fps = 0);
00041   virtual ~tlCameraSVSHead ();
00042 
00043   int  getGain           () { return videoObject->gain; };
00044   int  getExposure       () { return videoObject->exposure; };
00045   int  getContrast       () { return videoObject->contrast; };
00046   int  getBrightness     () { return videoObject->brightness; };
00047   int  getSaturation     () { return videoObject->saturation; };
00048   int  getRedGain        () { return videoObject->red; };
00049   int  getBlueGain       () { return videoObject->blue; };
00050   int  getSharpness      () { return videoObject->sharpness; };
00051   bool isAutoGain        () { return videoObject->use_autogain; };
00052   bool isAutoWhite       () { return videoObject->use_autowhite; };
00053   bool isAutoBrightness  () { return videoObject->use_autobrightness; };
00054   
00055   int  setGain           (int gain);
00056   int  setExposure       (int exposure);
00057   int  setContrast       (int contrast);
00058   int  setBrightness     (int brightness);
00059   int  setSaturation     (int saturation);
00060   int  setRedGain        (int red);
00061   int  setBlueGain       (int blue);
00062   int  setSharpness      (int sharpness);
00063   int  setAutoGain       (bool val);
00064   int  setAutoWhite      (bool val);
00065   int  setAutoBrightness (bool val);
00066   int  enableColor       (bool val);
00067   bool enableSTOC        (bool val);
00068 
00069   int  open  (int fps);
00070   int  open  (char *filename, int fps);
00071   int  close ();
00072 
00073   virtual int readConfig (char *filename);
00074 
00075   virtual int grab       (tlImage *image);
00076   virtual int grab       (tlImage *image, tlRect *rect);
00077   virtual int grabQueued (tlImage *image);
00078   virtual int grabQueued (tlImage *image, tlRect *rect);
00079 
00080   virtual int grab       (tlImage *image, tlImage *disparity);
00081   virtual int grab       (tlImage *image, tlImage *disparity, tlRect *rect);
00082   virtual int grabQueued (tlImage *image, tlImage *disparity);
00083   virtual int grabQueued (tlImage *image, tlImage *disparity, tlRect *rect);
00084 };
00085 
00086 #endif


TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.