Kantendetection und Liniendetection

This commit is contained in:
2022-11-14 11:37:38 +01:00
parent 3f4eb40021
commit d7de99045b
5 changed files with 59 additions and 3 deletions
+20
View File
@@ -1,5 +1,11 @@
#pragma once
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
class LFRPoint
{
private:
@@ -39,4 +45,18 @@ public:
LFRLine(LFRPoint start, LFRVector dir);
LFRLine(LFRPoint start, LFRPoint end);
~LFRLine();
};
class VectorOfLines{
private:
float theta;
float m;
float zeroPoint;
public:
VectorOfLines();
~VectorOfLines();
float calcTheta(cv::Point x, Point y);
float calcM(float theta);
float calcZeroPoint(cv::Point x, float m);
};