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
08481a71
Commit
08481a71
authored
Dec 22, 2017
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted calls to linear resize back to generic version for floating point matrices
parent
53986aaa
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 @
08481a71
...
...
@@ -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 @
08481a71
...
...
@@ -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