11. An object segmentation apparatus comprising: a processor; and a memory storing machine readable instructions executable to cause the processor to: receive a digital image; perform initial segmentation on the digital image to generate a segmented digital image having an outline that separates a foreground area from a background area; receive a refinement stroke in the initial segmentation to refine the initial segmentation; determine an intention of a user to correct the foreground area or the background area of the initial segmentation based on the received refinement stroke, wherein to infer the intention of the user, the processor is to: determine 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, determine 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, determine that the intention of the user is to add pixels that are classified as background into the foreground area; and refine the initial segmentation based on the determined intention.
11. An object segmentation apparatus comprising: a processor; and a memory storing machine readable instructions executable to cause the processor to: receive a digital image; perform initial segmentation on the digital image to generate a segmented digital image having an outline that separates a foreground area from a background area; receive a refinement stroke in the initial segmentation to refine the initial segmentation; determine an intention of a user to correct the foreground area or the background area of the initial segmentation based on the received refinement stroke, wherein to infer the intention of the user, the processor is to: determine 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, determine 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, determine that the intention of the user is to add pixels that are classified as background into the foreground area; and refine the initial segmentation based on the determined intention. 13. The object segmentation apparatus of claim 11 , wherein, to refine the initial segmentation, the machine readable instructions cause the processor to: add pixels adjacent the refinement stroke into the foreground area that are classified as background pixels.