Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

colors.h File Reference

Color definitions for CMVision. More...

#include <iostream>
#include <string>
Include dependency graph for colors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yuv
struct  yuvi
struct  yuvf
struct  yuyv
struct  uyvy
struct  rgb
struct  rgba
struct  argb
struct  rgbf
struct  rgbaf
struct  argbf

Namespaces

namespace  CMVision
 

For more information on the CMVision package, visit http://www.cs.cmu.edu/~jbruce/cmvision/.


Defines

#define YUVI_STRUCT
#define YUVF_STRUCT
#define YUYV_STRUCT
#define UYVY_STRUCT
#define RGB_STRUCT
#define RGBA_STRUCT
#define ARGB_STRUCT
#define RGBF_STRUCT
#define RGBAF_STRUCT
#define ARGBF_STRUCT

Typedefs

typedef unsigned int color_index
typedef unsigned char CMVision::uchar

Functions

yuv rgb2yuv (const rgb x)
 converts rgb to yuv
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'

Detailed Description

Color definitions for CMVision.

Author:
James R. Bruce, School of Computer Science, Carnegie Mellon University

Licensed under the GNU GPL version 2

Definition in file colors.h.


Define Documentation

#define ARGB_STRUCT

Definition at line 93 of file colors.h.

#define ARGBF_STRUCT

Definition at line 120 of file colors.h.

#define RGB_STRUCT

Definition at line 62 of file colors.h.

#define RGBA_STRUCT

Definition at line 86 of file colors.h.

#define RGBAF_STRUCT

Definition at line 113 of file colors.h.

#define RGBF_STRUCT

Definition at line 100 of file colors.h.

#define UYVY_STRUCT

Definition at line 56 of file colors.h.

#define YUVF_STRUCT

Definition at line 41 of file colors.h.

#define YUVI_STRUCT

Definition at line 34 of file colors.h.

#define YUYV_STRUCT

Definition at line 48 of file colors.h.


Typedef Documentation

typedef unsigned int color_index

Definition at line 11 of file colors.h.


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