Enable OpenCV4 compability

This commit is contained in:
JFilipe
2019-02-25 18:09:43 +00:00
parent b20d5aef49
commit 2eec03b23f
5 changed files with 22 additions and 3 deletions
+4
View File
@@ -166,7 +166,11 @@ bool OpticalFlowDualTVL1::create( std::vector<CalypFrame*> apcFrameList )
bool bRet = commonCreate( apcFrameList );
if( !bRet )
return bRet;
#if CV_MAJOR_VERSION >= 4
m_cOpticalFlow = cv::optflow::createOptFlow_DualTVL1();
#else
m_cOpticalFlow = cv::createOptFlow_DualTVL1();
#endif
return bRet;
}