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
124e2062
Commit
124e2062
authored
Jan 21, 2012
by
Davis King
Browse files
Cleaned up the interface for normalization.
parent
1dffd4cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
dlib/image_keypoint/poly_image.h
dlib/image_keypoint/poly_image.h
+4
-2
dlib/image_keypoint/poly_image_abstract.h
dlib/image_keypoint/poly_image_abstract.h
+6
-3
No files found.
dlib/image_keypoint/poly_image.h
View file @
124e2062
...
@@ -28,10 +28,12 @@ namespace dlib
...
@@ -28,10 +28,12 @@ namespace dlib
poly_image
(
poly_image
(
long
order_
,
long
order_
,
long
window_size_
long
window_size_
,
bool
normalization
=
true
)
)
{
{
setup
(
order_
,
window_size_
);
setup
(
order_
,
window_size_
);
set_uses_normalization
(
normalization
);
}
}
poly_image
(
poly_image
(
...
@@ -93,7 +95,7 @@ namespace dlib
...
@@ -93,7 +95,7 @@ namespace dlib
bool
uses_normalization
(
bool
uses_normalization
(
)
const
{
return
normalize
;
}
)
const
{
return
normalize
;
}
void
set_normalization
(
void
set_
uses_
normalization
(
bool
normalization
bool
normalization
)
)
{
{
...
...
dlib/image_keypoint/poly_image_abstract.h
View file @
124e2062
...
@@ -53,11 +53,13 @@ namespace dlib
...
@@ -53,11 +53,13 @@ namespace dlib
- #get_order() == 3
- #get_order() == 3
- #get_window_size() == 13
- #get_window_size() == 13
- #size() == 0
- #size() == 0
- #uses_normalization() == true
!*/
!*/
poly_image
(
poly_image
(
long
order
,
long
order
,
long
window_size
long
window_size
,
bool
normalization
=
true
);
);
/*!
/*!
requires
requires
...
@@ -67,6 +69,7 @@ namespace dlib
...
@@ -67,6 +69,7 @@ namespace dlib
- #get_order() == order
- #get_order() == order
- #get_window_size() == window_size
- #get_window_size() == window_size
- #size() == 0
- #size() == 0
- #uses_normalization() == normalization
!*/
!*/
void
clear
(
void
clear
(
...
@@ -113,12 +116,12 @@ namespace dlib
...
@@ -113,12 +116,12 @@ namespace dlib
and false otherwise.
and false otherwise.
!*/
!*/
void
set_normalization
(
void
set_
uses_
normalization
(
bool
normalization
bool
normalization
);
);
/*!
/*!
ensures
ensures
- uses_normalization() == normalization
-
#
uses_normalization() == normalization
!*/
!*/
void
copy_configuration
(
void
copy_configuration
(
...
...
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