forked from bbenligiray/stag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDrawer.h
39 lines (27 loc) · 986 Bytes
/
Drawer.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
#ifndef DRAWER_H
#define DRAWER_H
#include <string>
#include "opencv2/opencv.hpp"
#include "ED/EDLines.h"
#include "ED/EdgeMap.h"
#include "QuadDetector.h"
#include "Marker.h"
using std::string;
class Drawer
{
void colorAPixel(cv::Mat& img, int x, int y, cv::Scalar color, int dotWidth);
public:
// draws edge segments
void drawEdgeMap(const string& path, cv::Mat image, EdgeMap* edgeMap);
// draws line segments
void drawLines(const string& path, cv::Mat image, EDLines* edLines);
// draws corners (intersections of line segments)
void drawCorners(const string& path, cv::Mat image, const vector<vector<Corner>> &cornerGroups);
// draws quads
void drawQuads(const string& path, cv::Mat image, const vector<Quad> &quads);
// draws markers
void drawMarkers(const string& path, cv::Mat image, const vector<Marker> &markers);
// draws refined markers and their ellipses
void drawEllipses(const string& path, cv::Mat image, const vector<Marker> &markers);
};
#endif