Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

colors.cc File Reference

#include "Vision/colors.h"
#include <cstdio>
Include dependency graph for colors.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const rgb &rgbval)
 displays an rgb value in the form '[r,g,b]'
std::string toString (const rgb &rgbval)
 returns rgbval in the string form 'r g b'
std::ostream & operator<< (std::ostream &os, const yuv &yuvval)
 displays a yuv value in the form '[y,u,v]'
std::string toString (const yuv &yuvval)
 returns yuvval in the string form 'y u v'
yuv rgb2yuv (const rgb x)
 converts rgb to yuv

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const yuv yuvval 
)

displays a yuv value in the form '[y,u,v]'

Definition at line 22 of file colors.cc.

std::ostream& operator<< ( std::ostream &  os,
const rgb rgbval 
)

displays an rgb value in the form '[r,g,b]'

Definition at line 5 of file colors.cc.

yuv rgb2yuv ( const rgb  x  ) 

converts rgb to yuv

Definition at line 38 of file colors.cc.

Referenced by Graphics::setColor().

std::string toString ( const yuv yuvval  ) 

returns yuvval in the string form 'y u v'

Definition at line 31 of file colors.cc.

std::string toString ( const rgb rgbval  ) 

returns rgbval in the string form 'r g b'

Definition at line 14 of file colors.cc.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:54 2016 by Doxygen 1.6.3