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
98602c33
Commit
98602c33
authored
Jul 18, 2014
by
Davis King
Browse files
Fixed a color space handling bug in resize_image()
parent
d75e747a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/image_transforms/interpolation.h
dlib/image_transforms/interpolation.h
+1
-1
No files found.
dlib/image_transforms/interpolation.h
View file @
98602c33
...
@@ -571,7 +571,7 @@ namespace dlib
...
@@ -571,7 +571,7 @@ namespace dlib
const
long
bottom
=
std
::
min
(
top
+
1
,
in_img
.
nr
()
-
1
);
const
long
bottom
=
std
::
min
(
top
+
1
,
in_img
.
nr
()
-
1
);
const
double
tb_frac
=
y
-
top
;
const
double
tb_frac
=
y
-
top
;
double
x
=
-
x_scale
;
double
x
=
-
x_scale
;
if
(
!
pixel_traits
<
U
>::
rgb
)
if
(
pixel_traits
<
U
>::
grayscale
)
{
{
for
(
long
c
=
0
;
c
<
out_img
.
nc
();
++
c
)
for
(
long
c
=
0
;
c
<
out_img
.
nc
();
++
c
)
{
{
...
...
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