The robust estimation of multiple motions: Affine and piecewise smooth flow fields