METHOD FOR OBTAINING IMAGE AND IMAGE PICKUP DEVICE AND ELECTRONIC DEVICE USING THE SAME
20170244893 · 2017-08-24
Inventors
Cpc classification
H04N25/48
ELECTRICITY
H04N23/57
ELECTRICITY
G03B2205/0007
PHYSICS
G03B2205/00
PHYSICS
International classification
Abstract
The present invention provides a method for measuring a depth of field of an image, including: (a) picking up a first image having a first resolution at a first position; (b) driving the optical lens to move to a second position in a direction along a non-optical axis, and picking up a second image having a second resolution at the second position; and (c) synthesizing the first image and the second image, so as to obtain a third image having a third resolution, where the third resolution is greater than the first resolution and the second resolution. In addition, the present invention also provides an image pickup device and an electronic device using the method.
Claims
1. A method for obtaining an image, adapted to be used in an image pickup device with an optical image stabilization function, the image pick device having an optical lens, a motion sensor, and a driving unit, wherein the optical image stabilization function causes the driving unit to move the optical lens and maintain an optical axis to be perpendicular to a sensing element according to a sensed result by the motion sensor, wherein the method for obtaining an image comprises: (a) picking up a first image having a first resolution at a first position; (b) driving the optical lens with the driving unit to move to a second position in a direction along a non-optical axis, and picking up a second image having a second resolution at the second position; and (c) synthesizing the first image and the second image, so as to obtain a third image having a third resolution, wherein the third resolution is greater than the first resolution and the second resolution.
2. The method for obtaining an image according to claim 1, wherein the first image and the second image are synthesized into the third image through an image interpolation operation.
3. The method for obtaining an image according to claim 2, wherein the step (c) comprises: (c-1) searching for a second image block corresponding to a first image block of the first image in the second image, or searching for a first image block corresponding to a second image block of the second image; and (c-2) interpolating at least a part of the image in the first image block to the second image block, so as to obtain a third image block of the third image, or interpolating at least a part of the image in the second image block to the first image block, so as to obtain a third image block of the third image.
4. The method for obtaining an image according to claim 3, wherein the second image block corresponding to the first image block is obtained by computing a peak signal-to-noise ratio (PSNR), or the first image block corresponding to the second image block is obtained by computing a peak signal-to-noise ratio (PSNR).
5. The method for obtaining an image according to claim 3, wherein the second image block corresponding to the first image block is obtained by using a mean-residual normalized correlation method (ZNCC), or the first image block corresponding to the second image block is obtained by using a mean-residual normalized correlation method (ZNCC).
6. The method for obtaining an image according to claim 5, wherein the first position is spaced from the second position for 3 pixels.
7. An image pickup device, comprising: an optical lens, a driving unit, a sensing element, and a synthesizing unit, wherein: the driving unit is connected to the optical lens and is configured to move the optical lens according to a sensed result by a motion sensor, and maintain an optical axis to be perpendicular to the sensing element, and to drive the optical lens to move from a first position to a second position in a direction along a non-optical axis; the sensing element is configured to sense a beam that passes through the optical lens and that is transmitted in the sensing element to obtain a first image having a first resolution when the optical lens is located at the first position, and sense a beam that passes through the optical lens and that is transmitted in the sensing element to obtain a second image having a second resolution when the optical lens is located at the second position; and the synthesizing unit is connected to the sensing element and is configured to synthesize the first image and the second image, so as to obtain a third image having a third resolution, wherein the third resolution is greater than the first resolution and the second resolution.
8. The image pickup device according to claim 7, wherein the driving unit is a motor.
9. The image pickup device according to claim 7, wherein the synthesizing unit synthesizes the first image and the second image into the third image by using an image interpolation technology.
10. The image pickup device according to claim 7, wherein the first position is spaced from the second position for 3 pixels.
11. An electronic device, comprising: a housing; and an image pickup device, disposed in the housing, comprising an optical lens, a driving unit, a sensing element, and a synthesizing unit, wherein: at least a part of the optical lens is exposed out of the housing; the driving unit is connected to the optical lens and is configured to move the optical lens, according to a sensed result by a motion sensor, and maintain an optical axis to be perpendicular to the sensing element, and to drive the optical lens to move from a first position to a second position in a direction along a non-optical axis; the sensing element is configured to sense a beam that passes through the optical lens and that is transmitted in the sensing element to obtain a first image having a first resolution when the optical lens is located at the first position, and sense a beam that passes through the optical lens and that is transmitted in the sensing element to obtain a second image having a second resolution when the optical lens is located at the second position; and the synthesizing unit is connected to the sensing element and is configured to synthesize the first image and the second image, so as to obtain a third image having a third resolution, wherein the third resolution is greater than the first resolution and the second resolution.
12. The electronic device according to claim 11, wherein the driving unit is a motor.
13. The electronic device according to claim 11, wherein the synthesizing unit synthesizes the first image and the second image into the third image by using an image interpolation technology.
14. The electronic device according to claim 11, wherein the first position is spaced from the second position for 3 pixels.
15. The electronic device according to claim 11 is a mobile phone, a personal digital assistant device, or a wearable device.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
[0034] First, an image pickup device of the present invention is illustrated. Referring to
[0035] How the image pickup device 2 obtains a high-resolution image is described below. The “resolution” in this specification refers to the number of pixel points included in a unit length, and it determines an elaborate degree of details of a bitmap. Generally, a higher resolution indicates a clearer image. Referring to
[0036] Step S1: a beam L that passes through the optical lens 21 and that is transmitted to the sensing element 22 is sensed to obtain a first image having a first resolution when the optical lens 21 is located at a first position P1. Step S2: the optical lens 21 is driven, by the driving unit 24, to move from the first position P1 to a second position P2 in a direction D along a non-optical axis, so that the sensing element 22 senses a beam L that passes through the optical lens 21 and that is transmitted to the sensing element 22 to obtain a second image having a second resolution.
[0037] In this preferable embodiment, the first position P1 is spaced from the second position P2 for 3 pixels. Because in the present invention, a beam L that passes through the optical lens 21 and that is transmitted to the sensing element 22 is sensed by using the single sensing element 22 no matter the optical lens 21 is located at the first position P1 or the second position P2, the first resolution of the first image is the same as the second resolution of the second image and the present invention is not limited thereto. For example, two sensing elements may be disposed in an image pickup device, to respectively sense beams that pass through an optical lens and that are transmitted thereto when the optical lens is located at a first position and a second position. Therefore, a first resolution of a first image may be different from a second resolution of a second image. For another example, the distance between the first position P1 and the second position P2 can be any one that enables an optimum interpolation result.
[0038] Step S3: the first image and the second image are synthesized by the synthesizing unit 23, so as to obtain a third image having a third resolution, where a third resolution of the third image is greater than the first resolution of the first image and a second resolution of the second image. In addition, in this preferable embodiment, the synthesizing unit 23 synthesizes the first image and the second image by using an image interpolation technology.
[0039] Furthermore, referring to
[0040] Specifically, in this preferable embodiment, the synthesizing unit 23 searches for a second image block 421 closest to the first image block 411 of the first image 41 in the second image 42 by computing a peak signal-to-noise ratio (PSNR). The peak signal-to-noise ratio can be used to determine whether the second image block 421 of the second image 42 is closest to the first image block 411 of the first image 41, because the peak signal-to-noise ratio is an objective standard for evaluating a similarity degree of two images and a higher peak signal-to-noise ratio indicates a smaller image phase difference.
[0041] Further, in the third image 43, in addition to that the third image block 431 is composed of the first image block 411 of the first image 41 and the second image block 421 of the second image 42, any other image block in the third image 43 is also composed of a corresponding image block in the first image 41 and a corresponding image block in the second image 42. Therefore, the third image 43 can retain separate details of the first image 41 and the second image 42. Therefore, the third resolution of the third image 43 is greater than the first resolution of the first image 41 and the second resolution of the second image 42.
[0042] However, the above is only an embodiment, the method for interpolating an image by the synthesizing unit 23 and the method for searching for the second image block 421 closest to the first image block 411 of the first image 41 from the second image 42 are not limited to the above, and those ordinarily skilled in the art could make any equivalent design change according to actual application requirements. For example, the synthesizing unit 23 may further search for the second image block 421 closest to the first image block 411 of the first image 41 from the second image 42 by using a mean-residual normalized correlation method (ZNCC) in addition to computing a peak signal-to-noise ratio. Still for example, the flow of step S3 shown in
[0043] In addition, the existing image pickup device 2 generally is provided with an optical image stabilization (01S) function. That is, a motion sensor (not shown; for example, a gyro) may be disposed in the image pickup device 2, and the driving unit 24 may drive, according to a sensed result by the motion sensor, the optical lens 21 to move, so as to maintain the optical axis 29 to be perpendicular to the sensing element 22, thereby preventing from photographing a fuzzy image. It needs to be specially noted that if the method for obtaining an image of the present invention is applied to an image pickup device 2 that is originally provided with an optical image stabilization function, the driving unit 24 that is originally disposed in the image pickup device 2 is directly used to drive the optical lens 21 to move from the first position P1 to the second position P2 in the direction D along the non-optical axis in step S2. Therefore, by using the image pickup device 2 that is originally provided with an optical image stabilization function, a high-resolution image can be obtained without additionally disposing a driving unit 2, thereby not increasing the manufacturing cost.
[0044] Referring to
[0045] As can be known from the above, by the method for obtaining an image and the image pickup device and the electronic device using the same, a high-resolution image can be obtained by using a single optical lens only. Therefore, a manufacturing cost of the image pickup device can be effectively reduced, and meanwhile, a volume of the image pickup device may not be increased by a large margin, which is beneficial to development of an electronic device using an image pickup device in a trend towards light, thin, short and small.
[0046] The above are only the most preferred embodiments of the present invention, and the present invention needs not be limited to the disclosed embodiments. Therefore, all equivalent changes or modifications included within the spirit and scope of the present invention fall within the scope of the claims of the present invention.