LineHandle.h 487 B

1234567891011121314
  1. #pragma once
  2. #include <iostream>
  3. #include <opencv2\imgproc\types_c.h>
  4. #include<opencv2/imgproc/imgproc_c.h>
  5. class LineHandle
  6. {
  7. public:
  8. static void crossPointsOfLines(cv::Vec4i lineA, cv::Vec4i lineB, cv::Point2f& crossPoints);
  9. static bool comp(const cv::Point2f& a, const cv::Point2f& b);
  10. static long CalcMatSum(cv::Mat img);
  11. static bool ComparePairFirst(std::pair<int, int> a, std::pair<int, int> b);
  12. static bool ComparePairSecond(std::pair<int, int>a, std::pair<int, int> b);
  13. };