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
:
20
CVCamera
(
CVCameraType
type
);
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
}
33
void
toggleMirrorH
() {
_mirrorH
= !
_mirrorH
; }
34
void
toggleMirrorV
() {
_mirrorV
= !
_mirrorV
; }
35
36
CVCalibration
calibration
;
37
38
private
:
39
bool
_showUndistorted
=
false
;
//!< Flag if image should be undistorted
40
CVCameraType
_type
;
41
bool
_mirrorH
=
false
;
42
bool
_mirrorV
=
false
;
43
44
int
_camSizeIndex
= -1;
45
};
46
//-----------------------------------------------------------------------------
47
#endif
// CVCAMERA_H
CVCalibration.h
CVTypes.h
CVCameraType
CVCameraType
Definition:
CVTypes.h:62
CVCalibration
Live video camera calibration class with OpenCV an OpenCV calibration.
Definition:
CVCalibration.h:71
CVCamera
Definition:
CVCamera.h:18
CVCamera::mirrorH
bool mirrorH()
Definition:
CVCamera.h:22
CVCamera::toggleMirrorV
void toggleMirrorV()
Definition:
CVCamera.h:34
CVCamera::camSizeIndex
void camSizeIndex(int index)
Definition:
CVCamera.h:29
CVCamera::camSizeIndex
int camSizeIndex()
Definition:
CVCamera.h:27
CVCamera::CVCamera
CVCamera(CVCameraType type)
Definition:
CVCamera.cpp:3
CVCamera::showUndistorted
bool showUndistorted()
Definition:
CVCamera.h:26
CVCamera::calibration
CVCalibration calibration
Definition:
CVCamera.h:36
CVCamera::type
CVCameraType type()
Definition:
CVCamera.h:24
CVCamera::_showUndistorted
bool _showUndistorted
Flag if image should be undistorted.
Definition:
CVCamera.h:39
CVCamera::_mirrorV
bool _mirrorV
Definition:
CVCamera.h:42
CVCamera::toggleMirrorH
void toggleMirrorH()
Definition:
CVCamera.h:33
CVCamera::_mirrorH
bool _mirrorH
Definition:
CVCamera.h:41
CVCamera::showUndistorted
void showUndistorted(bool su)
Definition:
CVCamera.h:25
CVCamera::_camSizeIndex
int _camSizeIndex
Definition:
CVCamera.h:44
CVCamera::_type
CVCameraType _type
Definition:
CVCamera.h:40
CVCamera::mirrorV
bool mirrorV()
Definition:
CVCamera.h:23
modules
cv
source
CVCamera.h
Generated by
1.9.1