1. Technical Field
The present disclosure relates to image capturing technology, and more particularly, to an image capturing device with image blending function and a method for image blending.
2. Description of Related Art
People want to take a perfect image by an easiest way using a camera. However, it is difficult to take an image including a clear foreground while having a clear distant background as they have significantly different object distances and thus can not be both focused in the same image.
Many aspects of the present embodiments can be better understood with reference to the drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present embodiments. Moreover, in the drawings, all the views are schematic, and like reference numerals designate corresponding parts throughout the several views.
Embodiments of the present disclosure will be described with reference to the accompanying drawings.
The mode activating module 101 is used to activate an image blending mode of the image capturing device 10. The mode activating module 101 can be run automatically when the image capturing device 10 is turned on or activated by selections by users. The mode activating module 101 may be activated by a hardware button or virtual button (e.g., an icon on a touch screen).
When activating the image blending mode, as shown together with
The image blending module 103 is used to compose the first image 11 and the second image 12 together to generate a composite image 13 in which both the close foreground 111 and the distant background 122 are clear and set to at suitable proportions (see
In detail, the image blending module 103 identifies the close foreground 111 in the first image 11, cuts the close foreground 111 along a contour thereof from the first image 11, zooming, typically zooming out (i.e., reducing) or, in seldom cases, zooming in (i.e., enlarging), the close foreground 111 according to object distances of the close foreground 111 and the distant background 122, and a size of the distant background 122 in the second image 12, and superimposes the zoomed close foreground 111 on the second image 12 at an appropriate position based upon a position relationship between the close foreground 111 and the distant background 122 to simulate a real scene of the first image 11 and the second image 12, thus yielding the composite image 13. More specifically, the image blending module 103 can use a face recognition technology to identify the close foreground 111 from the first image 11 in case of portrait photography or a mode recognition technology in other occasions.
The memory 104 is configured to store the composite image 13. The display 105 is used to display the composite image 13.
The functions of the modules will be described together with
In step S21, the mode activating module 101 activates the image blending mode.
In step S22, the imaging module 102 focuses on the close foreground 111 and captures the first image 11, and then focuses on the distant background 122 and captures the second image 12.
In step S23, the image blending module 103 composes the first image 11 and the second image 12 together to generate the composite image 13.
In step S24, the memory 104 stores the composite image 13 and the display 105 displays the composite image 13.
Although the features and elements of the present disclosure are described as embodiments in particular combinations, each feature or element can be used alone or in other various combinations within the principles of the present disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
201110454329.1 | Dec 2011 | CN | national |