Fast Motion Estimation Algorithm Based on Thresholds with Controllable Computation