LineHandle.h 556 B

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