In one embodiment, a method determines a first local binary pattern for a first image in a video and a second local binary pattern for a second image in the video. Then, the method determines an optical flow between the first image and the second image based on a distance between the first local binary pattern and the second local binary pattern. The optical flow is output for use in aligning the first image to the second image.
展开▼