1234567891011121314 |
- #pragma once
- #include <iostream>
- #include <opencv2\imgproc\types_c.h>
- #include<opencv2/imgproc/imgproc_c.h>
- class LineHandle
- {
- public:
- static void crossPointsOfLines(cv::Vec4i lineA, cv::Vec4i lineB, cv::Point2f& crossPoints);
- static bool comp(const cv::Point2f& a, const cv::Point2f& b);
- static long CalcMatSum(cv::Mat img);
- static bool ComparePairFirst(std::pair<int, int> a, std::pair<int, int> b);
- static bool ComparePairSecond(std::pair<int, int>a, std::pair<int, int> b);
- };
|