convert displacement map to motion vector