Commit 9b22f916 authored by Davis King's avatar Davis King

Added another overload of add_overlay(), this one doesn't require a pixel type

and just makes the overlay red.
parent 7f2e28c4
...@@ -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
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment