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
c9339b79
Commit
c9339b79
authored
Oct 02, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed grammar and added minor clarifications
parent
38ec659b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fhog_ex.cpp
examples/fhog_ex.cpp
+5
-5
No files found.
examples/fhog_ex.cpp
View file @
c9339b79
...
...
@@ -11,7 +11,7 @@
P. Felzenszwalb, R. Girshick, D. McAllester, D. Ramanan
IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 32, No. 9, Sep. 2010
This means that it takes an input image and outputs Felzenszwalb's
31 dimensional version of HOG features. We show it
'
s use below.
31 dimensional version of HOG features. We show its use below.
*/
...
...
@@ -55,7 +55,7 @@ int main(int argc, char** argv)
cout
<<
"hog image has "
<<
hog
.
nr
()
<<
" rows and "
<<
hog
.
nc
()
<<
" columns."
<<
endl
;
// Lets see what the image and
also the
FHOG features look like.
// Lets see what the image and FHOG features look like.
image_window
win
(
img
);
image_window
winhog
(
draw_fhog
(
hog
));
...
...
@@ -71,12 +71,12 @@ int main(int argc, char** argv)
cout
<<
"FHOG features at this point: "
<<
trans
(
hog
[
hp
.
y
()][
hp
.
x
()])
<<
endl
;
}
// Finally, sometimes you want to get a
"planar"
representation of the HOG features
// Finally, sometimes you want to get a
planar
representation of the HOG features
// rather than the explicit vector (i.e. interlaced) representation used above.
dlib
::
array
<
array2d
<
float
>
>
planar_hog
;
extract_fhog_features
(
img
,
planar_hog
);
// Now we have an array of 31 float valued image
s, each representing one of the
// dimensions of the HOG feature vector.
// Now we have an array of 31 float valued image
planes, each representing one of
//
the
dimensions of the HOG feature vector.
}
catch
(
exception
&
e
)
{
...
...
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