detection of movement based on three consecutive picture, returning horizontal displacement between barycentre of two area where picture changed