1. A method for editing an image having defocused objects, comprising: determining blurriness of edge pixels in the image; propagating the determined blurriness to non-edge pixels adjacent to each of the edge pixels so as to determine blurriness of the non-edge pixels; estimating a focus map based on the blurriness of the edge pixels and the non-edge pixels to identify the defocused objects; and refocusing the defocused objects based on the focus map.