From 80516ecbe6b412e4b75e844664d5264043feae09 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 18 Apr 2012 08:41:00 +0000 Subject: [PATCH] Fixed typo; removed duplicated call --- modules/core/src/rand.cpp | 2 +- modules/imgproc/src/smooth.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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