Motion estimation based on optical flow with adaptive gradients | Synapse