ACT-CV - Machine Vision for Cognitive Modeling
|
Helper functions for OpenCV. More...
Go to the source code of this file.
Classes | |
class | ImageHolder |
extend the GCPointer<_t> garbage collection to IplImage More... | |
class | RingBuf< _t, len > |
Ringbuffer for arbritrary types. More... | |
Functions | |
CvScalar | Rgb2Scalar (int rgb) |
convert a standard RGB value to a CvScalar More... | |
std::ostream & | operator<< (std::ostream &o, const CvPoint2D32f &p) |
std::ostream & | operator<< (std::ostream &o, const CvSize &s) |
std::ostream & | operator<< (std::ostream &o, const CvPoint &p) |
template<class _p2 > | |
CvPoint | operator+ (const CvPoint &a, const _p2 &b) |
void | PrintLine (const Linie &l, IplImage *img, CvScalar color) |
draw line l into img More... | |
void | PrintArrow (const Linie &l, IplImage *img, CvScalar color) |
draw line l into img and add an arrow head More... | |
Helper functions for OpenCV.
Definition in file OpenCVHelpers.h.
CvPoint operator+ | ( | const CvPoint & | a, |
const _p2 & | b | ||
) |
Definition at line 109 of file OpenCVHelpers.h.
std::ostream& operator<< | ( | std::ostream & | o, |
const CvPoint2D32f & | p | ||
) |
std::ostream& operator<< | ( | std::ostream & | o, |
const CvSize & | s | ||
) |
std::ostream& operator<< | ( | std::ostream & | o, |
const CvPoint & | p | ||
) |
Definition at line 45 of file OpenCVHelpers.cpp.
void PrintArrow | ( | const Linie & | l, |
IplImage * | img, | ||
CvScalar | color | ||
) |
draw line l into img and add an arrow head
Definition at line 60 of file OpenCVHelpers.cpp.
References Linie::GetLen(), Linie::GetLinks(), Linie::GetOben(), Linie::GetRechts(), Linie::GetUnten(), and M_PI.
Referenced by OpticalFlow::PrintFlowField().
void PrintLine | ( | const Linie & | l, |
IplImage * | img, | ||
CvScalar | color | ||
) |
draw line l into img
Definition at line 50 of file OpenCVHelpers.cpp.
References Linie::GetLinks(), Linie::GetOben(), Linie::GetRechts(), and Linie::GetUnten().
CvScalar Rgb2Scalar | ( | int | rgb) |
convert a standard RGB value to a CvScalar
Definition at line 96 of file OpenCVHelpers.h.
Referenced by QtFrameSource::GetNextFrame(), QtCaptureSource::GetNextFrame(), and Robot::GetScreenCapture().