Angefangen erste Linien zusammenführen zu wollen

This commit is contained in:
2022-11-14 17:31:01 +01:00
parent d7de99045b
commit 397204b33e
3 changed files with 48 additions and 6 deletions
+14
View File
@@ -45,3 +45,17 @@ LFRLine::LFRLine(LFRPoint start, LFRPoint end) : start(start)
LFRLine::~LFRLine()
{
}
VectorOfLines::VectorOfLines()
{
}
float VectorOfLines::calcGradient(Point p0, Point p1)
{
return (p1.y - p0.y)/(p1.x - p0.x);
}
float VectorOfLines::calcZeroPoint(cv::Point x, float m)
{
}
+5 -5
View File
@@ -49,14 +49,14 @@ public:
class VectorOfLines{
private:
float theta;
float m;
float zeroPoint;
public:
Point startPoint;
float gradient;
float zeroPoint;
VectorOfLines();
~VectorOfLines();
float calcTheta(cv::Point x, Point y);
float calcM(float theta);
static float calcGradient(Point x, Point y);
float calcZeroPoint(cv::Point x, float m);
};