1. A method of image processing programmed in a memory of a device comprising: a. utilizing user input to generate a learned model for prediction; b. utilizing statistical analysis for activation; c. defining a local mask from the user input, wherein the local mask limits the image processing to a local area, further wherein the user input includes marking foreground and background in different colors; d. combining the prediction and the activation using pixel-wise multiplication, wherein the prediction and the activation are each probability maps indicating a percentage of a likelihood each pixel is in the foreground; e. performing object segmentation using a combination of the prediction and the activation.