Add static creator for TVL1 optical flow class

This commit is contained in:
alcinos
2016-01-28 16:26:11 +01:00
parent be4312ec3d
commit 6e3b90de9b
5 changed files with 49 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ TEST(Video_calcOpticalFlowDual_TVL1, Regression)
ASSERT_FALSE(frame2.empty());
Mat_<Point2f> flow;
Ptr<DenseOpticalFlow> tvl1 = createOptFlow_DualTVL1();
Ptr<DualTVL1OpticalFlow> tvl1 = cv::DualTVL1OpticalFlow::create();
tvl1->calc(frame1, frame2, flow);