An Algorithm for Motion Estimation Based on the Interframe Difference Detection Function Model. (27th February 2021)