1. A computer-implemented method comprising: receiving a digital input image comprising a plurality of pixels; receiving a depth map corresponding to the digital input image, the depth map representing a depth of each pixel in the digital input image; calculating an offset distance relative to a first pixel in the digital input image based on the depth of the first pixel, a depth of a focal plane, and a radius of an aperture bounding the first pixel; sampling a color from each of a plurality of second pixels in the aperture, each second pixel being offset from the first pixel along the radius of the aperture by the offset distance; and integrating the sampled colors to obtain a final color associated with the first pixel.