From 6059a6875a32967efc2935da1c3e9a26ba7c76f1 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Fri, 14 Dec 2012 17:54:07 +0400 Subject: [PATCH] fixed bug with s1 calculating --- modules/imgproc/src/imgwarp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 3fe7fbf48a..e6b45f647c 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -1359,7 +1359,7 @@ public: int dx = 0; const ushort* S0 = (const ushort*)S; - const ushort* S1 = (const ushort*)(S + step); + const ushort* S1 = (const ushort*)(S + step/2); __m128i masklow = _mm_set1_epi32(0x0000ffff); __m128i zero = _mm_setzero_si128(); __m128i delta2 = _mm_set1_epi32(2);