SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
CVCamera.h
Go to the documentation of this file.
1 /**
2  * \file CVCalibration.h
3  * \date Winter 2016
4  * \remarks Please use clangformat to format the code. See more code style on
5  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
6  * \authors Michael Goettlicher, Marcus Hudritsch
7  * \copyright http://opensource.org/licenses/GPL-3.0
8 */
9 
10 #ifndef CVCAMERA_H
11 #define CVCAMERA_H
12 
13 #include <CVTypes.h>
14 #include <CVCalibration.h>
15 
16 //-----------------------------------------------------------------------------
17 class CVCamera
18 {
19 public:
21 
22  bool mirrorH() { return _mirrorH; }
23  bool mirrorV() { return _mirrorV; }
24  CVCameraType type() { return _type; }
25  void showUndistorted(bool su) { _showUndistorted = su; }
26  bool showUndistorted() { return _showUndistorted; }
27  int camSizeIndex() { return _camSizeIndex; }
28 
29  void camSizeIndex(int index)
30  {
31  _camSizeIndex = index;
32  }
35 
37 
38 private:
39  bool _showUndistorted = false; //!< Flag if image should be undistorted
41  bool _mirrorH = false;
42  bool _mirrorV = false;
43 
44  int _camSizeIndex = -1;
45 };
46 //-----------------------------------------------------------------------------
47 #endif // CVCAMERA_H
CVCameraType
Definition: CVTypes.h:62
Live video camera calibration class with OpenCV an OpenCV calibration.
Definition: CVCalibration.h:71
bool mirrorH()
Definition: CVCamera.h:22
void toggleMirrorV()
Definition: CVCamera.h:34
void camSizeIndex(int index)
Definition: CVCamera.h:29
int camSizeIndex()
Definition: CVCamera.h:27
CVCamera(CVCameraType type)
Definition: CVCamera.cpp:3
bool showUndistorted()
Definition: CVCamera.h:26
CVCalibration calibration
Definition: CVCamera.h:36
CVCameraType type()
Definition: CVCamera.h:24
bool _showUndistorted
Flag if image should be undistorted.
Definition: CVCamera.h:39
bool _mirrorV
Definition: CVCamera.h:42
void toggleMirrorH()
Definition: CVCamera.h:33
bool _mirrorH
Definition: CVCamera.h:41
void showUndistorted(bool su)
Definition: CVCamera.h:25
int _camSizeIndex
Definition: CVCamera.h:44
CVCameraType _type
Definition: CVCamera.h:40
bool mirrorV()
Definition: CVCamera.h:23