MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
ImgPainter.h File Reference

Advanced methods for drawing to an Img. More...

#include <opencv2/core/core.hpp>
#include <platform/Platform.h>
#include <Eigen/Core>
#include <image/Color.h>
#include <geometry/Point.h>
Include dependency graph for ImgPainter.h:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 
 mira::ImgPainter
 

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...
 

Detailed Description

Advanced methods for drawing to an Img.

Author
Erik Einhorn
Date
2012/08/16