Vision Touch Surface Library
Main Page
Related Pages
Classes
Files
File List
All
Classes
Files
Functions
Variables
Pages
visionTouchSurfaceLib
vts_utils
include
visionprocessor.h
Go to the documentation of this file.
1
#ifndef VISIONPROCESSOR_H
2
#define VISIONPROCESSOR_H
3
4
#include "
kinecthandler.h
"
5
#include "
projectivemapping.h
"
6
#include "
fourierdescriptor.h
"
7
8
#include "
framedata.h
"
9
13
class
VisionProcessor
14
{
15
protected
:
16
17
const
static
int
HAND_CLASS_ID
=1;
18
KinectHandler
kinect
;
19
Mat
mask
,
maxDepth
;
20
ProjectiveMapping
kinect2screen
;
21
float
errorTolerance
;
22
float
thicknessHand
,
thicknesFinger
;
23
int
sizes
[2];
24
float
tolerance
;
25
int
epsilon
;
26
Mat
minDepthHand
,
minDepthFinger
;
27
float
minAreaContour
,
maxAreaContour
;
28
Mat
erodeK
;
29
bool
useScreenSeg
;
30
FourierDescriptor
fdDictionary
;
31
static
const
double
PI
= 3.14159265358979323846;
32
33
float
maxAreaFinger
;
34
float
minAreaFinger
;
35
float
maxExcentricity
;
36
float
minExcentricity
;
37
float
maxCirc
;
38
float
minHandExc
;
39
float
maxDist2Class
;
40
int
descriptorNum
;
41
42
int
wResolution
,
hResolution
;
43
44
vector<Point2f>
screenContoursCorners
;
45
46
47
virtual
int
segmentScreen
(
const
Mat & grayFrame,
int
Ith,
float
epsilon
, vector<Point2i> & screenContours, Mat & maskShow );
48
public
:
49
VisionProcessor
();
50
56
virtual
void
init
(
int
wRes=1024,
int
hRes=768 );
57
61
virtual
void
getScreenTransformation
();
62
67
virtual
void
createMaxDepthWithHistogram
(
int
numFrames=200 );
68
74
virtual
void
processFrame
(
FrameData
& frameData,
double
& processingDuration );
75
76
cv::Size2i
getKinectResolution
()
const
;
77
78
ProjectiveMapping
getKinect2screen
()
const
;
79
void
setKinect2screen
(
const
ProjectiveMapping
&value);
80
81
};
82
83
#endif // VISIONPROCESSOR_H
Generated on Sat Dec 14 2013 23:25:51 for Vision Touch Surface Library by
1.8.3.1