#ifndef cvdrawutils_h__ #define cvdrawutils_h__ #include #include #include #include "pointpair.h" using std::vector; using namespace cv; Scalar getRandomColor(); Mat getColorCanvas(const Mat& img, float resizeFactor = 1.); Mat drawPoints(const Mat& img, const vector& pointVec, int grayVal = 255, int xRadius = 0, int yRadius = 0); Mat drawPointsWithKeyPoints(const Mat& img, const vector& pointVec); Mat drawLines(const Mat& img, const vector& segPointVec); Mat drawLines(const Mat& img, const vector& segPointVec); void drawLine(Mat& canvas, const Vec4f& l, const Scalar& color); void drawPoint(Mat& canvas, int x, int y, const Scalar& color, int size = 1); void drawRotateRect(Mat& canvas, const RotatedRect& rr, const Scalar& color, int angleLen = 30); Mat highlightRoi(const Mat& roiImg, const Rect& r, const vector& roiVertexes); void drawPointDir(Mat& canvas, const Point& p, float angle, const Scalar& color, const Scalar& centerColor, int len = 5, int thick = 1); void drawPatternPose(Mat& canvas, const Size& templateSize, const Vec4f& pose, const Scalar& color); #endif // cvdrawutils_h__