mirror of https://github.com/davisking/dlib.git
Added an overload of overlaps_any_box() that uses a default test_box_overlap
object.
This commit is contained in:
parent
11742add41
commit
4b4255d1f5
|
@ -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)
|
||||
!*/
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue