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
c9339b79
Commit
c9339b79
authored
Oct 01, 2013
by
Davis King
Browse files
Fixed grammar and added minor clarifications
parent
38ec659b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
examples/fhog_ex.cpp
examples/fhog_ex.cpp
+5
-5
No files found.
examples/fhog_ex.cpp
View file @
c9339b79
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
P. Felzenszwalb, R. Girshick, D. McAllester, D. Ramanan
P. Felzenszwalb, R. Girshick, D. McAllester, D. Ramanan
IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 32, No. 9, Sep. 2010
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
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)
...
@@ -55,7 +55,7 @@ int main(int argc, char** argv)
cout
<<
"hog image has "
<<
hog
.
nr
()
<<
" rows and "
<<
hog
.
nc
()
<<
" columns."
<<
endl
;
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
win
(
img
);
image_window
winhog
(
draw_fhog
(
hog
));
image_window
winhog
(
draw_fhog
(
hog
));
...
@@ -71,12 +71,12 @@ int main(int argc, char** argv)
...
@@ -71,12 +71,12 @@ int main(int argc, char** argv)
cout
<<
"FHOG features at this point: "
<<
trans
(
hog
[
hp
.
y
()][
hp
.
x
()])
<<
endl
;
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.
// rather than the explicit vector (i.e. interlaced) representation used above.
dlib
::
array
<
array2d
<
float
>
>
planar_hog
;
dlib
::
array
<
array2d
<
float
>
>
planar_hog
;
extract_fhog_features
(
img
,
planar_hog
);
extract_fhog_features
(
img
,
planar_hog
);
// Now we have an array of 31 float valued images, each representing one of
the
// Now we have an array of 31 float valued image
plane
s, each representing one of
// dimensions of the HOG feature vector.
//
the
dimensions of the HOG feature vector.
}
}
catch
(
exception
&
e
)
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