From 3a546aa38010a48ebe9627bb7a30cd9c18035e23 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 17 Feb 2020 15:23:59 +0300 Subject: [PATCH] imgproc: revert resize changes from PR 16497 --- modules/imgproc/src/resize.cpp | 2 +- modules/imgproc/test/test_imgwarp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/src/resize.cpp b/modules/imgproc/src/resize.cpp index f510018400..43458cc153 100644 --- a/modules/imgproc/src/resize.cpp +++ b/modules/imgproc/src/resize.cpp @@ -1045,7 +1045,7 @@ public: { const int* _tS = (const int*)(S + x_ofs[x]); int* _tD = (int*)D; - for( int k = 0; k <= pix_size4; k++ ) + for( int k = 0; k < pix_size4; k++ ) _tD[k] = _tS[k]; } } diff --git a/modules/imgproc/test/test_imgwarp.cpp b/modules/imgproc/test/test_imgwarp.cpp index ffd5ecca95..b100442127 100644 --- a/modules/imgproc/test/test_imgwarp.cpp +++ b/modules/imgproc/test/test_imgwarp.cpp @@ -1721,7 +1721,7 @@ TEST(Resize, lanczos4_regression_16192) EXPECT_EQ(cvtest::norm(dst, expected, NORM_INF), 0) << dst(Rect(0,0,8,8)); } -TEST(Resize, nearest_regression_15075) +TEST(Resize, DISABLED_nearest_regression_15075) // reverted https://github.com/opencv/opencv/pull/16497 { const int C = 5; const int i1 = 5, j1 = 5;