Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
9b22f916
Commit
9b22f916
authored
Feb 03, 2015
by
Davis King
Browse files
Added another overload of add_overlay(), this one doesn't require a pixel type
and just makes the overlay red.
parent
7f2e28c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
dlib/gui_widgets/widgets.h
dlib/gui_widgets/widgets.h
+6
-0
dlib/gui_widgets/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
...
@@ -3679,6 +3679,9 @@ namespace dlib
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
)
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
)
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
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
>
template
<
typename
pixel_type
>
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
,
const
std
::
string
&
l
)
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
,
const
std
::
string
&
l
)
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
p
,
l
));
}
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
p
,
l
));
}
...
@@ -3694,6 +3697,9 @@ namespace dlib
...
@@ -3694,6 +3697,9 @@ namespace dlib
add_overlay
(
temp
);
add_overlay
(
temp
);
}
}
void
add_overlay
(
const
std
::
vector
<
rectangle
>&
r
)
{
add_overlay
(
r
,
rgb_pixel
(
255
,
0
,
0
));
}
void
add_overlay
(
void
add_overlay
(
const
full_object_detection
&
object
,
const
full_object_detection
&
object
,
const
std
::
vector
<
std
::
string
>&
part_names
const
std
::
vector
<
std
::
string
>&
part_names
...
...
dlib/gui_widgets/widgets_abstract.h
View file @
9b22f916
...
@@ -2917,7 +2917,7 @@ namespace dlib
...
@@ -2917,7 +2917,7 @@ namespace dlib
template
<
typename
pixel_type
>
template
<
typename
pixel_type
>
void
add_overlay
(
void
add_overlay
(
const
rectangle
&
r
,
const
rectangle
&
r
,
pixel_type
p
pixel_type
p
=
rgb_pixel
(
255
,
0
,
0
)
);
);
/*!
/*!
ensures
ensures
...
@@ -2938,7 +2938,7 @@ namespace dlib
...
@@ -2938,7 +2938,7 @@ namespace dlib
template
<
typename
pixel_type
>
template
<
typename
pixel_type
>
void
add_overlay
(
void
add_overlay
(
const
std
::
vector
<
rectangle
>&
r
,
const
std
::
vector
<
rectangle
>&
r
,
pixel_type
p
pixel_type
p
=
rgb_pixel
(
255
,
0
,
0
)
);
);
/*!
/*!
ensures
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