rgb_colors.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 /*********************************************************************
3  * Original color definition is at scikit-image distributed with
4  * following license disclaimer:
5  *
6  * Copyright (C) 2011, the scikit-image team
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions are
11  * met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  * 3. Neither the name of skimage nor the names of its contributors may be
20  * used to endorse or promote products derived from this software without
21  * specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
27  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33  * POSSIBILITY OF SUCH DAMAGE.
34  *********************************************************************/
35 
36 #ifndef CV_BRIDGE_RGB_COLORS_H_
37 #define CV_BRIDGE_RGB_COLORS_H_
38 
39 #include <opencv2/core/matx.hpp>
40 
41 
42 namespace cv_bridge
43 {
44 
45 namespace rgb_colors
46 {
47 
52  enum Colors {
53  ALICEBLUE,
55  AQUA,
56  AQUAMARINE,
57  AZURE,
58  BEIGE,
59  BISQUE,
60  BLACK,
62  BLUE,
63  BLUEVIOLET,
64  BROWN,
65  BURLYWOOD,
66  CADETBLUE,
67  CHARTREUSE,
68  CHOCOLATE,
69  CORAL,
71  CORNSILK,
72  CRIMSON,
73  CYAN,
74  DARKBLUE,
75  DARKCYAN,
78  DARKGREEN,
79  DARKGREY,
80  DARKKHAKI,
83  DARKORANGE,
84  DARKORCHID,
85  DARKRED,
86  DARKSALMON,
92  DARKVIOLET,
93  DEEPPINK,
95  DIMGRAY,
96  DIMGREY,
97  DODGERBLUE,
98  FIREBRICK,
100  FORESTGREEN,
101  FUCHSIA,
102  GAINSBORO,
103  GHOSTWHITE,
104  GOLD,
105  GOLDENROD,
106  GRAY,
107  GREEN,
108  GREENYELLOW,
109  GREY,
110  HONEYDEW,
111  HOTPINK,
112  INDIANRED,
113  INDIGO,
114  IVORY,
115  KHAKI,
118  LAWNGREEN,
119  LEMONCHIFFON,
120  LIGHTBLUE,
121  LIGHTCORAL,
122  LIGHTCYAN,
124  LIGHTGRAY,
125  LIGHTGREEN,
126  LIGHTGREY,
127  LIGHTPINK,
128  LIGHTSALMON,
130  LIGHTSKYBLUE,
134  LIGHTYELLOW,
135  LIME,
136  LIMEGREEN,
137  LINEN,
138  MAGENTA,
139  MAROON,
141  MEDIUMBLUE,
142  MEDIUMORCHID,
143  MEDIUMPURPLE,
199  };
200 
205  cv::Vec3d getRGBColor(const int color);
206 
207 } // namespace rgb_colors
208 
209 } // namespace cv_bridge
210 
211 #endif
cv_bridge::rgb_colors::LIGHTCORAL
@ LIGHTCORAL
Definition: rgb_colors.h:217
cv_bridge::rgb_colors::MEDIUMSEAGREEN
@ MEDIUMSEAGREEN
Definition: rgb_colors.h:240
cv_bridge::rgb_colors::ORCHID
@ ORCHID
Definition: rgb_colors.h:256
cv_bridge::rgb_colors::LAVENDERBLUSH
@ LAVENDERBLUSH
Definition: rgb_colors.h:213
cv_bridge::rgb_colors::DARKTURQUOISE
@ DARKTURQUOISE
Definition: rgb_colors.h:187
cv_bridge::rgb_colors::DARKRED
@ DARKRED
Definition: rgb_colors.h:181
cv_bridge::rgb_colors::SANDYBROWN
@ SANDYBROWN
Definition: rgb_colors.h:272
cv_bridge::rgb_colors::DARKVIOLET
@ DARKVIOLET
Definition: rgb_colors.h:188
cv_bridge::rgb_colors::DARKORANGE
@ DARKORANGE
Definition: rgb_colors.h:179
cv_bridge::rgb_colors::WHEAT
@ WHEAT
Definition: rgb_colors.h:290
cv_bridge::rgb_colors::MEDIUMTURQUOISE
@ MEDIUMTURQUOISE
Definition: rgb_colors.h:243
cv_bridge::rgb_colors::CORNFLOWERBLUE
@ CORNFLOWERBLUE
Definition: rgb_colors.h:166
cv_bridge::rgb_colors::PLUM
@ PLUM
Definition: rgb_colors.h:264
cv_bridge::rgb_colors::SILVER
@ SILVER
Definition: rgb_colors.h:276
cv_bridge::rgb_colors::SLATEBLUE
@ SLATEBLUE
Definition: rgb_colors.h:278
cv_bridge::rgb_colors::TAN
@ TAN
Definition: rgb_colors.h:284
cv_bridge::rgb_colors::MEDIUMPURPLE
@ MEDIUMPURPLE
Definition: rgb_colors.h:239
cv_bridge::rgb_colors::ROYALBLUE
@ ROYALBLUE
Definition: rgb_colors.h:269
cv_bridge::rgb_colors::INDIGO
@ INDIGO
Definition: rgb_colors.h:209
cv_bridge::rgb_colors::YELLOW
@ YELLOW
Definition: rgb_colors.h:293
cv_bridge::rgb_colors::LIGHTSKYBLUE
@ LIGHTSKYBLUE
Definition: rgb_colors.h:226
cv_bridge::rgb_colors::WHITE
@ WHITE
Definition: rgb_colors.h:291
cv_bridge::rgb_colors::LIGHTGREEN
@ LIGHTGREEN
Definition: rgb_colors.h:221
cv_bridge::rgb_colors::SALMON
@ SALMON
Definition: rgb_colors.h:271
cv_bridge::rgb_colors::DARKGOLDENROD
@ DARKGOLDENROD
Definition: rgb_colors.h:172
cv_bridge::rgb_colors::GOLDENROD
@ GOLDENROD
Definition: rgb_colors.h:201
cv_bridge::rgb_colors::SNOW
@ SNOW
Definition: rgb_colors.h:281
cv_bridge::rgb_colors::LIGHTGRAY
@ LIGHTGRAY
Definition: rgb_colors.h:220
cv_bridge::rgb_colors::PINK
@ PINK
Definition: rgb_colors.h:263
cv_bridge::rgb_colors::DARKBLUE
@ DARKBLUE
Definition: rgb_colors.h:170
cv_bridge::rgb_colors::DARKGRAY
@ DARKGRAY
Definition: rgb_colors.h:173
cv_bridge::rgb_colors::SIENNA
@ SIENNA
Definition: rgb_colors.h:275
cv_bridge::rgb_colors::MEDIUMVIOLETRED
@ MEDIUMVIOLETRED
Definition: rgb_colors.h:244
cv_bridge::rgb_colors::GREENYELLOW
@ GREENYELLOW
Definition: rgb_colors.h:204
cv_bridge::rgb_colors::MEDIUMAQUAMARINE
@ MEDIUMAQUAMARINE
Definition: rgb_colors.h:236
cv_bridge::rgb_colors::LIME
@ LIME
Definition: rgb_colors.h:231
cv_bridge::rgb_colors::LIGHTSLATEGREY
@ LIGHTSLATEGREY
Definition: rgb_colors.h:228
cv_bridge::rgb_colors::INDIANRED
@ INDIANRED
Definition: rgb_colors.h:208
cv_bridge::rgb_colors::FIREBRICK
@ FIREBRICK
Definition: rgb_colors.h:194
cv_bridge::rgb_colors::OLIVE
@ OLIVE
Definition: rgb_colors.h:252
cv_bridge::rgb_colors::CRIMSON
@ CRIMSON
Definition: rgb_colors.h:168
cv_bridge::rgb_colors::TURQUOISE
@ TURQUOISE
Definition: rgb_colors.h:288
cv_bridge::rgb_colors::PAPAYAWHIP
@ PAPAYAWHIP
Definition: rgb_colors.h:260
cv_bridge::rgb_colors::FORESTGREEN
@ FORESTGREEN
Definition: rgb_colors.h:196
cv_bridge::rgb_colors::SPRINGGREEN
@ SPRINGGREEN
Definition: rgb_colors.h:282
cv_bridge::rgb_colors::MINTCREAM
@ MINTCREAM
Definition: rgb_colors.h:246
cv_bridge::rgb_colors::ANTIQUEWHITE
@ ANTIQUEWHITE
Definition: rgb_colors.h:150
cv_bridge::rgb_colors::SLATEGRAY
@ SLATEGRAY
Definition: rgb_colors.h:279
cv_bridge::rgb_colors::DEEPPINK
@ DEEPPINK
Definition: rgb_colors.h:189
cv_bridge::rgb_colors::LINEN
@ LINEN
Definition: rgb_colors.h:233
cv_bridge::rgb_colors::SLATEGREY
@ SLATEGREY
Definition: rgb_colors.h:280
cv_bridge::rgb_colors::DARKCYAN
@ DARKCYAN
Definition: rgb_colors.h:171
cv_bridge::rgb_colors::BLACK
@ BLACK
Definition: rgb_colors.h:156
cv_bridge::rgb_colors::CORNSILK
@ CORNSILK
Definition: rgb_colors.h:167
cv_bridge::rgb_colors::YELLOWGREEN
@ YELLOWGREEN
Definition: rgb_colors.h:294
cv_bridge::rgb_colors::THISTLE
@ THISTLE
Definition: rgb_colors.h:286
cv_bridge::rgb_colors::GHOSTWHITE
@ GHOSTWHITE
Definition: rgb_colors.h:199
cv_bridge::rgb_colors::MEDIUMBLUE
@ MEDIUMBLUE
Definition: rgb_colors.h:237
cv_bridge::rgb_colors::MEDIUMSLATEBLUE
@ MEDIUMSLATEBLUE
Definition: rgb_colors.h:241
cv_bridge::rgb_colors::LIGHTGREY
@ LIGHTGREY
Definition: rgb_colors.h:222
cv_bridge::rgb_colors::BEIGE
@ BEIGE
Definition: rgb_colors.h:154
cv_bridge::rgb_colors::BLANCHEDALMOND
@ BLANCHEDALMOND
Definition: rgb_colors.h:157
cv_bridge::rgb_colors::STEELBLUE
@ STEELBLUE
Definition: rgb_colors.h:283
cv_bridge::rgb_colors::DARKGREY
@ DARKGREY
Definition: rgb_colors.h:175
cv_bridge::rgb_colors::LIGHTSALMON
@ LIGHTSALMON
Definition: rgb_colors.h:224
cv_bridge::rgb_colors::TEAL
@ TEAL
Definition: rgb_colors.h:285
cv_bridge::rgb_colors::AQUAMARINE
@ AQUAMARINE
Definition: rgb_colors.h:152
cv_bridge::rgb_colors::BLUEVIOLET
@ BLUEVIOLET
Definition: rgb_colors.h:159
cv_bridge::rgb_colors::ROSYBROWN
@ ROSYBROWN
Definition: rgb_colors.h:268
cv_bridge::rgb_colors::BLUE
@ BLUE
Definition: rgb_colors.h:158
cv_bridge::rgb_colors::DARKSLATEGREY
@ DARKSLATEGREY
Definition: rgb_colors.h:186
cv_bridge::rgb_colors::CHOCOLATE
@ CHOCOLATE
Definition: rgb_colors.h:164
cv_bridge::rgb_colors::DIMGREY
@ DIMGREY
Definition: rgb_colors.h:192
cv_bridge::rgb_colors::IVORY
@ IVORY
Definition: rgb_colors.h:210
cv_bridge::rgb_colors::GREEN
@ GREEN
Definition: rgb_colors.h:203
cv_bridge::rgb_colors::DARKORCHID
@ DARKORCHID
Definition: rgb_colors.h:180
cv_bridge::rgb_colors::VIOLET
@ VIOLET
Definition: rgb_colors.h:289
cv_bridge::rgb_colors::SEASHELL
@ SEASHELL
Definition: rgb_colors.h:274
cv_bridge::rgb_colors::LIGHTYELLOW
@ LIGHTYELLOW
Definition: rgb_colors.h:230
cv_bridge::rgb_colors::MOCCASIN
@ MOCCASIN
Definition: rgb_colors.h:248
cv_bridge::rgb_colors::HONEYDEW
@ HONEYDEW
Definition: rgb_colors.h:206
cv_bridge::rgb_colors::CHARTREUSE
@ CHARTREUSE
Definition: rgb_colors.h:163
cv_bridge::rgb_colors::DEEPSKYBLUE
@ DEEPSKYBLUE
Definition: rgb_colors.h:190
cv_bridge::rgb_colors::NAVY
@ NAVY
Definition: rgb_colors.h:250
cv_bridge::rgb_colors::ALICEBLUE
@ ALICEBLUE
Definition: rgb_colors.h:149
cv_bridge::rgb_colors::HOTPINK
@ HOTPINK
Definition: rgb_colors.h:207
cv_bridge::rgb_colors::AZURE
@ AZURE
Definition: rgb_colors.h:153
cv_bridge::rgb_colors::OLIVEDRAB
@ OLIVEDRAB
Definition: rgb_colors.h:253
cv_bridge::rgb_colors::PURPLE
@ PURPLE
Definition: rgb_colors.h:266
cv_bridge::rgb_colors::ORANGERED
@ ORANGERED
Definition: rgb_colors.h:255
cv_bridge::rgb_colors::CORAL
@ CORAL
Definition: rgb_colors.h:165
cv_bridge::rgb_colors::PALEGOLDENROD
@ PALEGOLDENROD
Definition: rgb_colors.h:257
cv_bridge::rgb_colors::NAVAJOWHITE
@ NAVAJOWHITE
Definition: rgb_colors.h:249
cv_bridge::rgb_colors::DARKSALMON
@ DARKSALMON
Definition: rgb_colors.h:182
cv_bridge::rgb_colors::SADDLEBROWN
@ SADDLEBROWN
Definition: rgb_colors.h:270
cv_bridge::rgb_colors::LIGHTSEAGREEN
@ LIGHTSEAGREEN
Definition: rgb_colors.h:225
cv_bridge::rgb_colors::MEDIUMSPRINGGREEN
@ MEDIUMSPRINGGREEN
Definition: rgb_colors.h:242
cv_bridge::rgb_colors::LIGHTPINK
@ LIGHTPINK
Definition: rgb_colors.h:223
cv_bridge::rgb_colors::SEAGREEN
@ SEAGREEN
Definition: rgb_colors.h:273
cv_bridge::rgb_colors::PEACHPUFF
@ PEACHPUFF
Definition: rgb_colors.h:261
cv_bridge::rgb_colors::FLORALWHITE
@ FLORALWHITE
Definition: rgb_colors.h:195
cv_bridge::rgb_colors::PALEGREEN
@ PALEGREEN
Definition: rgb_colors.h:258
cv_bridge::rgb_colors::SKYBLUE
@ SKYBLUE
Definition: rgb_colors.h:277
cv_bridge::rgb_colors::getRGBColor
cv::Vec3d getRGBColor(const int color)
get rgb color with enum.
Definition: rgb_colors.cpp:109
cv_bridge::rgb_colors::POWDERBLUE
@ POWDERBLUE
Definition: rgb_colors.h:265
cv_bridge::rgb_colors::DARKSEAGREEN
@ DARKSEAGREEN
Definition: rgb_colors.h:183
cv_bridge::rgb_colors::CADETBLUE
@ CADETBLUE
Definition: rgb_colors.h:162
cv_bridge::rgb_colors::LIGHTSLATEGRAY
@ LIGHTSLATEGRAY
Definition: rgb_colors.h:227
cv_bridge::rgb_colors::LAVENDER
@ LAVENDER
Definition: rgb_colors.h:212
cv_bridge::rgb_colors::LIGHTSTEELBLUE
@ LIGHTSTEELBLUE
Definition: rgb_colors.h:229
cv_bridge::rgb_colors::DIMGRAY
@ DIMGRAY
Definition: rgb_colors.h:191
cv_bridge::rgb_colors::GAINSBORO
@ GAINSBORO
Definition: rgb_colors.h:198
cv_bridge::rgb_colors::LIGHTBLUE
@ LIGHTBLUE
Definition: rgb_colors.h:216
cv_bridge::rgb_colors::GRAY
@ GRAY
Definition: rgb_colors.h:202
cv_bridge::rgb_colors::DARKSLATEBLUE
@ DARKSLATEBLUE
Definition: rgb_colors.h:184
cv_bridge::rgb_colors::LAWNGREEN
@ LAWNGREEN
Definition: rgb_colors.h:214
cv_bridge::rgb_colors::BROWN
@ BROWN
Definition: rgb_colors.h:160
cv_bridge::rgb_colors::MEDIUMORCHID
@ MEDIUMORCHID
Definition: rgb_colors.h:238
cv_bridge::rgb_colors::ORANGE
@ ORANGE
Definition: rgb_colors.h:254
cv_bridge::rgb_colors::MAROON
@ MAROON
Definition: rgb_colors.h:235
cv_bridge::rgb_colors::LIGHTGOLDENRODYELLOW
@ LIGHTGOLDENRODYELLOW
Definition: rgb_colors.h:219
cv_bridge::rgb_colors::GOLD
@ GOLD
Definition: rgb_colors.h:200
cv_bridge::rgb_colors::LIMEGREEN
@ LIMEGREEN
Definition: rgb_colors.h:232
cv_bridge::rgb_colors::KHAKI
@ KHAKI
Definition: rgb_colors.h:211
cv_bridge
Definition: cv_bridge.h:48
cv_bridge::rgb_colors::BURLYWOOD
@ BURLYWOOD
Definition: rgb_colors.h:161
cv_bridge::rgb_colors::FUCHSIA
@ FUCHSIA
Definition: rgb_colors.h:197
cv_bridge::rgb_colors::LIGHTCYAN
@ LIGHTCYAN
Definition: rgb_colors.h:218
cv_bridge::rgb_colors::LEMONCHIFFON
@ LEMONCHIFFON
Definition: rgb_colors.h:215
cv_bridge::rgb_colors::DARKSLATEGRAY
@ DARKSLATEGRAY
Definition: rgb_colors.h:185
cv_bridge::rgb_colors::TOMATO
@ TOMATO
Definition: rgb_colors.h:287
cv_bridge::rgb_colors::GREY
@ GREY
Definition: rgb_colors.h:205
cv_bridge::rgb_colors::DARKOLIVEGREEN
@ DARKOLIVEGREEN
Definition: rgb_colors.h:178
cv_bridge::rgb_colors::DARKGREEN
@ DARKGREEN
Definition: rgb_colors.h:174
cv_bridge::rgb_colors::MISTYROSE
@ MISTYROSE
Definition: rgb_colors.h:247
cv_bridge::rgb_colors::DARKKHAKI
@ DARKKHAKI
Definition: rgb_colors.h:176
cv_bridge::rgb_colors::MIDNIGHTBLUE
@ MIDNIGHTBLUE
Definition: rgb_colors.h:245
cv_bridge::rgb_colors::PALEVIOLETRED
@ PALEVIOLETRED
Definition: rgb_colors.h:259
cv_bridge::rgb_colors::RED
@ RED
Definition: rgb_colors.h:267
cv_bridge::rgb_colors::WHITESMOKE
@ WHITESMOKE
Definition: rgb_colors.h:292
cv_bridge::rgb_colors::PERU
@ PERU
Definition: rgb_colors.h:262
cv_bridge::rgb_colors::BISQUE
@ BISQUE
Definition: rgb_colors.h:155
cv_bridge::rgb_colors::OLDLACE
@ OLDLACE
Definition: rgb_colors.h:251
cv_bridge::rgb_colors::DARKMAGENTA
@ DARKMAGENTA
Definition: rgb_colors.h:177
cv_bridge::rgb_colors::CYAN
@ CYAN
Definition: rgb_colors.h:169
cv_bridge::rgb_colors::AQUA
@ AQUA
Definition: rgb_colors.h:151
cv_bridge::rgb_colors::MAGENTA
@ MAGENTA
Definition: rgb_colors.h:234
cv_bridge::rgb_colors::DODGERBLUE
@ DODGERBLUE
Definition: rgb_colors.h:193
cv_bridge::rgb_colors::Colors
Colors
146 rgb colors
Definition: rgb_colors.h:116


cv_bridge
Author(s): Patrick Mihelich, James Bowman
autogenerated on Wed Mar 2 2022 01:12:36