4 #include <vision_module/Tools/LineSegment.hpp>
24 line.P1=Point2d(nearDistance,nearValue);
25 line.P2=Point2d(farDistance,farValue);
28 inline bool GetValue(
double distance,
double &value)
30 double max_y = std::max(line.P1.y, line.P2.y);
31 LineSegment verLine(cv::Point(distance, 0), cv::Point2d(distance, max_y));
33 if (line.Intersect(verLine, resBand))
A class representing line segments.
Definition: LineSegment.hpp:17
A class for interpolating between boundaries.
Definition: BoundaryLinearInterpolation.hpp:11