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
0a516b25
Commit
0a516b25
authored
Sep 04, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a get_num_dimensions() method to the hog_image.
parent
2c4a4439
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
hog.h
dlib/image_keypoint/hog.h
+6
-0
hog_abstract.h
dlib/image_keypoint/hog_abstract.h
+10
-1
No files found.
dlib/image_keypoint/hog.h
View file @
0a516b25
...
...
@@ -91,6 +91,12 @@ namespace dlib
inline
long
nc
(
)
const
{
return
num_block_cols
;
}
long
get_num_dimensions
(
)
const
{
return
block_size
*
block_size
*
num_orientation_bins
;
}
inline
const
descriptor_type
&
operator
()
(
long
row
,
long
col
...
...
dlib/image_keypoint/hog_abstract.h
View file @
0a516b25
...
...
@@ -168,6 +168,15 @@ namespace dlib
- returns the number of columns in this HOG image
!*/
long
get_num_dimensions
(
)
const
;
/*!
ensures
- returns the number of dimensions in the feature vectors generated by
this object.
- In particular, returns the value block_size*block_size*num_orientation_bins
!*/
inline
const
descriptor_type
&
operator
()
(
long
row
,
long
col
...
...
@@ -180,7 +189,7 @@ namespace dlib
- returns the descriptor for the HOG block at the given row and column. This descriptor
will include information from a window that is located at get_block_rect(row,col) in
the original image given to load().
- The returned descriptor vector will have
block_size*block_size*num_orientation_bins
elements.
- The returned descriptor vector will have
get_num_dimensions()
elements.
!*/
const
rectangle
get_block_rect
(
...
...
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