-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImageDrawingTools.h
More file actions
36 lines (28 loc) · 1.05 KB
/
ImageDrawingTools.h
File metadata and controls
36 lines (28 loc) · 1.05 KB
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
//
// ImageDrawingTools.h
// RANSAC_AR
//
// Created by Michael Hotan on 5/13/12.
// Copyright (c) 2012 University of Washington. All rights reserved.
//
#ifndef RANSAC_AR_ImageDrawingTools_h
#define RANSAC_AR_ImageDrawingTools_h
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <cmath>
#include <opencv2/opencv.hpp>
using namespace cv;
//Draw Circle image at coordinates identified in pts
void drawCircleOnSelected(const vector <Point2f> &pts, cv::Mat &img, CvScalar color);
//Draw X on all points identified in pts
void drawXOnSelected(const vector <Point2f> &pts, cv::Mat &img, CvScalar color);
//Draws lines from one set to another
//void drawLinesOnSelected(const vector <cv::Point2f> &pts1,
// const cv::Mat &pts2, cv::Mat img, CvScalar color);
void drawLinesOnSelected(const vector <Point2f> &pts1,
const vector <Point2f> &pts2, cv::Mat &img, CvScalar color);
//Converts input data types to vector of Point2f
vector <Point2f> toPoint2fVector(const cv::Mat &mat);
#endif