-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblob.h
More file actions
37 lines (24 loc) · 916 Bytes
/
blob.h
File metadata and controls
37 lines (24 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef MY_BLOB
#define MY_BLOB
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
///////////////////////////////////////////////////////////////////////////////////////////////////
class Blob {
public:
// member variables ///////////////////////////////////////////////////////////////////////////
std::vector<cv::Point> currentContour;
cv::Rect currentBoundingRect;
std::vector<cv::Point> centerPositions;
//declaring the car dimensions
double dblCurrentDiagonalSize;
double dblCurrentAspectRatio;
bool blnCurrentMatchFoundOrNewBlob;
bool blnStillBeingTracked;
int intNumOfConsecutiveFramesWithoutAMatch;
cv::Point predictedNextPosition;
// function prototypes ////////////////////////////////////////////////////////////////////////
Blob(std::vector<cv::Point> _contour);
void predictNextPosition(void);
};
#endif // MY_BLOB