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
a8c62a80
Commit
a8c62a80
authored
Oct 09, 2016
by
Davis King
Browse files
Minor code cleanup.
parent
ac2d2a78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dlib/image_transforms/image_pyramid.h
dlib/image_transforms/image_pyramid.h
+7
-1
No files found.
dlib/image_transforms/image_pyramid.h
View file @
a8c62a80
...
@@ -994,6 +994,12 @@ namespace dlib
...
@@ -994,6 +994,12 @@ namespace dlib
DLIB_ASSERT
(
!
is_same_object
(
img
,
out_img
));
DLIB_ASSERT
(
!
is_same_object
(
img
,
out_img
));
rects
.
clear
();
rects
.
clear
();
if
(
num_rows
(
img
)
*
num_columns
(
img
)
==
0
)
{
set_image_size
(
out_img
,
0
,
0
);
return
;
}
const
long
min_height
=
5
;
const
long
min_height
=
5
;
pyramid_type
pyr
;
pyramid_type
pyr
;
std
::
vector
<
matrix
<
rgb_pixel
>>
pyramid
;
std
::
vector
<
matrix
<
rgb_pixel
>>
pyramid
;
...
@@ -1032,7 +1038,7 @@ namespace dlib
...
@@ -1032,7 +1038,7 @@ namespace dlib
}
}
height
-=
padding
;
// don't add unnecessary padding to the very right side.
height
-=
padding
;
// don't add unnecessary padding to the very right side.
ou
t_im
g
.
set
_size
(
height
,
img
.
nc
());
se
t_im
age
_size
(
out_img
,
height
,
img
.
nc
());
assign_all_pixels
(
out_img
,
0
);
assign_all_pixels
(
out_img
,
0
);
long
y
=
0
;
long
y
=
0
;
...
...
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