Active Contours with Automatic "Rectify a Deviation"