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
f6651c2c
Commit
f6651c2c
authored
Apr 28, 2018
by
Davis King
Browse files
Fixed jitter_image() not following the generic image interface.
parent
58888fcb
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 @
f6651c2c
...
...
@@ -2178,7 +2178,7 @@ namespace dlib
const
auto
crop_rect
=
centered_rect
(
center
(
rect
)
+
rand_translate
,
box_size
,
box_size
);
const
double
angle
=
rnd
.
get_double_in_range
(
-
max_rotation_degrees
,
max_rotation_degrees
)
*
pi
/
180
;
image_type
crop
;
extract_image_chip
(
img
,
chip_details
(
crop_rect
,
chip_dims
(
img
.
nr
(),
img
.
nc
(
)),
angle
),
crop
);
extract_image_chip
(
img
,
chip_details
(
crop_rect
,
chip_dims
(
num_rows
(
img
),
num_columns
(
img
)),
angle
),
crop
);
if
(
rnd
.
get_random_double
()
>
0.5
)
flip_image_left_right
(
crop
);
...
...
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