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
a6a29033
Commit
a6a29033
authored
Dec 22, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1491 from terfendail:resize_float_linear
parents
53986aaa
08481a71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
randpattern.cpp
modules/ccalib/src/randpattern.cpp
+1
-1
dpm_feature.cpp
modules/dpm/src/dpm_feature.cpp
+2
-2
No files found.
modules/ccalib/src/randpattern.cpp
View file @
a6a29033
...
...
@@ -371,7 +371,7 @@ void RandomPatternGenerator::generatePattern()
Mat
r
=
Mat
(
n
,
m
,
CV_32F
);
cv
::
randn
(
r
,
Scalar
::
all
(
0
),
Scalar
::
all
(
1
));
cv
::
resize
(
r
,
r
,
Size
(
_imageWidth
,
_imageHeight
)
,
0
,
0
,
INTER_LINEAR_EXACT
);
cv
::
resize
(
r
,
r
,
Size
(
_imageWidth
,
_imageHeight
));
double
min_r
,
max_r
;
minMaxLoc
(
r
,
&
min_r
,
&
max_r
);
...
...
modules/dpm/src/dpm_feature.cpp
View file @
a6a29033
...
...
@@ -87,7 +87,7 @@ void Feature::computeFeaturePyramid(const Mat &imageM, vector< Mat > &pyramid)
{
const
double
scale
=
(
double
)(
1.0
f
/
pow
(
params
.
sfactor
,
i
));
Mat
imScaled
;
resize
(
imageM
,
imScaled
,
imSize
*
scale
,
0
,
0
,
INTER_LINEAR_EXACT
);
resize
(
imageM
,
imScaled
,
imSize
*
scale
);
// First octave at twice the image resolution
computeHOG32D
(
imScaled
,
pyramid
[
i
],
params
.
binSize
/
2
,
params
.
padx
+
1
,
params
.
pady
+
1
);
...
...
@@ -106,7 +106,7 @@ void Feature::computeFeaturePyramid(const Mat &imageM, vector< Mat > &pyramid)
{
Mat
imScaled2
;
Size_
<
double
>
imScaledSize
=
imScaled
.
size
();
resize
(
imScaled
,
imScaled2
,
imScaledSize
*
0.5
,
0
,
0
,
INTER_LINEAR_EXACT
);
resize
(
imScaled
,
imScaled2
,
imScaledSize
*
0.5
);
imScaled
=
imScaled2
;
computeHOG32D
(
imScaled2
,
pyramid
[
j
+
params
.
interval
],
params
.
binSize
,
params
.
padx
+
1
,
params
.
pady
+
1
);
...
...
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