1. A machine-implemented method of processing a sequence of image frames, comprising: computing respective sets of motion vectors for pairs of image frames; classifying the computed motion vectors into motion classes; identifying motion clusters in the image frames based at least in part on the motion classes; and selecting an identified motion cluster as a motion stabilization reference based on spatiotemporal consistency of the selected motion cluster across multiple image frames.