1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Implementation of bit-exact resize. Internal calls to linear resize updated to use bit-exact version. (#9468)

This commit is contained in:
Vitaly Tuzov
2017-12-13 15:00:38 +03:00
committed by Vadim Pisarevsky
parent 84ee4d701a
commit 51cb56ef2c
57 changed files with 1300 additions and 112 deletions
+5 -5
View File
@@ -121,7 +121,7 @@ bool CV_ECC_Test_Translation::testTranslation(int from)
return false;
}
Mat testImg;
resize(img, testImg, Size(216, 216));
resize(img, testImg, Size(216, 216), 0, 0, INTER_LINEAR_EXACT);
cv::RNG rng = ts->get_rng();
@@ -196,7 +196,7 @@ bool CV_ECC_Test_Euclidean::testEuclidean(int from)
return false;
}
Mat testImg;
resize(img, testImg, Size(216, 216));
resize(img, testImg, Size(216, 216), 0, 0, INTER_LINEAR_EXACT);
cv::RNG rng = ts->get_rng();
@@ -270,7 +270,7 @@ bool CV_ECC_Test_Affine::testAffine(int from)
return false;
}
Mat testImg;
resize(img, testImg, Size(216, 216));
resize(img, testImg, Size(216, 216), 0, 0, INTER_LINEAR_EXACT);
cv::RNG rng = ts->get_rng();
@@ -346,7 +346,7 @@ bool CV_ECC_Test_Homography::testHomography(int from)
return false;
}
Mat testImg;
resize(img, testImg, Size(216, 216));
resize(img, testImg, Size(216, 216), 0, 0, INTER_LINEAR_EXACT);
cv::RNG rng = ts->get_rng();
@@ -418,7 +418,7 @@ bool CV_ECC_Test_Mask::testMask(int from)
return false;
}
Mat scaledImage;
resize(img, scaledImage, Size(216, 216));
resize(img, scaledImage, Size(216, 216), 0, 0, INTER_LINEAR_EXACT );
Mat_<float> testImg;
scaledImage.convertTo(testImg, testImg.type());