/
sortCoordinates.h
51 lines (43 loc) · 1.1 KB
/
sortCoordinates.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* sortCoordinates.h
*
* Created on: Aug 3, 2015
* Author: Vidur
*/
//include opencv library files
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/video/tracking.hpp>
#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/gpu/gpu.hpp"
#include <opencv2/nonfree/ocl.hpp>
#include <opencv/cv.h>
#include <opencv2/video/background_segm.hpp>
#include <opencv2/core/core.hpp>
#include "bgfg_vibe.hpp"
//include c++ files
#include <iostream>
#include <fstream>
#include <ctime>
#include <time.h>
#include <thread>
#include <chrono>
#include <stdio.h>
#include <stdlib.h>
#include <limits>
#include <math.h>
#include <algorithm>
#include <vector>
#include <pthread.h>
#include <cstdlib>
//namespaces for convenience
using namespace cv;
using namespace std;
#ifndef SORTCOORDINATES_H_
#define SORTCOORDINATES_H_
//method to compare points
bool point_comparator(const Point2f &a, const Point2f &b);
//method to sort all coordinates
vector<Point> sortCoordinates(vector<Point> coordinates);
#endif /* SORTCOORDINATES_H_ */