47 #ifndef _MIRA_IMGPAINTER_H_ 48 #define _MIRA_IMGPAINTER_H_ 50 #include <opencv2/core/core.hpp> 61 namespace ImgPainter {
86 float sigma,
const Color::RGB& color,
int thickness=1);
93 template <
typename Derived>
96 float sigma,
const Color::RGB& color,
int thickness=1)
98 drawCovariance(ioImg, p, S(0,0), S(1,0), S(1,1), sigma, color, thickness);
113 float sigma,
const Color::RGB& color,
int thickness=1);
120 template <
typename Derived>
123 float sigma,
const Color::RGB& color,
int thickness=1)
125 drawInvCovariance(ioImg, p, Sinv(0,0), Sinv(1,0), Sinv(1,1), sigma, color, thickness);
General point class template.
Definition: Point.h:133
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Class for 2D, 3D and N-dimensional points.
MIRA_BASE_EXPORT void drawTransparentLine(cv::Mat &ioImg, const Point2i &a, const Point2i &b, const Color::RGB &color, double alpha=0.5f)
Draws a line between the two given points using the specified color and the specified line thickness...
MIRA_BASE_EXPORT void drawCovariance(cv::Mat &ioImg, const Point2i &p, float a, float b, float c, float sigma, const Color::RGB &color, int thickness=1)
Draws a covariance ellipse into the specified image at position 'p'.
This file contains color classes for the Img class.
The different color spaces.
Definition: Color.h:104
MIRA_BASE_EXPORT void drawInvCovariance(cv::Mat &ioImg, const Point2i &p, float a, float b, float c, float sigma, const Color::RGB &color, int thickness=1)
Draws a covariance ellipse into the specified image at position 'p'.