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
5b3859a1
Commit
5b3859a1
authored
Apr 02, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the binned_vector_feature_image.
parent
7fd5d6bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
12 deletions
+30
-12
image_keypoint.h
dlib/image_keypoint.h
+1
-0
binned_vector_feature_image.h
dlib/image_keypoint/binned_vector_feature_image.h
+0
-0
binned_vector_feature_image_abstract.h
dlib/image_keypoint/binned_vector_feature_image_abstract.h
+0
-0
setup_hashed_features.h
dlib/image_processing/setup_hashed_features.h
+12
-8
setup_hashed_features_abstract.h
dlib/image_processing/setup_hashed_features_abstract.h
+17
-4
No files found.
dlib/image_keypoint.h
View file @
5b3859a1
...
...
@@ -10,6 +10,7 @@
#include "image_keypoint/fine_hog_image.h"
#include "image_keypoint/hashed_feature_image.h"
#include "image_keypoint/nearest_neighbor_feature_image.h"
#include "image_keypoint/binned_vector_feature_image.h"
#endif // DLIB_IMAGE_KEYPOINt_H_
dlib/image_keypoint/binned_vector_feature_image.h
0 → 100644
View file @
5b3859a1
This diff is collapsed.
Click to expand it.
dlib/image_keypoint/binned_vector_feature_image_abstract.h
0 → 100644
View file @
5b3859a1
This diff is collapsed.
Click to expand it.
dlib/image_processing/setup_hashed_features.h
View file @
5b3859a1
...
...
@@ -33,10 +33,11 @@ namespace dlib
template
<
typename
image_array
,
typename
pyramid
,
typename
feature_extractor
typename
feature_extractor
,
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
>
void
setup_hashed_features
(
scan_image_pyramid
<
pyramid
,
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
scan_image_pyramid
<
pyramid
,
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
const
image_array
&
images
,
const
feature_extractor
&
fe
,
int
bits
,
...
...
@@ -64,7 +65,7 @@ namespace dlib
projection_hash
phash
=
create_random_projection_hash
(
samps
,
bits
);
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
hfe
;
feature_image
<
feature_extractor
,
projection_hash
>
hfe
;
hfe
.
set_hash
(
phash
);
hfe
.
copy_configuration
(
fe
);
scanner
.
copy_configuration
(
hfe
);
...
...
@@ -75,10 +76,11 @@ namespace dlib
template
<
typename
image_array
,
typename
pyramid
,
typename
feature_extractor
typename
feature_extractor
,
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
>
void
setup_hashed_features
(
scan_image_pyramid
<
pyramid
,
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
scan_image_pyramid
<
pyramid
,
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
const
image_array
&
images
,
int
bits
,
unsigned
long
num_samples
=
200000
...
...
@@ -108,10 +110,11 @@ namespace dlib
template
<
typename
image_array
,
typename
feature_extractor
,
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
,
typename
box_generator
>
void
setup_hashed_features
(
scan_image_boxes
<
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
scan_image_boxes
<
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
const
image_array
&
images
,
const
feature_extractor
&
fe
,
int
bits
,
...
...
@@ -139,7 +142,7 @@ namespace dlib
projection_hash
phash
=
create_random_projection_hash
(
samps
,
bits
);
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
hfe
;
feature_image
<
feature_extractor
,
projection_hash
>
hfe
;
hfe
.
set_hash
(
phash
);
hfe
.
copy_configuration
(
fe
);
scanner
.
copy_configuration
(
hfe
);
...
...
@@ -150,10 +153,11 @@ namespace dlib
template
<
typename
image_array
,
typename
feature_extractor
,
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
,
typename
box_generator
>
void
setup_hashed_features
(
scan_image_boxes
<
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
scan_image_boxes
<
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
const
image_array
&
images
,
int
bits
,
unsigned
long
num_samples
=
200000
...
...
dlib/image_processing/setup_hashed_features_abstract.h
View file @
5b3859a1
...
...
@@ -7,6 +7,7 @@
#include "scan_image_boxes_abstract.h"
#include "../lsh/projection_hash_abstract.h"
#include "../image_keypoint/hashed_feature_image_abstract.h"
#include "../image_keypoint/binned_vector_feature_image_abstract.h"
namespace
dlib
{
...
...
@@ -27,9 +28,10 @@ namespace dlib
typename
image_array
,
typename
pyramid
,
typename
feature_extractor
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
>
void
setup_hashed_features
(
scan_image_pyramid
<
pyramid
,
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
scan_image_pyramid
<
pyramid
,
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
const
image_array
&
images
,
const
feature_extractor
&
fe
,
int
bits
,
...
...
@@ -42,6 +44,8 @@ namespace dlib
- images.size() > 0
- it must be valid to pass images[0] into scanner.load().
(also, image_array must be an implementation of dlib/array/array_kernel_abstract.h)
- feature_image == must be either hashed_feature_image, binned_vector_feature_image,
or a type with a compatible interface.
ensures
- Creates a projection_hash suitable for hashing the feature vectors produced by
fe and then configures scanner to use this hash function.
...
...
@@ -62,9 +66,10 @@ namespace dlib
typename
image_array
,
typename
pyramid
,
typename
feature_extractor
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
>
void
setup_hashed_features
(
scan_image_pyramid
<
pyramid
,
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
scan_image_pyramid
<
pyramid
,
feature_image
<
feature_extractor
,
projection_hash
>
>&
scanner
,
const
image_array
&
images
,
int
bits
,
unsigned
long
num_samples
=
200000
...
...
@@ -76,6 +81,8 @@ namespace dlib
- images.size() > 0
- it must be valid to pass images[0] into scanner.load().
(also, image_array must be an implementation of dlib/array/array_kernel_abstract.h)
- feature_image == must be either hashed_feature_image, binned_vector_feature_image,
or a type with a compatible interface.
ensures
- performs: setup_hashed_features(scanner, images, feature_extractor(), bits, num_samples)
throws
...
...
@@ -93,10 +100,11 @@ namespace dlib
template
<
typename
image_array
,
typename
feature_extractor
,
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
typename
box_generator
>
void
setup_hashed_features
(
scan_image_boxes
<
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
scan_image_boxes
<
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
const
image_array
&
images
,
const
feature_extractor
&
fe
,
int
bits
,
...
...
@@ -109,6 +117,8 @@ namespace dlib
- images.size() > 0
- it must be valid to pass images[0] into scanner.load().
(also, image_array must be an implementation of dlib/array/array_kernel_abstract.h)
- feature_image == must be either hashed_feature_image, binned_vector_feature_image,
or a type with a compatible interface.
ensures
- Creates a projection_hash suitable for hashing the feature vectors produced by
fe and then configures scanner to use this hash function.
...
...
@@ -128,10 +138,11 @@ namespace dlib
template
<
typename
image_array
,
typename
feature_extractor
,
template
<
typename
feature_extractor
,
typename
hash
>
class
feature_image
typename
box_generator
>
void
setup_hashed_features
(
scan_image_boxes
<
hashed_
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
scan_image_boxes
<
feature_image
<
feature_extractor
,
projection_hash
>
,
box_generator
>&
scanner
,
const
image_array
&
images
,
int
bits
,
unsigned
long
num_samples
=
200000
...
...
@@ -143,6 +154,8 @@ namespace dlib
- images.size() > 0
- it must be valid to pass images[0] into scanner.load().
(also, image_array must be an implementation of dlib/array/array_kernel_abstract.h)
- feature_image == must be either hashed_feature_image, binned_vector_feature_image,
or a type with a compatible interface.
ensures
- performs: setup_hashed_features(scanner, images, feature_extractor(), bits, num_samples)
throws
...
...
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