摘要 |
Methods and apparatus for editing an image having focused and defocused objects are provided in the present application. According to an embodiment, the method comprises: 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 the focused objects; and refocusing the defocused objects based on the focus map or defocusing at least one of the defocused objects and the focused objects.
|