1. A method of blurring an image comprising: receiving the image from an image sensor; determining, for each pixel of the image, a depth filter component based on a focal area of the image and a depth map associated with the image; generating, for each pixel of the image, a trilateral filter including a spatial filter component, a range filter component and the depth filter component; and applying the respective trilateral filter to corresponding pixels of the image to blur the image outside of the focal area.