1. A computer-implemented method, comprising: obtaining an initial selection mask of an object in an original image, wherein the initial selection mask indicates a foreground area of the original image to be included in the selected object and a background area of the original image; obtaining one or more inputs each specifying a different region of the original image in which foreground detail is to be refined; and refining the initial selection mask according to image data in each of the specified one or more regions of the original image to generate a refined selection mask, wherein said refining comprises: determining one or more foreground colors and one or more background colors from the original image according to the initial selection mask; determining foreground pixels and background pixels in each of the specified one or more regions of the original image according to the determined foreground colors and background colors; and refining the initial selection mask according to the determined foreground pixels and background pixels in each of the specified one or more regions of the original image.