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
4bf3832b
Commit
4bf3832b
authored
Nov 19, 2015
by
Yang Fan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue caused by missing round() in VS before 2013
parent
5e008c87
Show 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 @
4bf3832b
...
...
@@ -47,6 +47,7 @@ namespace cv
{
namespace
dpm
{
Feature
::
Feature
()
{
}
...
...
@@ -196,8 +197,8 @@ void Feature::computeHOG32D(const Mat &imageM, Mat &featM, const int sbin, const
// image size
const
Size
imageSize
=
imageM
.
size
();
// block size
int
bW
=
(
int
)
r
ound
((
double
)
imageSize
.
width
/
(
double
)
sbin
);
int
bH
=
(
int
)
r
ound
((
double
)
imageSize
.
height
/
(
double
)
sbin
);
int
bW
=
cvR
ound
((
double
)
imageSize
.
width
/
(
double
)
sbin
);
int
bH
=
cvR
ound
((
double
)
imageSize
.
height
/
(
double
)
sbin
);
const
Size
blockSize
(
bW
,
bH
);
// size of HOG features
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