Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
d03bdb78
Commit
d03bdb78
authored
Sep 05, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added overload of member function set_chip_dims() and also cleaned up a few minor details.
parent
7029c66c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
random_cropper.h
dlib/image_transforms/random_cropper.h
+7
-1
random_cropper_abstract.h
dlib/image_transforms/random_cropper_abstract.h
+10
-1
No files found.
dlib/image_transforms/random_cropper.h
View file @
d03bdb78
...
...
@@ -3,6 +3,7 @@
#ifndef DLIB_RaNDOM_CROPPER_H_
#define DLIB_RaNDOM_CROPPER_H_
#include "random_cropper_abstract.h"
#include "../threads.h"
#include <mutex>
#include <vector>
...
...
@@ -28,6 +29,11 @@ namespace dlib
const
chip_dims
&
dims_
)
{
dims
=
dims_
;
}
void
set_chip_dims
(
unsigned
long
rows
,
unsigned
long
cols
)
{
set_chip_dims
(
chip_dims
(
rows
,
cols
));
}
bool
get_randomly_flip
(
)
const
{
return
randomly_flip
;
}
...
...
@@ -39,7 +45,7 @@ namespace dlib
)
const
{
return
max_rotation_degrees
;
}
void
set_max_rotation_degrees
(
double
value
)
{
max_rotation_degrees
=
value
;
}
)
{
max_rotation_degrees
=
std
::
abs
(
value
)
;
}
double
get_min_object_height
(
)
const
{
return
min_object_height
;
}
...
...
dlib/image_transforms/random_cropper_abstract.h
View file @
d03bdb78
...
...
@@ -54,6 +54,15 @@ namespace dlib
- #get_chip_dims() == dims
!*/
void
set_chip_dims
(
unsigned
long
rows
,
unsigned
long
cols
);
/*!
ensures
- #get_chip_dims() == chip_dims(rows,cols)
!*/
bool
get_randomly_flip
(
)
const
;
/*!
...
...
@@ -83,7 +92,7 @@ namespace dlib
);
/*!
ensures
- #get_max_rotation_degrees() ==
value
- #get_max_rotation_degrees() ==
std::abs(value)
!*/
double
get_min_object_height
(
...
...
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