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 "Util.h"
#include "Camera.h"
#include "Line.h"
#include <sstream>
Include dependency graph for Draw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 alvar
 Main ALVAR namespace.
 

Functions

void ALVAR_EXPORT alvar::BuildHideTexture (IplImage *image, IplImage *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...
 
template<class PointType >
void alvar::DrawBB (IplImage *image, const std::vector< PointType > &points, CvScalar color, std::string label="")
 Draws the bounding box of a connected component (Blob). More...
 
void ALVAR_EXPORT alvar::DrawCircles (IplImage *image, const CvSeq *contour, int radius, CvScalar color=CV_RGB(255, 0, 0))
 Draws circles to the contour points that are obtained by Labeling class. More...
 
void ALVAR_EXPORT alvar::DrawCVEllipse (IplImage *image, CvBox2D &ellipse, CvScalar color, bool fill=false, double par=0)
 Draws OpenCV ellipse. More...
 
void ALVAR_EXPORT alvar::DrawLine (IplImage *image, const Line line, CvScalar color=CV_RGB(0, 255, 0))
 Draws a line. More...
 
template<class PointType >
void alvar::DrawLines (IplImage *image, const std::vector< PointType > &points, CvScalar color, bool loop=true)
 Draws lines between consecutive points stored in vector (polyline). More...
 
void ALVAR_EXPORT alvar::DrawLines (IplImage *image, const CvSeq *contour, CvScalar color=CV_RGB(255, 0, 0))
 Draws lines between consecutive contour points. More...
 
void ALVAR_EXPORT alvar::DrawPoints (IplImage *image, const std::vector< CvPoint > &points, CvScalar color)
 Draws a set of points. More...
 
void ALVAR_EXPORT alvar::DrawPoints (IplImage *image, const CvSeq *contour, CvScalar color=CV_RGB(255, 0, 0))
 Draws points of the contour that is obtained by Labeling class. More...
 
template<class PointType >
void alvar::DrawPoints (IplImage *image, const std::vector< PointType > &points, CvScalar color, int radius=1)
 Draws circles to the array of points. More...
 
void ALVAR_EXPORT alvar::DrawTexture (IplImage *image, IplImage *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.



ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 19:27:24