diff --git a/modules/core/src/rand.cpp b/modules/core/src/rand.cpp index 6a4d6420f..d9712a110 100644 --- a/modules/core/src/rand.cpp +++ b/modules/core/src/rand.cpp @@ -247,7 +247,7 @@ static void randf_32f( float* arr, int len, uint64* state, const Vec2f* p, bool _mm_set_ss(p[i][1])) ); #else - arr[i] += (int)temp*p[i][0] + p[i][1]; + arr[i] = (int)temp*p[i][0] + p[i][1]; #endif } diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index 8a5efdc27..41dda25ff 100644 --- a/modules/imgproc/src/smooth.cpp +++ b/modules/imgproc/src/smooth.cpp @@ -312,9 +312,7 @@ void cv::boxFilter( InputArray _src, OutputArray _dst, int ddepth, ksize.width = 1; } #ifdef HAVE_TEGRA_OPTIMIZATION - if(tegra::box(src, dst, ksize, borderType)) - return; - if ( tegra::boxFilter(src, dst, ksize, anchor, normalize, borderType) ) + if ( tegra::box(src, dst, ksize, anchor, normalize, borderType) ) return; #endif