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
dc068968
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "ffb15744b583e85e4d3f479784a30f33f6c799aa"
Commit
dc068968
authored
Oct 05, 2013
by
Davis King
Browse files
Made pyramid_down<1> equivalent to pyramid_disable.
parent
cb0bbee6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
dlib/image_transforms/image_pyramid.h
dlib/image_transforms/image_pyramid.h
+4
-1
dlib/image_transforms/image_pyramid_abstract.h
dlib/image_transforms/image_pyramid_abstract.h
+3
-1
No files found.
dlib/image_transforms/image_pyramid.h
View file @
dc068968
...
...
@@ -782,7 +782,7 @@ namespace dlib
{
public:
COMPILE_TIME_ASSERT
(
N
>
1
);
COMPILE_TIME_ASSERT
(
N
>
0
);
template
<
typename
T
>
vector
<
double
,
2
>
point_down
(
...
...
@@ -888,6 +888,9 @@ namespace dlib
}
};
template
<
>
class
pyramid_down
<
1
>
:
public
pyramid_disable
{};
template
<
>
class
pyramid_down
<
2
>
:
public
dlib
::
impl
::
pyramid_down_2_1
{};
...
...
dlib/image_transforms/image_pyramid_abstract.h
View file @
dc068968
...
...
@@ -17,12 +17,14 @@ namespace dlib
{
/*!
REQUIREMENTS ON N
N >
1
N >
0
WHAT THIS OBJECT REPRESENTS
This is a simple functor to help create image pyramids. In particular, it
downsamples images at a ratio of N to N-1.
Note that setting N to 1 means that this object functions like
pyramid_disable (defined at the bottom of this file).
WARNING, when mapping rectangles from one layer of a pyramid
to another you might end up with rectangles which extend slightly
...
...
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