摘要 |
This invention improves the image quality of areas that the user want sharply focused. Depth values representing positions in a depth direction of scenes including the photographed object are estimated to generate a depth map. The focus map generation unit, based on the virtual focus parameter 305 and the depth map, generates by an area dividing operation a focus map representing an area to be sharply focused (in-focus area) and an area to be blurred (out-of-focus area). The in-focus area image processing unit places greater importance on the in-focus area in the image processing to generate an in-focus area image. The out-of-focus area image processing unit puts greater importance on the out-of-focus area in the image processing to generate an out-of-focus area image. The image blending unit generates a refocused image by blending the in-focus area image and the out-of-focus area image.
|