-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrtlFinder.h
More file actions
37 lines (22 loc) · 896 Bytes
/
rtlFinder.h
File metadata and controls
37 lines (22 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Created by peng on 18-5-9.
//
#ifndef ROBOCONVISION_RTLFINDER_H
#define ROBOCONVISION_RTLFINDER_H
#include <opencv2/opencv.hpp>
#include <zconf.h>
#include "rtlInfo.h"
class RtlFinder {
public:
cv::Mat getThreshold(cv::Mat tinput);
bool IsBoundary(cv::Mat img, cv::Point P);
cv::Point FindFirstMidPointBottom(cv::Mat img);
cv::Point FindFirstMidPointLeft(cv::Mat img);
int FindNextMiddlePointBottom(cv::Mat Img, cv::Point *NextPoint, cv::Point NowPoint, int intervel);
int FindNextMiddlePointLeft(cv::Mat Img, cv::Point *NextPoint, cv::Point NowPoint, int intervel);
std::vector<cv::Point> FindAllMidPointsBottom(cv::Mat Img);
std::vector<cv::Point> FindAllMidPointsLeft(cv::Mat Img);
bool polynomial_curve_fit(std::vector<cv::Point> &key_point, int n, cv::Mat &A);
int operator()(RtlInfo &info);
};
#endif //ROBOCONVISION_RTLFINDER_H