Learning the Local Statistics of Optical Flow