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
007161f0
Commit
007161f0
authored
Jan 01, 2012
by
Davis King
Browse files
Added a static const long copy of downsample so you can obtain its value
given only a poly_image type.
parent
8a2ff553
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
dlib/image_keypoint/poly_image.h
dlib/image_keypoint/poly_image.h
+3
-2
dlib/image_keypoint/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