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
0438ae5d
Commit
0438ae5d
authored
Sep 02, 2014
by
Davis King
Browse files
Added an overload of render_face_detections() that takes just a single
full_object_detection.
parent
7b2839a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
dlib/image_processing/render_face_detections.h
dlib/image_processing/render_face_detections.h
+14
-0
dlib/image_processing/render_face_detections_abstract.h
dlib/image_processing/render_face_detections_abstract.h
+19
-0
No files found.
dlib/image_processing/render_face_detections.h
View file @
0438ae5d
...
...
@@ -58,6 +58,20 @@ namespace dlib
return
lines
;
}
// ----------------------------------------------------------------------------------------
inline
std
::
vector
<
image_window
::
overlay_line
>
render_face_detections
(
const
full_object_detection
&
det
,
const
rgb_pixel
color
=
rgb_pixel
(
0
,
255
,
0
)
)
{
std
::
vector
<
full_object_detection
>
dets
;
dets
.
push_back
(
det
);
return
render_face_detections
(
dets
);
}
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_RENDER_FACE_DeTECTIONS_H_
...
...
dlib/image_processing/render_face_detections_abstract.h
View file @
0438ae5d
...
...
@@ -9,6 +9,8 @@
namespace
dlib
{
// ----------------------------------------------------------------------------------------
inline
std
::
vector
<
image_window
::
overlay_line
>
render_face_detections
(
const
std
::
vector
<
full_object_detection
>&
dets
,
const
rgb_pixel
color
=
rgb_pixel
(
0
,
255
,
0
)
...
...
@@ -26,6 +28,23 @@ namespace dlib
necessary to render a face detection from dets.
!*/
// ----------------------------------------------------------------------------------------
inline
std
::
vector
<
image_window
::
overlay_line
>
render_face_detections
(
const
full_object_detection
&
det
,
const
rgb_pixel
color
=
rgb_pixel
(
0
,
255
,
0
)
);
/*!
requires
- det.num_parts() == 68
ensures
- This function is identical to the above render_face_detections() routine
except that it takes just a single full_object_detection instead of a
std::vector of them.
!*/
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_RENDER_FACE_DeTECTIONS_ABSTRACT_H_
...
...
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