From 056a11178865f7ec10f896f7ee060d9add51a83b Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 15 Oct 2015 13:49:32 +0900 Subject: [PATCH] Fixed histogram substraction bug with NEON instructions (arguments in wrong order). --- modules/imgproc/src/smooth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index 5eb4b388d..df744effd 100644 --- a/modules/imgproc/src/smooth.cpp +++ b/modules/imgproc/src/smooth.cpp @@ -1851,8 +1851,8 @@ static inline void histogram_add_simd( const HT x[16], HT y[16] ) static inline void histogram_sub_simd( const HT x[16], HT y[16] ) { - vst1q_u16(y, vsubq_u16(vld1q_u16(x), vld1q_u16(y))); - vst1q_u16(y + 8, vsubq_u16(vld1q_u16(x + 8), vld1q_u16(y + 8))); + vst1q_u16(y, vsubq_u16(vld1q_u16(y), vld1q_u16(x))); + vst1q_u16(y + 8, vsubq_u16(vld1q_u16(y + 8), vld1q_u16(x + 8))); } #else