mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #10401 from terfendail:resize_linear_revert
This commit is contained in:
commit
9148a37624
@ -233,7 +233,7 @@ void Decolor::weak_order(Mat img, vector <double> &alf)
|
||||
if((h + w) > 800)
|
||||
{
|
||||
sizefactor = (double)800/(h+w);
|
||||
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)), 0, 0, INTER_LINEAR_EXACT);
|
||||
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)));
|
||||
}
|
||||
|
||||
Mat curIm = Mat(img.size(),CV_32FC1);
|
||||
@ -309,7 +309,7 @@ void Decolor::grad_system(Mat img, vector < vector < double > > &polyGrad,
|
||||
if((h + w) > 800)
|
||||
{
|
||||
sizefactor = (double)800/(h+w);
|
||||
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)), 0, 0, INTER_LINEAR_EXACT);
|
||||
resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor)));
|
||||
}
|
||||
|
||||
h = img.size().height;
|
||||
|
@ -767,7 +767,7 @@ private:
|
||||
{
|
||||
if (!gaussianBlurOcl(frames_[i], smoothSize/2, blurredFrame[i]))
|
||||
return false;
|
||||
resize(blurredFrame[i], pyrLevel[i], Size(width, height), INTER_LINEAR_EXACT);
|
||||
resize(blurredFrame[i], pyrLevel[i], Size(width, height), INTER_LINEAR);
|
||||
if (!polynomialExpansionOcl(pyrLevel[i], R[i]))
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user