Skip to content

Commit a6a2903

Browse files
committed
Merge pull request #1491 from terfendail:resize_float_linear
2 parents 53986aa + 08481a7 commit a6a2903

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/ccalib/src/randpattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void RandomPatternGenerator::generatePattern()
371371

372372
Mat r = Mat(n, m, CV_32F);
373373
cv::randn(r, Scalar::all(0), Scalar::all(1));
374-
cv::resize(r, r, Size(_imageWidth ,_imageHeight), 0, 0, INTER_LINEAR_EXACT);
374+
cv::resize(r, r, Size(_imageWidth ,_imageHeight));
375375
double min_r, max_r;
376376
minMaxLoc(r, &min_r, &max_r);
377377

modules/dpm/src/dpm_feature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void Feature::computeFeaturePyramid(const Mat &imageM, vector< Mat > &pyramid)
8787
{
8888
const double scale = (double)(1.0f/pow(params.sfactor, i));
8989
Mat imScaled;
90-
resize(imageM, imScaled, imSize * scale, 0, 0, INTER_LINEAR_EXACT);
90+
resize(imageM, imScaled, imSize * scale);
9191
// First octave at twice the image resolution
9292
computeHOG32D(imScaled, pyramid[i], params.binSize/2,
9393
params.padx + 1, params.pady + 1);
@@ -106,7 +106,7 @@ void Feature::computeFeaturePyramid(const Mat &imageM, vector< Mat > &pyramid)
106106
{
107107
Mat imScaled2;
108108
Size_<double> imScaledSize = imScaled.size();
109-
resize(imScaled, imScaled2, imScaledSize*0.5, 0, 0, INTER_LINEAR_EXACT);
109+
resize(imScaled, imScaled2, imScaledSize*0.5);
110110
imScaled = imScaled2;
111111
computeHOG32D(imScaled2, pyramid[j+params.interval],
112112
params.binSize, params.padx + 1, params.pady + 1);

0 commit comments

Comments
 (0)