1. A method implemented in an image editing device for tracking an object in a plurality of frames, comprising: obtaining a reference contour of an object in a reference frame; estimating, for a current frame after the reference frame, a contour of the object; comparing the reference contour with the estimated contour; determining at least one local region of the reference contour in the reference frame based on a difference between the reference contour and the estimated contour; based on the difference, determining at least one corresponding region of the current frame; computing a degree of similarity between the at least one corresponding region in the current frame and the at least one local region in the reference frame; adjusting the estimated contour in the current frame according to the degree of similarity, wherein the degree of similarity is determined in response to the degree of similarity being greater than a threshold and in response to the difference between the reference contour and the estimated contour; and wherein if at least one region is not included in the estimated contour, adding the at least one local region as part of the estimated contour for the current frame; and designating the current frame as a new reference frame and a frame after the new reference as a new current frame.