Angefangen erste Linien zusammenführen zu wollen
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user