From a52979c37fab17249aa389cefc7778e93d2e1487 Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Wed, 14 May 2014 17:44:40 +0400 Subject: [PATCH] exposed TVL1 optical flow to python --- modules/video/include/opencv2/video/tracking.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/video/include/opencv2/video/tracking.hpp b/modules/video/include/opencv2/video/tracking.hpp index 2045b19..1cc27fb 100644 --- a/modules/video/include/opencv2/video/tracking.hpp +++ b/modules/video/include/opencv2/video/tracking.hpp @@ -177,11 +177,11 @@ public: -class CV_EXPORTS DenseOpticalFlow : public Algorithm +class CV_EXPORTS_W DenseOpticalFlow : public Algorithm { public: - virtual void calc( InputArray I0, InputArray I1, InputOutputArray flow ) = 0; - virtual void collectGarbage() = 0; + CV_WRAP virtual void calc( InputArray I0, InputArray I1, InputOutputArray flow ) = 0; + CV_WRAP virtual void collectGarbage() = 0; }; // Implementation of the Zach, Pock and Bischof Dual TV-L1 Optical Flow method @@ -189,7 +189,7 @@ public: // see reference: // [1] C. Zach, T. Pock and H. Bischof, "A Duality Based Approach for Realtime TV-L1 Optical Flow". // [2] Javier Sanchez, Enric Meinhardt-Llopis and Gabriele Facciolo. "TV-L1 Optical Flow Estimation". -CV_EXPORTS Ptr createOptFlow_DualTVL1(); +CV_EXPORTS_W Ptr createOptFlow_DualTVL1(); } // cv -- 2.7.4