Added tegra stub for cornerEigenValsVecs
authorAndrey Kamaev <no@email>
Fri, 25 May 2012 08:20:13 +0000 (08:20 +0000)
committerAndrey Kamaev <no@email>
Fri, 25 May 2012 08:20:13 +0000 (08:20 +0000)
modules/imgproc/src/corner.cpp
modules/video/src/lkpyramid.cpp

index 91cc879..a66459a 100644 (file)
@@ -247,6 +247,11 @@ cornerEigenValsVecs( const Mat& src, Mat& eigenv, int block_size,
                      int aperture_size, int op_type, double k=0.,
                      int borderType=BORDER_DEFAULT )
 {
+#ifdef HAVE_TEGRA_OPTIMIZATION
+    if (tegra::cornerEigenValsVecs(src, eigenv, block_size, aperture_size, op_type, k, borderType))
+        return;
+#endif 
+
     int depth = src.depth();
     double scale = (double)(1 << ((aperture_size > 0 ? aperture_size : 3) - 1)) * block_size;
     if( aperture_size < 0 )
index 88b2e1f..14ba66f 100644 (file)
@@ -53,7 +53,7 @@ static void calcSharrDeriv(const cv::Mat& src, cv::Mat& dst)
     CV_Assert(depth == CV_8U);
     dst.create(rows, cols, CV_MAKETYPE(DataType<deriv_type>::depth, cn*2));
 
- #ifdef HAVE_TEGRA_OPTIMIZATION
+#ifdef HAVE_TEGRA_OPTIMIZATION
     if (tegra::calcSharrDeriv(src, dst))
         return;
 #endif