1234567891011121314151617 |
- #pragma once
- #include "LineHandle.h"
- #include <iostream>
- #include <SegDetector.h>
- #include <NanoDetector.h>
- #include <opencv2\imgproc\types_c.h>
- #include<opencv2/imgproc/imgproc_c.h>
- class LineHandle
- {
- public:
- 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);
- };
|