Fawkes API  Fawkes Development Version
image.h
1 
2 /***************************************************************************
3  * image.h - Abstract class defining a camera image controller
4  *
5  * Created: Wed Apr 22 11:32:56 CEST 2009
6  * Copyright 2009 Tobias Kellner
7  * 2005-2009 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef _FIREVISION_CAMS_CONTROL_IMAGE_H_
26 #define _FIREVISION_CAMS_CONTROL_IMAGE_H_
27 
28 #include <fvcams/control/control.h>
29 
30 namespace firevision {
31 
32 class CameraControlImage : virtual public CameraControl
33 {
34 public:
35  virtual ~CameraControlImage();
36 
37  virtual const char * format();
38  virtual void set_format(const char *format);
39  virtual unsigned int width() = 0;
40  virtual unsigned int height() = 0;
41  virtual void size(unsigned int &width, unsigned int &height);
42  virtual void set_size(unsigned int width, unsigned int height) = 0;
43  virtual bool horiz_mirror();
44  virtual bool vert_mirror();
45  virtual void mirror(bool &horiz, bool &vert);
46  virtual void set_horiz_mirror(bool enabled);
47  virtual void set_vert_mirror(bool enabled);
48  virtual void set_mirror(bool horiz, bool vert);
49 
50  virtual unsigned int fps();
51  virtual void set_fps(unsigned int fps);
52 
53  virtual unsigned int lens_x_corr();
54  virtual unsigned int lens_y_corr();
55  virtual void lens_corr(unsigned int &x_corr, unsigned int &y_corr);
56  virtual void set_lens_x_corr(unsigned int x_corr);
57  virtual void set_lens_y_corr(unsigned int y_corr);
58  virtual void set_lens_corr(unsigned int x_corr, unsigned int y_corr);
59 };
60 
61 } // end namespace firevision
62 
63 #endif // FIREVISION_CAMS_CONTROL_IMAGE_H__
firevision::CameraControlImage::set_lens_y_corr
virtual void set_lens_y_corr(unsigned int y_corr)
Set lens y correction.
Definition: image.cpp:226
firevision::CameraControl
Camera control interface base class.
Definition: control.h:31
firevision::CameraControlImage::size
virtual void size(unsigned int &width, unsigned int &height)
Get the current image size.
Definition: image.cpp:89
firevision::CameraControlImage::set_lens_x_corr
virtual void set_lens_x_corr(unsigned int x_corr)
Set lens x correction.
Definition: image.cpp:216
firevision::CameraControlImage::width
virtual unsigned int width()=0
Get the current width of the image.
firevision::CameraControlImage::set_lens_corr
virtual void set_lens_corr(unsigned int x_corr, unsigned int y_corr)
Set lens correction.
Definition: image.cpp:237
firevision::CameraControlImage::vert_mirror
virtual bool vert_mirror()
Return whether the camera image is vertically mirrored.
Definition: image.cpp:110
firevision::CameraControlImage::mirror
virtual void mirror(bool &horiz, bool &vert)
Get information about current camera image mirroring.
Definition: image.cpp:121
firevision::CameraControlImage::horiz_mirror
virtual bool horiz_mirror()
Return whether the camera image is horizontally mirrored.
Definition: image.cpp:100
firevision::CameraControlImage::set_horiz_mirror
virtual void set_horiz_mirror(bool enabled)
Set whether the camera should mirror images horizontally.
Definition: image.cpp:132
firevision::CameraControlImage::set_size
virtual void set_size(unsigned int width, unsigned int height)=0
Set the image size the camera should use.
firevision::CameraControlImage::format
virtual const char * format()
Get the image format the camera currently uses.
Definition: image.cpp:68
firevision::CameraControlImage::set_vert_mirror
virtual void set_vert_mirror(bool enabled)
Set whether the camera should mirror images vertically.
Definition: image.cpp:142
firevision::CameraControlImage
Camera image control interface.
Definition: image.h:33
firevision::CameraControlImage::height
virtual unsigned int height()=0
Get the current height of the image.
firevision::CameraControlImage::lens_y_corr
virtual unsigned int lens_y_corr()
Get current lens y correction.
Definition: image.cpp:194
firevision::CameraControlImage::set_fps
virtual void set_fps(unsigned int fps)
Set the number of frames per second the camera tries to deliver.
Definition: image.cpp:174
firevision::CameraControlImage::set_mirror
virtual void set_mirror(bool horiz, bool vert)
Set whether the camera should mirror images.
Definition: image.cpp:153
firevision::CameraControlImage::lens_x_corr
virtual unsigned int lens_x_corr()
Get current lens x correction.
Definition: image.cpp:184
firevision::CameraControlImage::fps
virtual unsigned int fps()
Get the number of frames per second the camera tries to deliver.
Definition: image.cpp:164
firevision::CameraControlImage::~CameraControlImage
virtual ~CameraControlImage()
Empty virtual destructor.
Definition: image.cpp:58
firevision::CameraControlImage::set_format
virtual void set_format(const char *format)
Set the image format the camera should use.
Definition: image.cpp:79
firevision::CameraControlImage::lens_corr
virtual void lens_corr(unsigned int &x_corr, unsigned int &y_corr)
Get current lens correction.
Definition: image.cpp:205