sagoma/lines.h
2017-01-06 04:12:34 +01:00

9 lines
385 B
C++

#include<algorithm>
#include<opencv2/opencv.hpp>
std::vector<std::vector<cv::Point>> simplify_hull(std::vector<cv::Point> hull);
std::vector<std::vector<cv::Point>> simplify_hull(std::vector<cv::Point> hull, double mindistance);
bool similar_fit(cv::Point a, cv::Point b, cv::Point newpoint);
bool similar_fit(cv::Point a, cv::Point b, cv::Point newpoint, float tolerance_degrees);