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
3cc32d00
Commit
3cc32d00
authored
Sep 30, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a function for computing Felzenszwalb's 31 channel HOG image
representation.
parent
ab38059d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
0 deletions
+82
-0
image_transforms.h
dlib/image_transforms.h
+1
-0
fhog.h
dlib/image_transforms/fhog.h
+0
-0
fhog_abstract.h
dlib/image_transforms/fhog_abstract.h
+81
-0
No files found.
dlib/image_transforms.h
View file @
3cc32d00
...
...
@@ -16,6 +16,7 @@
#include "image_transforms/colormaps.h"
#include "image_transforms/segment_image.h"
#include "image_transforms/interpolation.h"
#include "image_transforms/fhog.h"
#endif // DLIB_IMAGE_TRANSFORMs_
dlib/image_transforms/fhog.h
0 → 100644
View file @
3cc32d00
This diff is collapsed.
Click to expand it.
dlib/image_transforms/fhog_abstract.h
0 → 100644
View file @
3cc32d00
// Copyright (C) 2013 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_fHOG_ABSTRACT_H__
#ifdef DLIB_fHOG_ABSTRACT_H__
#include "../matrix/matrix_abstract.h"
#include "../array2d/array2d_kernel_abstract.h"
#include "../array/array_kernel_abstract.h"
namespace
dlib
{
// ----------------------------------------------------------------------------------------
template
<
typename
image_type
,
typename
T
,
typename
mm1
,
typename
mm2
>
void
extract_fhog_features
(
const
image_type
&
img
,
dlib
::
array
<
array2d
<
T
,
mm1
>
,
mm2
>&
hog
,
int
bin_size
=
8
);
template
<
typename
image_type
,
typename
T
,
typename
mm
>
void
extract_fhog_features
(
const
image_type
&
img
,
array2d
<
matrix
<
T
,
31
,
1
>
,
mm
>&
hog
,
int
bin_size
=
8
);
// ----------------------------------------------------------------------------------------
inline
point
image_to_fhog
(
point
p
,
int
bin_size
);
// ----------------------------------------------------------------------------------------
inline
point
fhog_to_image
(
point
p
,
int
bin_size
);
// ----------------------------------------------------------------------------------------
template
<
typename
T
,
typename
mm1
,
typename
mm2
>
matrix
<
unsigned
char
>
draw_fhog
(
const
dlib
::
array
<
array2d
<
T
,
mm1
>
,
mm2
>&
hog
,
const
long
w
=
15
);
// ----------------------------------------------------------------------------------------
template
<
typename
T
,
typename
mm
>
matrix
<
unsigned
char
>
draw_fhog
(
const
array2d
<
matrix
<
T
,
31
,
1
>
,
mm
>&
hog
,
const
long
w
=
15
);
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_fHOG_ABSTRACT_H__
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