Optical flow diagnostics for plasmas