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
9e41955c
Commit
9e41955c
authored
Aug 11, 2013
by
Davis King
Browse files
Minor change to avoid doing unnecessary computations in certain cases.
parent
d9f38e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
dlib/image_processing/remove_unobtainable_rectangles.h
dlib/image_processing/remove_unobtainable_rectangles.h
+6
-1
No files found.
dlib/image_processing/remove_unobtainable_rectangles.h
View file @
9e41955c
...
@@ -169,9 +169,14 @@ namespace dlib
...
@@ -169,9 +169,14 @@ namespace dlib
for
(
unsigned
long
k
=
0
;
k
<
images
.
size
();
++
k
)
for
(
unsigned
long
k
=
0
;
k
<
images
.
size
();
++
k
)
{
{
std
::
vector
<
rectangle
>
objs
=
object_locations
[
k
];
// Don't even bother computing the candidate rectangles if there aren't any
// object locations for this image since there isn't anything to do anyway.
if
(
objs
.
size
()
==
0
)
continue
;
bg
(
images
[
k
],
rects
);
bg
(
images
[
k
],
rects
);
std
::
vector
<
rectangle
>
objs
=
object_locations
[
k
];
// First remove things that don't have any matches with the candidate object
// First remove things that don't have any matches with the candidate object
// locations.
// locations.
...
...
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