Laplacian tegra optimized was added
authorAlexander Kapustin <alexander.kapustin@itseez.com>
Fri, 24 Aug 2012 10:36:16 +0000 (14:36 +0400)
committerAlexander Kapustin <alexander.kapustin@itseez.com>
Fri, 24 Aug 2012 10:36:16 +0000 (14:36 +0400)
modules/imgproc/src/deriv.cpp

index 8703cf7..94f2e67 100644 (file)
@@ -561,6 +561,18 @@ void cv::Laplacian( InputArray _src, OutputArray _dst, int ddepth, int ksize,
     _dst.create( src.size(), CV_MAKETYPE(ddepth, src.channels()) );
     Mat dst = _dst.getMat();
     
+#ifdef HAVE_TEGRA_OPTIMIZATION
+    if (scale == 1.0 && delta == 0)
+    {
+               if (ksize == 1 && tegra::laplace1(src, dst, borderType))
+            return;
+               if (ksize == 3 && tegra::laplace3(src, dst, borderType))
+            return;
+               if (ksize == 5 && tegra::laplace5(src, dst, borderType))
+            return;
+    }
+#endif
+    
     if( ksize == 1 || ksize == 3 )
     {
         float K[2][9] =