camshiftKalman
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
camshiftkalman.h
Go to the documentation of this file.
1
9
#ifndef CAMSHIFTKALMAN_H
10
#define CAMSHIFTKALMAN_H
11
12
#include <opencv2/highgui/highgui.hpp>
13
#include <opencv/cv.hpp>
14
15
#include <string>
16
17
#include "
LBP.h
"
18
19
using namespace
std;
20
using namespace
cv;
21
25
enum
featureType
{
26
HUE
= 0,
27
SATURATION_HUE
,
28
LBP_HUE
,
29
LBP_SATURATION_HUE
30
};
31
35
class
camShiftKalman
36
{
37
public
:
38
camShiftKalman
(
const
string
videoName_,
double
start,
const
Mat target,
const
Rect targetWindow,
featureType
type_);
39
~
camShiftKalman
();
40
44
void
extractTargetModel();
45
49
void
track();
50
55
Point getCurrentObjectCenter()
const
;
56
61
Rect getCurrentTrackWindow()
const
;
62
63
private
:
67
void
initKalman(
double
);
68
73
Point getCurrentState()
const
;
74
78
void
setCurrentTrackWindow();
79
86
Mat drawHist1d(
const
Mat hist,
int
histSize)
const
;
87
95
Mat drawHist2d(
const
Mat hist,
int
histSizeX,
int
histSizeY)
const
;
96
100
void
drawTrackResult();
101
106
void
normalizeHist(Mat &hist);
107
108
private
:
109
featureType
type
;
110
111
string
videoName
;
112
113
Mat
currentFrame
;
114
Mat
hist
;
115
Mat
backProject
;
116
117
Point
camCenter
;
118
Point
KFPredictCenter
;
119
Point
KFCorrectCenter
;
120
Rect
trackWindow
;
121
122
int
frameStart
;
123
int
vMin
;
124
int
vMax
;
125
int
sMin
;
126
127
KalmanFilter
KF
;
128
Mat_<float>
measurement
;
129
130
string
winName
;
131
132
bool
isShowHist
;
133
bool
isShowBackProject
;
134
};
135
136
#endif // CAMSHIFTKALMAN_H
Generated on Thu Jun 5 2014 20:31:01 for camshiftKalman by
1.8.4