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
809c9fb2
"git@developer.sourcefind.cn:OpenDAS/fairseq.git" did not exist on "2e507d3cb43073a5656c7d3e74deef0b6a3fec04"
Commit
809c9fb2
authored
Sep 16, 2016
by
Davis King
Browse files
Made the background crops output by the random_cropper a little more expansive.
parent
59d7df9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/image_transforms/random_cropper.h
dlib/image_transforms/random_cropper.h
+2
-2
No files found.
dlib/image_transforms/random_cropper.h
View file @
809c9fb2
...
...
@@ -237,8 +237,8 @@ namespace dlib
)
{
// figure out what rectangle we want to crop from the image
double
mins
=
0.
466666666
,
maxs
=
0.
87
5
;
auto
scale
=
mins
+
rnd
.
get_
random_double
()
*
(
maxs
-
min
s
);
double
mins
=
0.
1
,
maxs
=
0.
9
5
;
auto
scale
=
rnd
.
get_
double_in_range
(
mins
,
max
s
);
auto
size
=
scale
*
std
::
min
(
img
.
nr
(),
img
.
nc
());
rectangle
rect
(
size
,
size
);
// randomly shift the box around
...
...
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