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
70363686
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "dd25ef567927bdd7d29fb1862eaf447bc4716473"
Commit
70363686
authored
Sep 04, 2016
by
Davis King
Browse files
Fixed error in pyramid_rate() formula.
parent
c324a65e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dlib/image_transforms/image_pyramid.h
dlib/image_transforms/image_pyramid.h
+1
-1
dlib/image_transforms/image_pyramid_abstract.h
dlib/image_transforms/image_pyramid_abstract.h
+1
-1
No files found.
dlib/image_transforms/image_pyramid.h
View file @
70363686
...
@@ -974,7 +974,7 @@ namespace dlib
...
@@ -974,7 +974,7 @@ namespace dlib
template
<
unsigned
int
N
>
template
<
unsigned
int
N
>
double
pyramid_rate
(
const
pyramid_down
<
N
>&
)
double
pyramid_rate
(
const
pyramid_down
<
N
>&
)
{
{
return
N
/
(
N
+
1.0
);
return
(
N
-
1.0
)
/
N
;
}
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
dlib/image_transforms/image_pyramid_abstract.h
View file @
70363686
...
@@ -205,7 +205,7 @@ namespace dlib
...
@@ -205,7 +205,7 @@ namespace dlib
);
);
/*!
/*!
ensures
ensures
- returns
N/
(N
+
1.0)
- returns (N
-
1.0)
/N
!*/
!*/
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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