1. A non-transitory computer-readable medium embodying a program executable in a computing device, comprising: code that obtains an image comprising a plurality of pixels; code that obtains a first input path segment from an input device, the first input path segment corresponding to an object boundary shown in the image, the first input path segment comprising a plurality of first input points corresponding to a plurality of the plurality of pixels; code that generates an initial boundary probability map for at least a portion of the image, the initial boundary probability map comprising a plurality of boundary probability values corresponding to a plurality of the plurality of pixels; code that generates a selection path based on the first input path segment and the initial boundary probability map, the selection path indicating a target object boundary within the image that is to be selected for an image editing function, the selection path comprising a plurality of selection points corresponding to a plurality of the plurality of pixels; code that obtains a second input path segment from the input device, the second input path segment corresponding to the object boundary shown in the image, the second input path segment comprising a plurality of second input points corresponding to a plurality of the plurality of pixels; code that generates a weighted boundary probability map by weighting a plurality of the boundary probability values of the initial boundary probability map based on the selection path; and code that generates a replacement selection path based on the weighted boundary probability map and the second input path segment.