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
96f3016a
Commit
96f3016a
authored
Dec 27, 2014
by
Davis King
Browse files
The nu parameter of the shape_predictor must be in the range (0,1].
I changed the spec to reflect this.
parent
37af35b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dlib/image_processing/shape_predictor.h
dlib/image_processing/shape_predictor.h
+1
-1
dlib/image_processing/shape_predictor_abstract.h
dlib/image_processing/shape_predictor_abstract.h
+1
-1
No files found.
dlib/image_processing/shape_predictor.h
View file @
96f3016a
...
@@ -461,7 +461,7 @@ namespace dlib
...
@@ -461,7 +461,7 @@ namespace dlib
double
nu
double
nu
)
)
{
{
DLIB_CASSERT
(
nu
>
0
,
DLIB_CASSERT
(
0
<
nu
<=
1
,
"
\t
void shape_predictor_trainer::set_nu()"
"
\t
void shape_predictor_trainer::set_nu()"
<<
"
\n\t
Invalid inputs were given to this function. "
<<
"
\n\t
Invalid inputs were given to this function. "
<<
"
\n\t
nu: "
<<
nu
<<
"
\n\t
nu: "
<<
nu
...
...
dlib/image_processing/shape_predictor_abstract.h
View file @
96f3016a
...
@@ -185,7 +185,7 @@ namespace dlib
...
@@ -185,7 +185,7 @@ namespace dlib
);
);
/*!
/*!
requires
requires
-
nu > 0
-
0 < nu <= 1
ensures
ensures
- #get_nu() == nu
- #get_nu() == nu
!*/
!*/
...
...
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