1. A method of processing an image, the method comprising: obtaining the image; determining a point spread function for the image; applying a filter, based on the point spread function, to at least a portion of the image to form a filtered image; and generating a processed image by blending the filtered image with the image or another filtered image, wherein a first portion of the processed image is generated using a different amount of blending of the filtered image with the image or other filtered image than is used for a second portion of the processed image, wherein the amount of blending for portions of the image that are within a threshold distance of an edge of an object in the image is different from the amount of blending for portions of the image that are not within the threshold distance of an edge of an object in the image.