OpenCV Motion Analysis Documentation lists multiple techniques for motion tracking:
- Sparse Optical Flow | calcOpticalFlowPyrLK,
- Dense Optical Flow | calcOpticalFlowFarneback, and
- Motion History Image | calcMotionGradient, segmentMotion, calcGlobalOrientation.
I need help in understanding their pros and cons. Which ones should be preferred under what circumstances?
Context: I am trying to track lane departure/lane changes. Any abstract/generic response would be good enough. Thanks!