1. A computer-implemented method comprising: receiving a digital input image comprising a plurality of pixels representing an image of an object; receiving a depth map corresponding to the digital input image, the depth map representing a depth of each pixel in the digital input image, the depth of each pixel being a distance between a lens of a camera that generated the digital input image and a point on a surface of the object; calculating an offset distance as a difference between the depth of a first pixel in the digital input image and a depth of a focal plane, the first pixel being bounded by an aperture centered about a reference pixel, the first pixel being different from the reference pixel; sampling a color from a second pixel in the aperture, the second pixel being offset from the first pixel along a radius of the aperture such that a distance along the radius between the first pixel and the second pixel is the same as the offset distance between the depth of the first pixel and the depth of the focal plane; integrating the sampled color with at least one color sampled from another pixel to obtain a final color associated with the first pixel; and causing a display of an output image via a display device, the output image including the final color associated with the first pixel.