Skip to content

Commit e531324

Browse files
committed
Reverted calls to linear resize back to generic version for floating point matrices
1 parent 1bc1f3d commit e531324

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/photo/src/contrast_preserve.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void Decolor::weak_order(Mat img, vector <double> &alf)
233233
if((h + w) > 800)
234234
{
235235
sizefactor = (double)800/(h+w);
236-
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)), 0, 0, INTER_LINEAR_EXACT);
236+
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)));
237237
}
238238

239239
Mat curIm = Mat(img.size(),CV_32FC1);
@@ -309,7 +309,7 @@ void Decolor::grad_system(Mat img, vector < vector < double > > &polyGrad,
309309
if((h + w) > 800)
310310
{
311311
sizefactor = (double)800/(h+w);
312-
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)), 0, 0, INTER_LINEAR_EXACT);
312+
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)));
313313
}
314314

315315
h = img.size().height;

modules/video/src/optflowgf.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ class FarnebackOpticalFlowImpl : public FarnebackOpticalFlow
767767
{
768768
if (!gaussianBlurOcl(frames_[i], smoothSize/2, blurredFrame[i]))
769769
return false;
770-
resize(blurredFrame[i], pyrLevel[i], Size(width, height), INTER_LINEAR_EXACT);
770+
resize(blurredFrame[i], pyrLevel[i], Size(width, height), INTER_LINEAR);
771771
if (!polynomialExpansionOcl(pyrLevel[i], R[i]))
772772
return false;
773773
}
@@ -1153,7 +1153,7 @@ void FarnebackOpticalFlowImpl::calc(InputArray _prev0, InputArray _next0,
11531153
}
11541154
else
11551155
{
1156-
resize( prevFlow, flow, Size(width, height), 0, 0, INTER_LINEAR);
1156+
resize( prevFlow, flow, Size(width, height), 0, 0, INTER_LINEAR );
11571157
flow *= 1./pyrScale_;
11581158
}
11591159

@@ -1162,7 +1162,7 @@ void FarnebackOpticalFlowImpl::calc(InputArray _prev0, InputArray _next0,
11621162
{
11631163
img[i]->convertTo(fimg, CV_32F);
11641164
GaussianBlur(fimg, fimg, Size(smooth_sz, smooth_sz), sigma, sigma);
1165-
resize( fimg, I, Size(width, height), INTER_LINEAR);
1165+
resize( fimg, I, Size(width, height), INTER_LINEAR );
11661166
FarnebackPolyExp( I, R[i], polyN_, polySigma_ );
11671167
}
11681168

0 commit comments

Comments
 (0)