Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
9b22f916
Commit
9b22f916
authored
Feb 03, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added another overload of add_overlay(), this one doesn't require a pixel type
and just makes the overlay red.
parent
7f2e28c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
widgets.h
dlib/gui_widgets/widgets.h
+6
-0
widgets_abstract.h
dlib/gui_widgets/widgets_abstract.h
+2
-2
No files found.
dlib/gui_widgets/widgets.h
View file @
9b22f916
...
...
@@ -3679,6 +3679,9 @@ namespace dlib
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
)
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
p
));
}
void
add_overlay
(
const
rectangle
&
r
)
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
rgb_pixel
(
255
,
0
,
0
)));
}
template
<
typename
pixel_type
>
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
,
const
std
::
string
&
l
)
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
p
,
l
));
}
...
...
@@ -3694,6 +3697,9 @@ namespace dlib
add_overlay
(
temp
);
}
void
add_overlay
(
const
std
::
vector
<
rectangle
>&
r
)
{
add_overlay
(
r
,
rgb_pixel
(
255
,
0
,
0
));
}
void
add_overlay
(
const
full_object_detection
&
object
,
const
std
::
vector
<
std
::
string
>&
part_names
...
...
dlib/gui_widgets/widgets_abstract.h
View file @
9b22f916
...
...
@@ -2917,7 +2917,7 @@ namespace dlib
template
<
typename
pixel_type
>
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
pixel_type
p
=
rgb_pixel
(
255
,
0
,
0
)
);
/*!
ensures
...
...
@@ -2938,7 +2938,7 @@ namespace dlib
template
<
typename
pixel_type
>
void
add_overlay
(
const
std
::
vector
<
rectangle
>&
r
,
pixel_type
p
pixel_type
p
=
rgb_pixel
(
255
,
0
,
0
)
);
/*!
ensures
...
...
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