Python port of the optical flow visualization: people.csail.mit.edu/celiu/OpticalFlow/. This implementation is based on the color wheel presented in:
S. Baker, D. Scharstein, J. Lewis, S. Roth, M. J. Black, and R. Szeliski.
A database and evaluation methodology for optical flow.
In Proc. IEEE International Conference on Computer Vision (ICCV), 2007.
One-liner: flow_color = flow_vis.flow_to_color(flow_uv, convert_to_bgr=False)
Example visualization from the MPI Sintel Dataset: