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
aafde206
"vscode:/vscode.git/clone" did not exist on "3e471ade23dee502edcc1e715c2ceae88d047624"
Commit
aafde206
authored
Aug 03, 2017
by
Davis King
Browse files
Added operator<< for random_cropper.
parent
a7d1dc47
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
dlib/image_transforms/random_cropper.h
dlib/image_transforms/random_cropper.h
+22
-0
dlib/image_transforms/random_cropper_abstract.h
dlib/image_transforms/random_cropper_abstract.h
+13
-0
No files found.
dlib/image_transforms/random_cropper.h
View file @
aafde206
...
...
@@ -286,6 +286,28 @@ namespace dlib
};
// ----------------------------------------------------------------------------------------
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
random_cropper
&
item
)
{
using
std
::
endl
;
out
<<
"random_cropper details: "
<<
endl
;
out
<<
" chip_dims.rows: "
<<
item
.
get_chip_dims
().
rows
<<
endl
;
out
<<
" chip_dims.cols: "
<<
item
.
get_chip_dims
().
cols
<<
endl
;
out
<<
" randomly_flip: "
<<
std
::
boolalpha
<<
item
.
get_randomly_flip
()
<<
endl
;
out
<<
" max_rotation_degrees: "
<<
item
.
get_max_rotation_degrees
()
<<
endl
;
out
<<
" min_object_size: "
<<
item
.
get_min_object_size
()
<<
endl
;
out
<<
" max_object_size: "
<<
item
.
get_max_object_size
()
<<
endl
;
out
<<
" background_crops_fraction: "
<<
item
.
get_background_crops_fraction
()
<<
endl
;
out
<<
" translate_amount: "
<<
item
.
get_translate_amount
()
<<
endl
;
return
out
;
}
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_RaNDOM_CROPPER_H_
...
...
dlib/image_transforms/random_cropper_abstract.h
View file @
aafde206
...
...
@@ -297,6 +297,19 @@ namespace dlib
!*/
};
// ----------------------------------------------------------------------------------------
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
random_cropper
&
item
);
/*!
ensures
- Prints the state of all the parameters of item to out.
!*/
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_RaNDOM_CROPPER_ABSTRACT_H_
...
...
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