A method for image processing of a digital image, in which a region of
interest is defined in the digital image, one or more sets of pixel
characteristics are determined for the region of interest, along with an
image editing function, and the digital image is processed by applying a
mixing function algorithm based on the one or more sets of pixel
characteristics and the determined image editing function. When the
digital image includes pixels that are outside of the region of interest,
the processing the digital image includes using the mixing function to
determine which pixels that are outside of the region of interest are
affected by the image editing function.