Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
c373722a
Commit
c373722a
authored
Nov 24, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #448 from stoneyang:stone_port
parents
745d8194
4bf3832b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dpm_feature.cpp
modules/dpm/src/dpm_feature.cpp
+3
-2
No files found.
modules/dpm/src/dpm_feature.cpp
View file @
c373722a
...
@@ -47,6 +47,7 @@ namespace cv
...
@@ -47,6 +47,7 @@ namespace cv
{
{
namespace
dpm
namespace
dpm
{
{
Feature
::
Feature
()
Feature
::
Feature
()
{
{
}
}
...
@@ -196,8 +197,8 @@ void Feature::computeHOG32D(const Mat &imageM, Mat &featM, const int sbin, const
...
@@ -196,8 +197,8 @@ void Feature::computeHOG32D(const Mat &imageM, Mat &featM, const int sbin, const
// image size
// image size
const
Size
imageSize
=
imageM
.
size
();
const
Size
imageSize
=
imageM
.
size
();
// block size
// block size
int
bW
=
(
int
)
r
ound
((
double
)
imageSize
.
width
/
(
double
)
sbin
);
int
bW
=
cvR
ound
((
double
)
imageSize
.
width
/
(
double
)
sbin
);
int
bH
=
(
int
)
r
ound
((
double
)
imageSize
.
height
/
(
double
)
sbin
);
int
bH
=
cvR
ound
((
double
)
imageSize
.
height
/
(
double
)
sbin
);
const
Size
blockSize
(
bW
,
bH
);
const
Size
blockSize
(
bW
,
bH
);
// size of HOG features
// size of HOG features
int
oW
=
max
(
blockSize
.
width
-
2
,
0
)
+
2
*
pad_x
;
int
oW
=
max
(
blockSize
.
width
-
2
,
0
)
+
2
*
pad_x
;
...
...
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