Imaging apparatus, control method thereof, and program
Patent Information
- Application Number
- JP2021175905
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing methods for generating composite images using split exposure times fail to account for individual differences in the ability to stabilize a camera, leading to potential image blur and noise.
An imaging device that includes shake detection, correction, and exposure time adjustment based on the amount of shake correction possible, allowing for optimal exposure times and reduced image blur and noise in composite images.
The solution enables the generation of suitable composite images with reduced blur and noise by dynamically adjusting exposure times based on shake correction capabilities.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to a technique for synthesizing a plurality of captured images. [Background technology]
[0002] A conventional technique is known in which multiple images are captured with an exposure time that does not cause image shake, and then the resulting images are combined while correcting misalignment, thereby generating a composite image with little noise while preventing image shake.
[0003] For example, Patent Document 1 discloses a technology for a camera system that divides a set exposure time into multiple exposures and synthesizes the resulting multiple images, in which shake applied to the lens is detected and the exposure time is set based on the shake detection result. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Laid-Open No. 2006-86978 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the method disclosed in the above-mentioned Patent Document 1, because the divided exposure times are set uniformly, if the shake state changes while capturing multiple images, the exposure times may become inappropriate. For example, the skill to hold a camera steadily varies from person to person, and therefore some photographers may not be able to maintain a constant degree of shake during capture.
[0006] The present invention has been made in view of the above problems, and aims to provide a technique that can obtain a suitable composite image with reduced image blur and less noise. [Means for solving the problem]
[0007] In order to solve this problem, for example, an imaging device of the present invention has the following configuration: An imaging device having an imaging means, which synthesizes a plurality of images obtained by successively photographing the images using the imaging means to generate a composite image, a correction unit that detects the amount of shake of the imaging device and corrects image shake by changing the position of a correction member based on the amount of shake; an acquisition unit that acquires a correctable amount representing a degree of correction that can be made by the correction unit from the current position of the correction member and the amount of runout; a determining means for determining an exposure time for the next photographing based on the correctable amount acquired by the acquiring means when photographing for generating the composite image is being performed; and a combining means for combining a plurality of images obtained by photographing based on the exposure time determined by the determining means. [Effects of the Invention]
[0008] According to the present invention, it is possible to obtain a suitable composite image with reduced image blur and less noise. [Brief explanation of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram illustrating the configuration of an imaging apparatus according to an embodiment. [Figure 2] 10 is a flowchart showing the procedure of a composite image generation process in the embodiment. [Figure 3] 5A to 5C are diagrams for explaining calculation of the shake correction possible amount and setting of imaging conditions in the embodiment. [Figure 4] 10 is a flowchart showing the procedure of alignment processing in the embodiment. [Figure 5] 5A and 5B are diagrams for explaining a method for setting a synthesis ratio in the embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0010] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the claimed invention. Although multiple features are described in the embodiments, not all of these multiple features are necessarily essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same reference numerals are used to designate the same or similar components, and redundant explanations will be omitted.
[0011] Fig. 1 is a block diagram showing the configuration of an image capturing device 100 according to this embodiment. Typical image capturing devices are digital cameras and digital video cameras, but other devices with image capturing functions, such as smartphones and tablet PCs, may also be used. Furthermore, while Fig. 1 shows an image capturing device with an interchangeable lens, an image capturing device with an integrated lens may also be used.
[0012] 1, shutter unit 105 is a mechanical focal plane shutter and includes leading and trailing blades. When not shooting images or when shooting moving images, shutter unit 105 moves its leading and trailing blades to positions retracted from the shooting optical axis, allowing a shooting light beam to pass to image sensor 106. When shooting images, shutter unit 105 allows a shooting light beam to pass by moving its leading blades in an exposure run from a light-blocking position to an exposure position. After a set exposure time (shutter time) has elapsed, the trailing blades in a light-blocking run from the exposure position to the light-blocking position, thereby completing the shooting of one piece of image data.
[0013] The above is exposure control that adjusts the amount of light using the mechanical first curtain and mechanical second curtain of the shutter unit 105. However, it is also possible to adopt a method of exposure control that combines an electrical reset with the second curtain of the shutter unit 105, using an electronic first curtain and a mechanical second curtain.
[0014] An object image formed through an interchangeable-lens or integrated-lens imaging optical system is focused on the light-receiving surface of an image sensor 106, which may be a CCD (charge-coupled device) or a CMOS (complementary metal-oxide semiconductor) sensor. The image sensor 106 converts the amount of light focused on the light-receiving surface into an electrical signal. The image sensor 106 in this embodiment has a mechanism for optically correcting image blur by moving in a rotational direction around the optical axis and in a direction perpendicular to the optical axis. Image blur may be optically corrected by moving a lens included in the imaging optical system in a direction perpendicular to the optical axis, or image blur may be corrected by combining a lens and the image sensor 106. The target movement amount of the lens when correcting image blur using a lens, and the target movement amount when correcting image blur by combining a lens and the image sensor 106 may be determined using a known method. Other known methods may also be used to optically correct image blur. In either case, the calculation of the possible shake correction amount and the determination of the exposure time according to the possible shake correction amount may be performed based on the same concept as in steps S204 and S205, which will be described later.
[0015] The AD converter 107 performs noise removal processing, gain adjustment processing, and AD conversion processing on the electrical signal output from the image sensor 106. The timing generator 108 generates and outputs signals related to the drive timing of the image sensor 106 and the output timing of the AD converter 107 in accordance with instructions from the camera control unit 115, and controls each of them.
[0016] The image processing circuit 109 performs processes such as pixel interpolation and color conversion on the image data output from the AD converter 107, and then stores the processed image data in the internal memory 110. The display unit 111 displays the image data stored in the internal memory 110 along with shooting information and the like. The compression / expansion processing unit 131 compresses or expands the data stored in the internal memory 110 according to the image format. The storage memory 113 also stores various data such as parameters. The operation unit 114 is a user interface that allows the user to perform various menu operations and mode switching operations, and is composed of various switches, buttons, a touch panel, and the like.
[0017] The camera control unit 115 is composed of a calculation unit such as a CPU (Central Processing Unit). The camera control unit 115 executes various control programs stored in the internal memory 110 in response to user operations via the operation unit 114. The control programs are programs for performing, for example, image stabilization control, automatic exposure control, and automatic focus adjustment control. In the case of an interchangeable lens type imaging device, the camera control unit 115 transmits information between the imaging device and the lens via the communication unit 116.
[0018] A shutter driver 128 drives the shutter unit 105. A luminance signal detector 130 detects the signal that is read out from the image sensor 106 and passed through the AD converter 107 as the luminance of the subject and scene.
[0019] The exposure control unit 129 calculates the exposure time, which is one of the exposure values, based on the luminance information obtained by the luminance signal detection unit 130, and notifies the shutter drive unit 128 of the calculation result. The exposure control unit 129 also simultaneously controls the amplification of the image signal read out from the image sensor 106. The amplification factor at this time corresponds to the ISO sensitivity, and automatic exposure control (AE control) is performed by adjusting the aperture value of the aperture of the photographing optical system, the exposure time, and the ISO sensitivity. Note that, as will be described in detail later, the exposure control unit 129 also controls the shutter drive unit 128 based on information from the image sensor position detection unit 120 and the shake detection unit 112.
[0020] The shake detection unit 112 detects shake and vibration applied to the imaging device 100. Generally, a gyro sensor (hereinafter simply referred to as a gyro) is used as a sensor for detecting vibrations such as shake and vibration, and detects the angular velocity of the shake and vibration.
[0021] An image sensor driving unit 121 drives the image sensor 106. An image sensor position detection unit 120 detects the position of the image sensor 106, which is driven in a direction perpendicular to the optical axis. The image sensor driving unit 121 drives the image sensor 106. An image sensor PID control unit 122 performs PID control (ratio control, integral control, differential control) on the deviation between a target movement amount of the image sensor 106 and the current position detected by the image sensor position detection unit 120. PID control is a common technique, so a detailed description thereof will be omitted.
[0022] Next, a method for calculating the target movement amount of the image sensor 106 will be described.
[0023] Converting the angular velocity detected by the shake detection unit 112 into an angle with a dimension increased by one enables position control of the image sensor 106. Methods for increasing the dimension of the angular velocity by one include integration processing by the integrator 125 or low-pass filter processing (LPF processing), but in this embodiment, integration processing is used.
[0024] The shake correction amount calculation unit 124 multiplies the output value of the integrator 125 by the lens sensitivity information acquired by the communication unit 116 to calculate the target movement amount of the image sensor 106 for correcting image shake. The lens sensitivity information is a value that changes depending on the focal length of the lens and the subject distance, and weights the optimal shake correction amount depending on each lens and each state of the lens.
[0025] Next, a method for generating a composite image in this embodiment will be described.
[0026] 2 is a flowchart showing the composite image generation process in this embodiment. The composite image generation process by continuous shooting in this embodiment is executed when the user operates the operation unit 114 to select a composition mode. The camera control unit 115 executes a program stored in the internal memory 110 and controls the image processing circuit 109 and the like, thereby realizing this composite image generation process. The processing program may be recorded on a computer-readable recording medium, for example.
[0027] First, in S201, the camera control unit 115 sets imaging conditions such as exposure time for a subject to be imaged. The imaging conditions set here are generally determined according to the focal length of a lens, and are exposure times that do not cause camera shake.
[0028] In S202, camera control unit 115 starts capturing a plurality of images. Note that the number of images to be captured to create a composite image can be set in advance by the user via operation unit 114. For the sake of concrete implementation, the following description will be given assuming that four images are captured.
[0029] In S203, the camera control unit 115 determines whether or not capturing of all images has been completed. If the camera control unit 115 determines that capturing of the intended number of images (four in this embodiment) has been completed, the process proceeds to S207, and if it determines that capturing of the intended number of images has not been completed, the process proceeds to S204.
[0030] In S204, the camera control unit 115 controls the shake correction amount calculation unit 124 to calculate the amount of shake correction that can be performed. Note that the calculation of the amount of shake correction that can be performed will be described later.
[0031] In S205, the camera control unit 115 sets the imaging conditions for subsequent imaging in accordance with the possible amount of shake correction calculated in S204. The setting of the imaging conditions will be described later.
[0032] In S206, the camera control unit 115 controls the image sensor 106 and the exposure control unit 129 to capture an image under the imaging conditions set in S205. The captured image is temporarily stored in the internal memory 110. Then, the camera control unit 115 returns the process to S203.
[0033] After the above process is repeated and the desired number of images are stored in the internal memory 110, the camera control unit 115 aligns the images stored in the internal memory 110 in S207. Then, in S208, the camera control unit 115 generates a composite image using the images after alignment. The generated composite image is stored as an image file in, for example, a storage medium (not shown).
[0034] Next, with reference to FIGS. 3(a) to 3(d), the calculation of the shake correction possible amount in step S204, the setting of the imaging conditions in step S205, and the imaging in step S206 in this embodiment will be described in more detail.
[0035] 3(a) to 3(d), the rightward direction of the horizontal axis indicates the flow of time, representing the elapsed time from the start time of capturing the first image. The vertical axis represents the change over time in the drive amount (position) of the image sensor 106 for correcting image blur. The center line of the vertical axis represents the position of the image sensor 106 when it is not being driven (at the drive center position), and the top and bottom lines represent the positions of the image sensor 106 when it has been driven to its limits.
[0036] 3(a) shows the state before exposure of the first image begins, with the image sensor 106 positioned on the center line at this time. The camera control unit 115 calculates the amount of shake compensation possible at this time based on the distance from the current position of the image sensor 106 to the nearest boundary of the movable range of the image sensor 106 (shortest distance 31 to the upper or lower end) and the amount of shake detected by the shake detection unit 112. Once the amount of shake compensation possible is calculated, the camera control unit 115 changes the first imaging conditions so that the exposure time becomes longer as the amount of shake compensation possible increases.
[0037] Here, when the distance between the current position of the image sensor 106 and either the upper end or the lower end of the position driveable range, whichever is closer, is d, and the amount of shake detected by the shake detection unit 112 is R, the camera control unit 115 calculates the shake correction possible amount C using a function f(d, R) that takes d and R as arguments. An example of the function f(d, R) is as follows. C = f(d, R) = α × d - β × R Here, α and β are positive coefficients. As shown in the above formula, the possible shake compensation amount C increases as the distance d increases and the shake amount R decreases. Conversely, the possible shake compensation amount C decreases as the distance d decreases and the shake amount R increases.
[0038] The possible shake correction amount C may be calculated by referring to a table corresponding to the above function f(d, R).
[0039] 3(b) shows the state before exposure of the second image begins, with the image sensor 106 positioned close to the top edge. In this case, the distance 32 from the image sensor 106 to the top edge is small, leaving little room for shake correction, and the calculated amount of shake correction possible is small. As a result, the camera control unit 115 changes the second imaging conditions to shorten the exposure time.
[0040] 3(c) and (d) show the state before the start of exposure for the third and fourth images, respectively, and the imaging conditions for each are determined in the same manner as explained above.
[0041] A specific example of the above is shown below: The exposure time set in S201 is defined as Ts, and the maximum value of the shake correction possible amount C is defined as Cmax, and the minimum value is defined as Cmin.
[0042] In this case, in S205, the camera control unit 115 determines the exposure time T based on the exposure time Ts set in S201, for example, according to the following formula. T=Ts+{C-Cmax} According to the above formula, the larger the possible amount of shake correction C (the closer it is to Cmax), the closer the exposure time T is to the exposure time Ts set in S205. On the other hand, the smaller the possible amount of shake correction C (the closer it is to Cmin), the shorter the exposure time T (provided that T>0 is satisfied).
[0043] Note that if the subject being captured is a moving object, an unnecessarily long exposure time can easily increase the degree of image blur of the moving object. Therefore, when the presence of a moving object is detected, the camera control unit 115 may set a lower upper limit for the exposure time compared to when the moving object is not present. The exposure time T may also be selected from multiple preset exposure times depending on the amount of shake correction possible C. For example, the exposure time Ts may be set as a first exposure time, and a second exposure time may be set as an exposure time that is a predetermined time shorter than the exposure time Ts. The first exposure time may be selected when the amount of shake correction possible C is equal to or greater than a threshold, and the second exposure time may be selected when the amount of shake correction possible C is less than the threshold. Furthermore, to prevent the exposure times for each image from differing significantly, upper and lower limits may be set so that the exposure time falls within a predetermined range. After the exposure time is determined as described above, at least the ISO sensitivity is set based on the brightness information. The aperture value is set along with the ISO sensitivity if not manually set by the user. A known method may be used to set the ISO sensitivity and aperture value based on the brightness information.
[0044] Next, the alignment process in S207 will be described. Note that when this process is performed, the desired number of images has already been acquired. The following description will be made with reference to the flowchart in FIG.
[0045] In S401, the image processing circuit 109 acquires a reference image for alignment from each of the images stored in the internal memory 110. The reference image for alignment is, for example, the image captured earliest in the image sequence. Images other than the reference image are then set as images to be corrected.
[0046] Next, in S402, the image processing circuit 109 acquires one correction target image for the alignment process. The correction target image is an image other than the reference image acquired in S401, and is assumed to have not yet undergone alignment. If the image captured earliest is used as the reference image, the image processing circuit 109 may acquire the correction target images sequentially in the order in which they were captured.
[0047] In S403, the image processing circuit 109 calculates the amount of positional deviation between the reference image and the correction target image. An example of the calculation method will be described below.
[0048] First, the image processing circuit 109 sets multiple blocks in the reference image. Preferably, each block is set to have the same size. Next, the image processing circuit 109 sets a search range in the correction target image at the same position as each block in the reference image, but with a larger range than the blocks in the reference image. Finally, the image processing circuit 109 calculates a corresponding point in each search range in the correction target image that minimizes the sum of absolute differences (SAD) in luminance between the block in the reference image and the corresponding point. The image processing circuit 109 calculates the positional deviation between the images as a vector from the center of the block in the reference image and the corresponding point. In calculating the corresponding point, the image processing circuit 109 may use, in addition to SAD, the sum of squared differences (SSD) or normalized cross correlation (NCC).
[0049] In S404, the image processing circuit 109 calculates a transformation coefficient from the amount of positional deviation between the reference image and the target image. The image processing circuit 109 uses, for example, a projection transformation coefficient as the transformation coefficient. However, the transformation coefficient is not limited to the projection transformation coefficient, and an affine transformation coefficient or a simplified transformation coefficient using only horizontal and vertical shifts may also be used.
[0050] In S405, the image processing circuit 109 performs conversion on the correction target image using the conversion coefficient calculated in S404, and generates a corrected image in which the amount of deviation has been corrected.
[0051] For example, the image processing circuit 109 can generate a corrected image I' by transforming the target image according to the following equation (1).
[0052]
number
[0053] In equation (1), (x', y') indicates the coordinates after transformation, and (x, y) indicates the coordinates before transformation. Matrix A represents the transformation coefficients calculated by the image processing circuit 109 in S404.
[0054] In S406, the image processing circuit 109 determines whether alignment has been performed for all images other than the reference image. If it is determined that alignment has been performed for all images other than the reference image, the image processing circuit 109 ends the processing shown in this flowchart. If it is determined that an unprocessed image exists, the image processing circuit 109 returns the processing to S402.
[0055] When the alignment process is completed for all of the captured images in the manner described above, the image synthesis process in S208 is carried out.
[0056] In the image synthesis process, a reference image is synthesized with multiple corrected images that have been subjected to alignment processing other than the reference image. The image synthesis process is performed by averaging the signals at corresponding coordinates of each image, and random noise within the images is reduced by averaging.
[0057] The composition ratio of each image corresponds to the exposure time of each image. In this embodiment, as shown in FIG. 5, the composition ratio is set to be higher for images captured with a longer exposure time. This makes it possible to reduce noise in the composite image because the composition ratio of images with less random noise becomes relatively higher. Furthermore, when the exposure times are equal, the composition ratio of each image is set to be uniform. Note that the method for determining the composition ratio is not limited to this, and other methods may be used as long as they minimize random noise in the composite image.
[0058] Although preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments and various modifications and variations are possible within the scope of the gist thereof. In the above-described embodiment, the ISO sensitivity is determined based on exposure time and luminance information, and the image blending ratio is set according to the exposure time on the assumption that, for the same luminance, the ISO sensitivity decreases as the exposure time increases. However, since the influence of random noise increases with increasing ISO sensitivity, the image blending ratio may be set according to the ISO sensitivity (the blending ratio may be increased for images with lower ISO sensitivity).
[0059] (Other Examples) The present invention can also be realized by supplying a program that realizes one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the computer of the system or device read and execute the program.The present invention can also be realized by a circuit (e.g., ASIC) that realizes one or more functions.
[0060] The invention is not limited to the above-described embodiments, and various changes and modifications can be made without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0061] 100... imaging device, 106... imaging element, 112... shake detection unit, 115... camera control unit, 120... imaging element position detection unit, 124... shake correction amount calculation unit, 121... imaging element drive unit
Claims
1. An imaging device having an imaging means, which performs continuous shooting using the imaging means to obtain a plurality of images used for generating a composite image, a correction unit that detects an amount of shake of the imaging device and performs image shake correction by changing a position of a correction member based on the amount of shake; an acquisition means for acquiring a correctable amount representing a degree of correction that can be performed by the correction means, based on a current position of the correction member and the amount of runout; a determination means for determining an exposure time for the next photographing based on the correction possible amount acquired by the acquisition means when photographing for generating the composite image is being performed; having an exposure time determining unit determining whether or not the exposure time is greater than the exposure time determined by the exposure time determining unit;
2. The acquisition means calculates the amount of correction possible based on a distance from a nearest boundary of a range in which the correction member can move and the amount of shake.
2. The imaging device according to claim 1 .
3. The determining means determines the exposure time to be shorter as the correctable amount is smaller.
3. The imaging device according to claim 1, wherein the first and second lenses are arranged in a first direction.
4. a predetermined one of the plurality of images is set as a reference image, and the remaining images are set as correction target images, a vector is obtained that represents an amount of deviation between the reference image and the one correction target image, and a correction image is generated by correcting pixel positions of the one correction target image in accordance with the vector, for the remaining correction target images; a synthesis means for synthesizing the reference image and the correction target image in accordance with a ratio of exposure times of the reference image and the correction target image, 4. The imaging device according to claim 1, further comprising:
5. 5. The image pickup apparatus according to claim 4, wherein the composition means increases the composition ratio for an image having a longer exposure time.
6. 6. The imaging apparatus according to claim 1, wherein the correction member is an imaging element included in the imaging means.
7. 6. The imaging apparatus according to claim 1, wherein the correction member is a lens included in an imaging optical system.
8. 8. The image pickup apparatus according to claim 1, wherein the determining unit determines the ISO sensitivity based on luminance information and the determined exposure time.
9. A method for controlling an imaging device having an imaging means, the method comprising the steps of: acquiring a plurality of images to be used for generating a composite image by performing continuous shooting using the imaging means, the method comprising the steps of: a correction step of detecting an amount of shake of the imaging device and correcting image shake by changing a position of a correction member based on the amount of shake; an acquisition step of acquiring a correctable amount representing a degree of correction that can be performed by the correction step from the current position of the correction member and the amount of runout; a determination step of determining an exposure time for the next photographing based on the correctable amount acquired in the acquisition step when photographing for generating the composite image is being performed; having A plurality of images captured based on the exposure time determined in the determining step are used to generate the composite image.
23. A method for controlling an imaging apparatus comprising the steps of:
10. A program for causing a computer to execute each step of the method according to claim 9 when the program is read and executed by the computer.
