LK光流(稀疏光流)
传统稠密光流算法:
Farneback算法
2003 - Gunner Farneback - Two-Frame Motion Estimation Based on Polynomial Expansion (多项式展开)(稠密光流)
flow = cv2.calcOpticalFlowFarneback(img0, img1, None, 0.5, 3, 15, 3, 5, 1.2, 0)
https://www.cnblogs.com/luofeiju/p/11971181.html
Deep Flow算法
of_estim = cv2.optflow.createOptFlow_DeepFlow()
flow = of_estim.calc(img0, img1, None)
TVL1算法
of_estim = cv2.optflow.DualTVL1OpticalFlow_create()
flow = of_estim.calc(img0, img1, None)
Simple Flow算法
of_estim = cv2.optflow.createOptFlow_SimpleFlow()
flow = of_estim.calc(img1, img0, None)