My Project
Namespaces | Functions
Draw.h File Reference

This file implements a collection of functions that are used to visualize lines, contours and corners for debugging purposes. More...

#include "Alvar.h"
#include "Camera.h"
#include "Line.h"
#include "Util.h"
#include <opencv2/imgproc.hpp>
#include <sstream>

Go to the source code of this file.

Namespaces

 alvar
 Main ALVAR namespace.
 

Functions

template<class PointType >
void DrawBB (cv::Mat &image, const std::vector< PointType > &points, const cv::Scalar &color, const std::string &label="")
 Draws the bounding box of a connected component (Blob). More...
 
template<class PointType >
void DrawLines (cv::Mat &image, const std::vector< PointType > &points, const cv::Scalar &color, bool loop=true)
 Draws lines between consecutive points stored in vector (polyline). More...
 
void ALVAR_EXPORT DrawLine (cv::Mat &image, const Line line, const cv::Scalar &color=CV_RGB(0, 255, 0))
 Draws a line. More...
 
void ALVAR_EXPORT DrawPoints (cv::Mat &image, const std::vector< cv::Point > &contour, const cv::Scalar &color=CV_RGB(255, 0, 0))
 Draws points of the contour that is obtained by Labeling class. More...
 
void ALVAR_EXPORT DrawCircles (cv::Mat &image, const std::vector< cv::Point > &contour, int radius, const cv::Scalar &color=CV_RGB(255, 0, 0))
 Draws circles to the contour points that are obtained by Labeling class. More...
 
void ALVAR_EXPORT DrawLines (cv::Mat &image, const std::vector< cv::Point > &contour, const cv::Scalar &color=CV_RGB(255, 0, 0))
 Draws lines between consecutive contour points. More...
 
template<class PointType >
void DrawPoints (cv::Mat &image, const std::vector< PointType > &points, const cv::Scalar &color, int radius=1)
 Draws circles to the array of points. More...
 
void ALVAR_EXPORT DrawCVEllipse (cv::Mat &image, const cv::RotatedRect &ellipse, const cv::Scalar &color, bool fill=false, double par=0)
 Draws OpenCV ellipse. More...
 
void ALVAR_EXPORT BuildHideTexture (cv::Mat &image, cv::Mat &hide_texture, Camera *cam, double gl_modelview[16], PointDouble topleft, PointDouble botright)
 This function is used to construct a texture image which is needed to hide a marker from the original video frame. See SampleMarkerHide.cpp for example implementation. More...
 
void ALVAR_EXPORT DrawTexture (cv::Mat &image, cv::Mat &texture, Camera *cam, double gl_modelview[16], PointDouble topleft, PointDouble botright)
 Draws the texture generated by BuildHideTexture to given video frame. For better performance, use OpenGL instead. See SampleMarkerHide.cpp for example implementation. More...
 

Detailed Description

This file implements a collection of functions that are used to visualize lines, contours and corners for debugging purposes.

Definition in file Draw.h.