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
@@ -1617,7 +1617,7 @@ public class ImgprocTest extends OpenCVTestCase {
Mat src = new Mat(imgprocSz, imgprocSz, CvType.CV_8UC1, new Scalar(1));
Size dsize = new Size(1, 1);
Imgproc.resize(src, dst, dsize);
Imgproc.resize(src, dst, dsize, 0, 0, Imgproc.INTER_LINEAR_EXACT);
truth = new Mat(1, 1, CvType.CV_8UC1, new Scalar(1));
assertMatEqual(truth, dst);