30 #ifndef IMAGE_UTIL_DRAW_UTIL_H_ 31 #define IMAGE_UTIL_DRAW_UTIL_H_ 35 #include <opencv2/core/core.hpp> 39 void RandomColor(int32_t seed,
double& r,
double& g,
double& b);
63 const std::string& title,
64 const cv::Mat& image1,
65 const cv::Mat& image2,
66 const cv::Mat& transform);
72 const cv::Mat points1,
73 const cv::Mat points2,
74 const cv::Scalar& color = cv::Scalar::all(-1),
75 bool draw_image_borders =
false);
78 const std::string& title,
81 const cv::Mat points1,
82 const cv::Mat points2,
83 const cv::Scalar& color = cv::Scalar::all(-1),
84 bool draw_image_borders =
false);
87 const std::string& title,
89 const cv::Mat points1,
90 const cv::Mat points2,
91 const cv::Scalar& color1,
92 const cv::Scalar& color2,
93 bool draw_image_borders =
false);
96 #endif // IMAGE_UTIL_DRAW_UTIL_H_ void JetColorMap(unsigned char &r, unsigned char &g, unsigned char &b, float value, float min, float max)
Map a scalar value to a color gradient.
void DrawMatches(cv::Mat &image_out, const cv::Mat image1, const cv::Mat image2, const cv::Mat points1, const cv::Mat points2, const cv::Scalar &color=cv::Scalar::all(-1), bool draw_image_borders=false)
void RandomColor(int32_t seed, double &r, double &g, double &b)
void DrawOverlap(const std::string &title, const cv::Mat &image1, const cv::Mat &image2, const cv::Mat &transform)