YARP
Yet Another Robot Platform
ImageDraw.h File Reference
#include <cmath>
#include <yarp/sig/Image.h>
+ Include dependency graph for ImageDraw.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 yarp
 The main, catch-all namespace for YARP.
 
 yarp::sig
 Signal processing.
 
 yarp::sig::draw
 Very basic drawing functions, in case you don't have anything better available.
 

Macros

#define IMGFOR(img, i, j)   for (size_t i=0; i<(img).width(); i++) for (size_t j=0; j<(img).height(); j++)
 

Functions

template<class T >
void yarp::sig::draw::addSegment (ImageOf< T > &dest, const T &pix, int x, int y, int dx, int dy)
 
template<class T >
void yarp::sig::draw::addCircle (ImageOf< T > &dest, const T &pix, int i, int j, int r)
 
template<class T >
void yarp::sig::draw::addCrossHair (ImageOf< T > &dest, const T &pix, int i, int j, int r)
 
template<class T >
void yarp::sig::draw::addCircleOutline (ImageOf< T > &dest, const T &pix, int i, int j, int r)
 
template<class T >
void yarp::sig::draw::addOvalOutline (ImageOf< T > &dest, const T &pix, int i, int j, int h2, int w2)
 
template<class T >
void yarp::sig::draw::addRectangleOutline (ImageOf< T > &dest, const T &pix, int i, int j, int w, int h)
 
template<class T >
void yarp::sig::draw::addRectangle (ImageOf< T > &dest, const T &pix, int i, int j, int w, int h)
 warning : i, j is x, y center of rectangle More...
 
template<class T >
int yarp::sig::draw::applyThreshold (ImageOf< T > &src, ImageOf< T > &dest, const T &thetalo, const T &thetahi, const T &pix0, const T &pix1)
 
template<class T >
void yarp::sig::draw::setImagePixels (ImageOf< T > &src, const T &pix)
 

Macro Definition Documentation

◆ IMGFOR

#define IMGFOR (   img,
  i,
 
)    for (size_t i=0; i<(img).width(); i++) for (size_t j=0; j<(img).height(); j++)

Definition at line 154 of file ImageDraw.h.