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
007161f0
Commit
007161f0
authored
Jan 01, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a static const long copy of downsample so you can obtain its value
given only a poly_image type.
parent
8a2ff553
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
poly_image.h
dlib/image_keypoint/poly_image.h
+3
-2
poly_image_abstract.h
dlib/image_keypoint/poly_image_abstract.h
+6
-5
No files found.
dlib/image_keypoint/poly_image.h
View file @
007161f0
...
...
@@ -17,12 +17,13 @@ namespace dlib
// ----------------------------------------------------------------------------------------
template
<
long
d
ownsample
long
D
ownsample
>
class
poly_image
:
noncopyable
{
COMPILE_TIME_ASSERT
(
d
ownsample
>=
1
);
COMPILE_TIME_ASSERT
(
D
ownsample
>=
1
);
public
:
const
static
long
downsample
=
Downsample
;
typedef
matrix
<
double
,
0
,
1
>
descriptor_type
;
poly_image
(
...
...
dlib/image_keypoint/poly_image_abstract.h
View file @
007161f0
...
...
@@ -11,13 +11,13 @@
namespace
dlib
{
template
<
long
d
ownsample
long
D
ownsample
>
class
poly_image
:
noncopyable
{
/*!
REQUIREMENTS ON TEMPLATE PARAMETERS
-
d
ownsample >= 1
-
D
ownsample >= 1
WHAT THIS OBJECT REPRESENTS
This object is a tool for extracting local feature descriptors from an image.
...
...
@@ -27,10 +27,10 @@ namespace dlib
polynomial and then the constant term is discarded.
Additionally, the user can specify a downsampling rate. If the template argument
d
ownsample is set to 1 then feature extraction is performed at every pixel of
D
ownsample is set to 1 then feature extraction is performed at every pixel of
an input image (except for a small area around the image border). However,
if
d
ownsample is set to 2 then feature extraction is only performed at every
other pixel location. More generally, if
d
ownsample is set to N then feature
if
D
ownsample is set to 2 then feature extraction is only performed at every
other pixel location. More generally, if
D
ownsample is set to N then feature
extraction is performed only every N pixels.
THREAD SAFETY
...
...
@@ -44,6 +44,7 @@ namespace dlib
public
:
typedef
matrix
<
double
,
0
,
1
>
descriptor_type
;
const
static
long
downsample
=
Downsample
;
poly_image
(
);
...
...
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