Patent attributes
A user identifies an unwanted object in a source image. Related images are identified on the basis of timestamp and/or geolocation metadata. Matching masks are identified in the source image, wherein each of the matching masks is adjacent to the selection mask. Features in the selection and matching masks which also appear in one of the related images are identified. The related image having a maximum of features which are tracked to a source image matching mask, but also a minimum of features which are tracked to the source image selection mask, is identified as a best-match related image. By mapping the source image matching masks onto the best-match related image, a seed region can be located in the best-match related image. This seed region is used for filling in the source image. This allows the unwanted object to be replaced with a visually plausible background having a reasonable appearance.