Vision / Motion
verifiedOptical Flow
For every pixel in one frame, where did it go in the next? The answer is a dense field of little arrows, and it is the raw material for tracking, video compression, frame interpolation and stabilisation. It sounds like a matching problem and it is, but with a catch: a pixel on a smooth surface looks exactly like its neighbours, so matching alone cannot decide.
Modern methods build a correlation volume — every pixel of the first frame scored against candidate positions in the second — and then iterate a refinement over it rather than reading off the best match. Iteration matters because the first estimate is unreliable in exactly the regions where the appearance is ambiguous, and a few passes of refinement propagate confident matches from textured regions into flat ones.
Brightness constancy gives one equation per pixel and the flow has two components, so the problem is underdetermined at every single pixel — the aperture problem, and it is a statement about the data rather than about any method. Every approach therefore imposes a second constraint, historically a smoothness prior and now a learned one. The correlation volume's cost is the other half of the arithmetic: it grows as the square of the search radius, which is why nobody searches wide and everybody searches coarse-to-fine.
10 queries against 6 keys; a brighter cell means more of that query's attention went to that key. Nothing is masked: every target position can read every source position.
Each row a pixel in the first frame, each column a candidate position in the second; the bright cell is where it matched. Drag the search range up to watch the volume grow — the cost is quadratic in the radius, which is why every method searches coarse-to-fine instead of wide.
Reviewed by opendroid · 2026-08-18
- arXiv:2003.12039 — RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
- arXiv:1709.02371 — PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume
Origin · not linkable
- Horn & Schunck 1981 — Determining Optical Flow · Artificial Intelligence 17 · doi:10.1016/0004-3702(81)90024-2