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
0a516b25
Commit
0a516b25
authored
Sep 04, 2011
by
Davis King
Browse files
Added a get_num_dimensions() method to the hog_image.
parent
2c4a4439
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
dlib/image_keypoint/hog.h
dlib/image_keypoint/hog.h
+6
-0
dlib/image_keypoint/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