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
4b4255d1
Commit
4b4255d1
authored
Dec 11, 2013
by
Davis King
Browse files
Added an overload of overlaps_any_box() that uses a default test_box_overlap
object.
parent
11742add
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
dlib/image_processing/box_overlap_testing.h
dlib/image_processing/box_overlap_testing.h
+10
-0
dlib/image_processing/box_overlap_testing_abstract.h
dlib/image_processing/box_overlap_testing_abstract.h
+11
-0
No files found.
dlib/image_processing/box_overlap_testing.h
View file @
4b4255d1
...
@@ -143,6 +143,16 @@ namespace dlib
...
@@ -143,6 +143,16 @@ namespace dlib
return
false
;
return
false
;
}
}
// ----------------------------------------------------------------------------------------
inline
bool
overlaps_any_box
(
const
std
::
vector
<
rectangle
>&
rects
,
const
rectangle
&
rect
)
{
return
overlaps_any_box
(
test_box_overlap
(),
rects
,
rect
);
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
}
}
...
...
dlib/image_processing/box_overlap_testing_abstract.h
View file @
4b4255d1
...
@@ -130,6 +130,17 @@ namespace dlib
...
@@ -130,6 +130,17 @@ namespace dlib
is determined based on the given tester object.
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)
!*/
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
}
}
...
...
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