colors.cc File Reference
#include "Vision/colors.h"
#include <cstdio>
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.
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.