diff --git a/grayMatch.cpp b/grayMatch.cpp index c36685c..1a33aaf 100644 --- a/grayMatch.cpp +++ b/grayMatch.cpp @@ -239,7 +239,7 @@ void matchTemplateSimd(const cv::Mat &src, const cv::Mat &templateImg, cv::Mat & #ifdef __aarch64__ tmp[ x ] = cv::v_add(tmp[ x ], cv::v_dotprod_expand_fast(vSrc, vTem)); #else - tmp[ x ] = cv::v_add(tmp[ x ], tmp[ x ] += cv::v_dotprod_expand(vSrc, vTem)); + tmp[ x ] = cv::v_add(tmp[ x ], cv::v_dotprod_expand(vSrc, vTem)); #endif } }