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; and d. performing object segmentation using a combination of the prediction and the activation.