the.ai

Vision / Motion

verified

Optical 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.

Viz primitive · attention-heatmaptokens = 10
query ↓key →

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.

6

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