Detection of spatial discontinuities in first-order optical flow fields