1. An electronic device comprising: an image sensor that captures an image that includes multiple image areas; storage and processing circuitry that manipulates depth of field in the image by processing the image, wherein the storage and processing circuitry is configured to manipulate the depth of field of the image by: calculating an inferred defocus metric for each image area; and performing an operation selected from the group consisting of: sharpening and smoothing on each image area by an amount that depends on the calculated inferred defocus metric for that image area.