27 lines
765 B
C++
27 lines
765 B
C++
#ifndef TOOLS__IMG_TOOLS_HPP
|
|
#define TOOLS__IMG_TOOLS_HPP
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace tools
|
|
{
|
|
void draw_point(
|
|
cv::Mat & img, const cv::Point & point, const cv::Scalar & color = {0, 0, 255}, int radius = 3);
|
|
|
|
void draw_points(
|
|
cv::Mat & img, const std::vector<cv::Point> & points, const cv::Scalar & color = {0, 0, 255},
|
|
int thickness = 2);
|
|
|
|
void draw_points(
|
|
cv::Mat & img, const std::vector<cv::Point2f> & points, const cv::Scalar & color = {0, 0, 255},
|
|
int thickness = 2);
|
|
|
|
void draw_text(
|
|
cv::Mat & img, const std::string & text, const cv::Point & point,
|
|
const cv::Scalar & color = {0, 255, 255}, double font_scale = 1.0, int thickness = 2);
|
|
|
|
} // namespace tools
|
|
|
|
#endif // TOOLS__IMG_TOOLS_HPP
|