Commit 4b4255d1 authored by Davis King's avatar Davis King

Added an overload of overlaps_any_box() that uses a default test_box_overlap

object.
parent 11742add
......@@ -143,6 +143,16 @@ namespace dlib
return false;
}
// ----------------------------------------------------------------------------------------
inline bool overlaps_any_box (
const std::vector<rectangle>& rects,
const rectangle& rect
)
{
return overlaps_any_box(test_box_overlap(),rects,rect);
}
// ----------------------------------------------------------------------------------------
}
......
......@@ -130,6 +130,17 @@ namespace dlib
is determined based on the given tester object.
!*/
// ----------------------------------------------------------------------------------------
bool overlaps_any_box (
const std::vector<rectangle>& rects,
const rectangle& rect
);
/*!
ensures
- returns overlaps_any_box(test_box_overlap(), rects, rect)
!*/
// ----------------------------------------------------------------------------------------
}
......
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