1. A method for object segmentation, the method comprising: receiving a digital image; performing, by a processor, initial segmentation on the digital image to generate a segmented digital image having an outline that separates a foreground area from a background area; receiving a refinement stroke in the initial segmentation to refine the initial segmentation; determining, by the processor, an intention of a user to correct the foreground area or the background area of the initial segmentation based on the received refinement stroke, including: determining whether a number of pixels of the refinement stroke that are in the foreground area is greater than a number of pixels of the refinement stroke that are in the background area, in response to a determination that the number of pixels of the refinement stroke that are in the foreground area is greater than the number of pixels of the refinement stroke that are in the background area, determining that the intention of the user is to add pixels that are classified as foreground into the background area, and in response to a determination that the number of pixels in the refinement stroke that are in the foreground area is less than the number of pixels in the refinement stroke that are in the background area, determining that the intention of the user is to add pixels that are classified as background into the foreground area; and refining, by the processor, the initial segmentation based on the determined intention.