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

@@ -185,7 +185,7 @@ int main(int argc, const char* argv[])
}
Mat_<Point2f> flow;
Ptr<DenseOpticalFlow> tvl1 = createOptFlow_DualTVL1();
Ptr<DualTVL1OpticalFlow> tvl1 = cv::DualTVL1OpticalFlow::create();
const double start = (double)getTickCount();
tvl1->calc(frame0, frame1, flow);