Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
2cbfb041
Commit
2cbfb041
authored
Nov 28, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viz: rich set of named colors
parent
f60f8a73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
4 deletions
+63
-4
types.hpp
modules/viz/include/opencv2/viz/types.hpp
+63
-4
No files found.
modules/viz/include/opencv2/viz/types.hpp
View file @
2cbfb041
...
@@ -77,6 +77,34 @@ namespace cv
...
@@ -77,6 +77,34 @@ namespace cv
static
Color
white
();
static
Color
white
();
static
Color
gray
();
static
Color
gray
();
static
Color
mlab
();
static
Color
navy
();
static
Color
olive
();
static
Color
maroon
();
static
Color
teal
();
static
Color
rose
();
static
Color
azure
();
static
Color
lime
();
static
Color
gold
();
static
Color
brown
();
static
Color
orange
();
static
Color
chartreuse
();
static
Color
orange_red
();
static
Color
purple
();
static
Color
indigo
();
static
Color
pink
();
static
Color
cherry
();
static
Color
bluberry
();
static
Color
raspberry
();
static
Color
silver
();
static
Color
violet
();
static
Color
apricot
();
static
Color
turquoise
();
static
Color
celestial_blue
();
static
Color
amethyst
();
};
};
class
CV_EXPORTS
Mesh3d
class
CV_EXPORTS
Mesh3d
...
@@ -180,15 +208,46 @@ inline cv::viz::Color::Color(double _gray) : Scalar(_gray, _gray, _gray) {}
...
@@ -180,15 +208,46 @@ inline cv::viz::Color::Color(double _gray) : Scalar(_gray, _gray, _gray) {}
inline
cv
::
viz
::
Color
::
Color
(
double
_blue
,
double
_green
,
double
_red
)
:
Scalar
(
_blue
,
_green
,
_red
)
{}
inline
cv
::
viz
::
Color
::
Color
(
double
_blue
,
double
_green
,
double
_red
)
:
Scalar
(
_blue
,
_green
,
_red
)
{}
inline
cv
::
viz
::
Color
::
Color
(
const
Scalar
&
color
)
:
Scalar
(
color
)
{}
inline
cv
::
viz
::
Color
::
Color
(
const
Scalar
&
color
)
:
Scalar
(
color
)
{}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
black
()
{
return
Color
(
0
,
0
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
black
()
{
return
Color
(
0
,
0
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
green
()
{
return
Color
(
0
,
255
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
green
()
{
return
Color
(
0
,
255
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
blue
()
{
return
Color
(
255
,
0
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
blue
()
{
return
Color
(
255
,
0
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
cyan
()
{
return
Color
(
255
,
255
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
cyan
()
{
return
Color
(
255
,
255
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
red
()
{
return
Color
(
0
,
0
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
red
()
{
return
Color
(
0
,
0
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
yellow
()
{
return
Color
(
0
,
255
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
yellow
()
{
return
Color
(
0
,
255
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
magenta
()
{
return
Color
(
255
,
0
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
magenta
()
{
return
Color
(
255
,
0
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
white
()
{
return
Color
(
255
,
255
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
white
()
{
return
Color
(
255
,
255
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
gray
()
{
return
Color
(
128
,
128
,
128
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
gray
()
{
return
Color
(
128
,
128
,
128
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
mlab
()
{
return
Color
(
235
,
118
,
118
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
navy
()
{
return
Color
(
0
,
0
,
128
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
olive
()
{
return
Color
(
0
,
128
,
128
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
maroon
()
{
return
Color
(
0
,
0
,
128
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
teal
()
{
return
Color
(
128
,
128
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
rose
()
{
return
Color
(
127
,
0
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
azure
()
{
return
Color
(
255
,
127
,
0
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
lime
()
{
return
Color
(
0
,
255
,
191
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
gold
()
{
return
Color
(
0
,
215
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
brown
()
{
return
Color
(
0
,
75
,
150
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
orange
()
{
return
Color
(
0
,
165
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
chartreuse
()
{
return
Color
(
0
,
255
,
127
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
orange_red
()
{
return
Color
(
0
,
69
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
purple
()
{
return
Color
(
128
,
0
,
128
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
indigo
()
{
return
Color
(
130
,
0
,
75
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
pink
()
{
return
Color
(
203
,
192
,
255
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
cherry
()
{
return
Color
(
99
,
29
,
222
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
bluberry
()
{
return
Color
(
247
,
134
,
79
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
raspberry
()
{
return
Color
(
92
,
11
,
227
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
silver
()
{
return
Color
(
192
,
192
,
192
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
violet
()
{
return
Color
(
226
,
43
,
138
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
apricot
()
{
return
Color
(
177
,
206
,
251
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
turquoise
()
{
return
Color
(
208
,
224
,
64
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
celestial_blue
()
{
return
Color
(
208
,
151
,
73
);
}
inline
cv
::
viz
::
Color
cv
::
viz
::
Color
::
amethyst
()
{
return
Color
(
204
,
102
,
153
);
}
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment