iRoCS Toolbox  1.1.0
BlitzRGBColor.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2008 Alexandra Teynor
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23  /**********************************************************
24  *
25  * BlitzRGBClolor
26  * convenience color related functions
27  *
28  *
29  **********************************************************
30  *
31  * $Author: teynor $
32  *
33  *********************************************************/
34 
35 #ifndef _BLITZ_RGB_COLOR_HH
36 #define _BLITZ_RGB_COLOR_HH
37 
38 #ifdef HAVE_CONFIG_H
39 #include <config.hh>
40 #endif
41 
42 // Blitz arrays
43 #include <blitz/array.h>
44 
45 typedef blitz::TinyVector<unsigned char,3> BlitzRGBColor;
46 
47 
48 /*======================================================================*/
58 /*======================================================================*/
59 
60 namespace BlitzRGBColors {
61 
62 const blitz::TinyVector<unsigned char,3> red(255,0,0);
63 const blitz::TinyVector<unsigned char,3> green(0,255,0);
64 const blitz::TinyVector<unsigned char,3> blue(0,0,255);
65 const blitz::TinyVector<unsigned char,3> yellow(255,255,0);
66 const blitz::TinyVector<unsigned char,3> magenta(255,0,255);
67 const blitz::TinyVector<unsigned char,3> cyan(0,255,255);
68 const blitz::TinyVector<unsigned char,3> black(0,0,0);
69 const blitz::TinyVector<unsigned char,3> white(255,255,255);
70 const blitz::TinyVector<unsigned char,3> gray(127,127,127);
71 const blitz::TinyVector<unsigned char,3> darkRed(127,0,0);
72 const blitz::TinyVector<unsigned char,3> copper(255,158,102);
73 const blitz::TinyVector<unsigned char,3> aquamarine(125,155,212);
74 
75 blitz::TinyVector<unsigned char,3> jet(float val);
76 
77 }
78 
79 #endif
const blitz::TinyVector< unsigned char, 3 > aquamarine(125, 155, 212)
const blitz::TinyVector< unsigned char, 3 > cyan(0, 255, 255)
const blitz::TinyVector< unsigned char, 3 > green(0, 255, 0)
const blitz::TinyVector< unsigned char, 3 > yellow(255, 255, 0)
blitz::TinyVector< unsigned char, 3 > jet(float val)
const blitz::TinyVector< unsigned char, 3 > gray(127, 127, 127)
const blitz::TinyVector< unsigned char, 3 > blue(0, 0, 255)
const blitz::TinyVector< unsigned char, 3 > black(0, 0, 0)
const blitz::TinyVector< unsigned char, 3 > white(255, 255, 255)
const blitz::TinyVector< unsigned char, 3 > darkRed(127, 0, 0)
blitz::TinyVector< unsigned char, 3 > BlitzRGBColor
const blitz::TinyVector< unsigned char, 3 > magenta(255, 0, 255)
const blitz::TinyVector< unsigned char, 3 > copper(255, 158, 102)
const blitz::TinyVector< unsigned char, 3 > red(255, 0, 0)