22#include <opencv2/core.hpp>
30namespace func_sketch::plotter {
56 const cv::MatSize& size);
72 const cv::Scalar& color,
int line_width,
const PlotRange& range,
Class of configurations of a plot.
Class of a range of a plot.
Definition of Image type.
Definition of PlotConfig class.
Definition of PlotRange class.
Point compute_intersection_with_range(const Point &point_in_range, const Point &point_out_of_range, const PlotRange &range)
Compute the intersection of a line segment with the boundary of the plot range.
cv::Point convert_position(const Point &position, const PlotRange &range, const PlotConfig &config, int left_margin, const cv::MatSize &size)
Convert a position from plot coordinates to image coordinates.
cv::Scalar convert_color(const RGBColor &color)
Convert a color from RGBColor to cv::Scalar.
void write_line(Image &image, const Point &start_point, const Point &end_point, const cv::Scalar &color, int line_width, const PlotRange &range, const PlotConfig &config, int left_margin)
Write a line on an image.
bool try_clamp_infinity(Point &point, const PlotRange &range)
Try to clamp a point with infinity to the range.
Definition of Point struct.
Definition of RGBColor struct.