Fixed call to tegra::fastNlMeansDenoising
authorErik Karlsson <erik.r.karlsson@gmail.com>
Mon, 9 Mar 2015 17:52:25 +0000 (18:52 +0100)
committerErik Karlsson <erik.r.karlsson@gmail.com>
Mon, 9 Mar 2015 17:52:25 +0000 (18:52 +0100)
modules/photo/src/denoising.cpp

index c42ac45..5445d26 100644 (file)
@@ -69,7 +69,7 @@ void cv::fastNlMeansDenoising( InputArray _src, OutputArray _dst, std::vector<fl
     Mat dst = _dst.getMat();
 
 #ifdef HAVE_TEGRA_OPTIMIZATION
-    if(tegra::fastNlMeansDenoising(src, dst, h, templateWindowSize, searchWindowSize))
+    if(hn == 1 && tegra::fastNlMeansDenoising(src, dst, h[0], templateWindowSize, searchWindowSize))
         return;
 #endif