1. A method for editing an image having defocused objects, comprising: determining by at least one processor, a blurriness of edge pixels in the image, the blurriness representing an edge width of said pixels; propagating by the at least one processor 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 by the at least one processor 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 by the at least one processor based on the focus map.