← All models · RAFT optical flow

Practical · optical-flow · vision · WASM

Read a flow field: pan vs zoom

A dense flow field is a picture of motion, and its shape tells you the camera move. A pan shifts every pixel the same way → one flat colour. A zoom pushes pixels outward from the centre → a radial rainbow (the colour rotates through every direction). Switch the motion and watch the field change — same model, same photo.

Run it

direction → colour

Frame 1
Frame 2
RAFT flow

Pan → the flow is one colour (uniform direction, non-zero mean). Zoom → the mean is near zero but the field is colourful (every direction present) because pixels flow outward.