Kantendetection und Liniendetection
This commit is contained in:
@@ -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);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user