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

object.
This commit is contained in:
Davis King 2013-12-11 22:42:55 -05:00
parent 11742add41
commit 4b4255d1f5
2 changed files with 21 additions and 0 deletions

View File

@ -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);
}
// ----------------------------------------------------------------------------------------
}

View File

@ -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)
!*/
// ----------------------------------------------------------------------------------------
}