MIRA
|
Functions | |
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. More... | |
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'. More... | |
template<typename Derived > | |
void | drawCovariance (cv::Mat &ioImg, const Point2i &p, const Eigen::MatrixBase< Derived > &S, float sigma, const Color::RGB &color, int thickness=1) |
Same as above, where the covariance matrix is specified instead of its coefficients. More... | |
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'. More... | |
template<typename Derived > | |
void | drawInvCovariance (cv::Mat &ioImg, const Point2i &p, const Eigen::MatrixBase< Derived > &Sinv, float sigma, const Color::RGB &color, int thickness=1) |
Same as above, where the inverse covariance matrix is specified instead of its coefficients. More... | |
MIRA_BASE_EXPORT void mira::ImgPainter::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 mira::ImgPainter::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'.
The covariance matrix is represented by the 3 scalars a,b,c, which form the matrix as:
The specified sigma parameter controls the size of the ellipse.
|
inline |
Same as above, where the covariance matrix is specified instead of its coefficients.
Note: the lower diagonal matrix is used only.
MIRA_BASE_EXPORT void mira::ImgPainter::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'.
The INVERSE covariance matrix is represented by the 3 scalars a,b,c, which form the matrix as:
The specified sigma parameter controls the size of the ellipse.
|
inline |
Same as above, where the inverse covariance matrix is specified instead of its coefficients.
Note: the lower diagonal matrix is used only.