-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdge.h
More file actions
38 lines (35 loc) · 793 Bytes
/
Edge.h
File metadata and controls
38 lines (35 loc) · 793 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
36
37
#pragma once
#include <vector>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
class Edge
{
public:
Edge(void);
int getStartEdgeRow();
int getStartEdgeColumn();
int getEndEdgeRow();
int getEndEdgeColumn();
void setStartEdgeRow(int row);
void setStartEdgeColumn(int column);
void setLength(int length);
int getLength();
int getEdgeSumCanny();
int getEdgeSumOriginal();
void compute(Mat image, Mat image2);
virtual ~Edge(void);
private:
int startEdgeRow;
int startEdgeColumn;
int endEdgeRow;
int endEdgeColumn;
int length;
int edgeSumCanny;
int edgeSumOriginal;
vector<int> edgeVectorCanny;
vector<int> edgeVectorOriginal;
};