-
Notifications
You must be signed in to change notification settings - Fork 0
/
HarrisDetector.h
62 lines (45 loc) · 1.21 KB
/
HarrisDetector.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
52
53
54
55
56
57
58
59
60
61
62
#ifndef __HARRISDETECTOR_H_
#define __HARRISDETECTOR_H_
#include <cassert>
#include <cstdlib>
#include <cfloat>
#include <algorithm>
#include <vector>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_eigen.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/point_generators_3.h>
#include <CGAL/Kd_tree.h>
#include <CGAL/Fuzzy_sphere.h>
#include <CGAL/Fuzzy_iso_box.h>
#include <CGAL/Search_traits_3.h>
#include "Clock.h"
#include "Mesh.h"
#include "Vertex.h"
#include "Properties.h"
class HarrisDetector{
private:
Mesh* object;
Properties* prop;
int typeNeighborhood;
double fractionDiagonal;
int numberRingNeighbor;
double k;
int numberRingsDetection;
int typeSelection;
double paramSelection;
void processOptions();
public:
enum _type_neighborhood{SPATIAL, ADAPTIVE, RINGS};
enum _type_selection{FRACTION, CLUSTERING};
HarrisDetector();
HarrisDetector(Mesh* obj, Properties* pr);
virtual ~HarrisDetector() {}
void setMesh(Mesh* obj) { object = obj;}
void setProperties(Properties* pr) { prop = pr; processOptions();}
void showOptions();
void detectInterestPoints(vector<Vertex>& interestPoints);
};
#endif