Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
dc068968
Commit
dc068968
authored
Oct 05, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made pyramid_down<1> equivalent to pyramid_disable.
parent
cb0bbee6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
image_pyramid.h
dlib/image_transforms/image_pyramid.h
+4
-1
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