From 9b350e5e0d95a17fa568943dfd11ea30963e003e Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Thu, 5 Jan 2012 17:36:32 +0000 Subject: [PATCH] Tegra optimization for median blur --- modules/imgproc/src/smooth.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index bcff9818cb..bd66fb23bd 100644 --- a/modules/imgproc/src/smooth.cpp +++ b/modules/imgproc/src/smooth.cpp @@ -1238,6 +1238,11 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize ) } CV_Assert( ksize % 2 == 1 ); + +#ifdef HAVE_TEGRA_OPTIMIZATION + if (tegra::medianBlur(src0, dst, ksize)) + return; +#endif Size size = src0.size(); int cn = src0.channels();