Image processing device, imaging device, and control method and program for image processing device
The image processing device uses selective alignment methods to balance processing time and accuracy in image blur correction, addressing the inefficiencies of existing techniques by employing rapid pixel-level and high-precision sub-pixel alignment strategies based on shooting conditions.
Patent Information
- Application Number
- JP2020158971
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-23
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2040-09-23
AI Technical Summary
Existing image-synthesis image blur correction techniques require long processing times and may suffer from reduced positioning accuracy due to the use of multiple images.
An image processing device that employs a first positioning method for rapid alignment with pixel-level accuracy and a second positioning method for high-precision alignment using sub-pixel geometric transformation, selectively choosing between these methods based on shooting conditions to balance processing time and accuracy.
The solution achieves both reduced image alignment processing time and improved accuracy in image blur correction by strategically utilizing different alignment methods depending on exposure time, number of images, and camera shake.
Smart Images

Figure 0007572822000001 
Figure 0007572822000002 
Figure 0007572822000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an image blur correction technique for an imaging device such as a digital camera or a digital video camera. [Background technology]
[0002] Patent Document 1 describes a technology (hereinafter referred to as image synthesis and image blur correction) that aligns and synthesizes multiple images taken with short exposure times to obtain an image equivalent to a long exposure without image blur caused by camera shake.
[0003] Furthermore, a technique for aligning multiple images is described in Patent Document 2. In this technique, angular shake on the pitch and yaw axes and translational shake in the x and y directions are corrected by translating a RAW image obtained from an image sensor with a Bayer array, and then rotational shake on the roll axis is corrected after converting the RAW image into a YUV image. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 4418632 [Patent Document 2] Patent No. 05976315 Summary of the Invention [Problem to be solved by the invention]
[0005] However, when performing image synthesis image blur correction using a large number of images by the technique disclosed in Patent Document 1, there is a risk that the processing time will be long if alignment correction is performed using the technique disclosed in Patent Document 2.
[0006] The present invention has been made in view of the above-mentioned problems, and has an object to achieve both a reduction in image alignment processing time and high alignment accuracy in image synthesis and image blur correction. [Means for solving the problem]
[0007] The image processing device according to the present invention includes a first alignment means for aligning a plurality of images captured in succession, a second alignment means which requires a longer processing time for aligning the plurality of images than the first alignment means but has higher alignment accuracy than the first alignment means, a selection means for selecting an alignment means to be used for aligning the plurality of images from the first alignment means and the second alignment means according to shooting conditions of the plurality of images, and a synthesis means for synthesizing the plurality of images aligned using the alignment means selected by the selection means. The first alignment means aligns the multiple images by translating a first image, in which each pixel of an imaging means for capturing the image has one piece of color information, in units of pixel periods, and the second alignment means converts the first image into a second image, in which each pixel has multiple pieces of color information, and performs geometric transformation, including translation and rotation, with sub-pixel accuracy on the second image to align the multiple images. It is characterized by the above.
[0008] The present invention also relates to Image Processing The device is The imaging system includes a first alignment means for aligning a plurality of images captured in succession, a second alignment means which requires a longer processing time for aligning the plurality of images than the first alignment means but has higher alignment accuracy than the first alignment means, a selection means for selecting an alignment means to be used for aligning the plurality of images from the first alignment means and the second alignment means according to shooting conditions of the plurality of images, and a synthesis means for synthesizing the plurality of images which have been aligned using the alignment means selected by the selection means, wherein the first alignment means aligns the plurality of images by translating a first image, which has one color information for each pixel of an imaging means which captures the images, in units of pixel periodicity, and the shooting conditions include at least one of an exposure time for each of the plurality of images, or the number of images captured in succession, or a vibration of the imaging device, or a time elapsed since the start of shooting. Effect of the Invention
[0009] According to the present invention, it is possible to achieve both a reduction in image alignment processing time and high alignment accuracy in image synthesis image blur correction. [Brief description of the drawings]
[0010] [Figure 1] 1 is a block diagram showing the configuration of an image capture apparatus equipped with an image blur correction device according to a first embodiment of the present invention. [Diagram 2] 5 is a flowchart showing an image blur correction operation in the first embodiment. [Diagram 3] 11A and 11B are diagrams showing items to be determined when using the first and second alignment units. [Figure 4] 13A to 13C are diagrams for explaining the operation of a synthesis unit according to the second embodiment. [Diagram 5] 10 is a flowchart showing an image blur correction operation in the second embodiment. [Figure 6] 13A to 13C are diagrams for explaining the operation of a synthesis unit according to the third embodiment. [Figure 7]10 is a flowchart showing an image blur correction operation in the third embodiment. [Figure 8] 13A to 13C are diagrams for explaining the operation of a synthesis unit in the fourth embodiment. [Figure 9] 13 is a flowchart showing an image blur correction operation in the fourth embodiment. [Figure 10] FIG. 13 is a diagram for explaining an operation modification example in the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0012] [First embodiment] <Overall configuration> 1 is a block diagram showing the configuration of an image capture device 11 equipped with an image stabilization device according to a first embodiment of the present invention. In the following description, the shake of the image capture device 11 itself is expressed as "shake," and the shake of a subject image on an imaging surface caused by the shake of the image capture device 11 is expressed as "blur."
[0013] The imaging device 11 includes an imaging element 12 that captures an image of a subject. The imaging element 12 has a Bayer array color filter, and an image signal obtained from the imaging element 12 is a RAW image signal having one piece of color information for each pixel. The composition unit 13 aligns and composes each image output in time series by the imaging element 12.
[0014] The alignment of images in the synthesis unit 13 is performed using a first alignment unit 13a and a second alignment unit 13b. The first alignment unit 13a aligns the RAW image with translational movement with a periodic unit accuracy of two pixels using a motion vector between images (first alignment). The second alignment unit 13b converts the RAW image into a YUV image having multiple color information for each pixel, and performs geometric transformation including translational components and rotational components with sub-pixel accuracy on the YUV image using a motion vector between images to align the images (second alignment). The processing in the second alignment unit 13b is different from the processing in the first alignment unit 13a in that a conversion process to a YUV image and a geometric transformation process are added. Therefore, the processing speed of the first alignment unit 13a is faster than that of the second alignment unit 13b, and the processing time of the first alignment unit 13a is shorter than that of the second alignment unit 13b. On the other hand, the alignment process by the second alignment unit 13b takes time, but its accuracy is higher than that of the alignment process by the first alignment unit 13a. The synthesis unit 13 synthesizes the images aligned by either the first alignment unit 13a or the second alignment unit 13b.
[0015] The control unit (imaging control unit, correction control unit) 14 selects either the first alignment unit 13a or the second alignment unit 13b of the composition unit 13 based on the shooting conditions of the imaging device 11 acquired from the shooting condition acquisition unit 15 and the detection results of the subject detection unit 17 and the shake detection unit 18 described below. Then, the control unit 14 causes the selected alignment unit to align the images, and causes the composition unit 13 to compose the aligned images. The image composed by the composition unit 13 is recorded in the recording unit 16. The control unit 14 also has a function of controlling the entire imaging device 100.
[0016] The subject detection unit 17 detects the size of the subject and the magnitude of the rotational blur of the subject. The subject recognition method may use a known technique, and the size of the subject may be detected based on the recognition result. The magnitude of the rotational blur of the subject is calculated from the motion vector of the subject. The detection result by the subject detection unit 17 is output to the control unit 14.
[0017] The shake detection unit 18 detects the shake applied to the imaging device 11. The output of the shake detection unit 18 is output to the control unit 14. The output of the shake detection unit 18 is converted by the calculation unit 19 into a signal suitable for image blur correction. The signal of the shake correction target value output from the calculation unit 19 is input to the drive unit 20, and the drive unit 20 moves the imaging element 12 in the direction of the arrow 12a or the like. That is, by moving the imaging element 12 in response to the detected shake, the image blur on the imaging surface of the imaging element 12 is canceled. That is, the imaging element 12 serves both as an imaging means for imaging a subject and as an image blur correction means. The method of optically correcting image blur in this way is defined as optical image blur correction, and the image blur correction using the image synthesis unit 13 is defined as image image blur correction.
[0018] In optical image stabilization, sufficient image stabilization cannot be performed unless the shake detection accuracy of the shake detection unit 18 or the movement accuracy of the image sensor 12 is high. Therefore, the image stabilization accuracy can be improved by performing image stabilization through image processing on the stabilization residue that remains on the imaging plane after optical image stabilization.
[0019] <Explanation of the flow chart> 2 is a flowchart for explaining the operation of the synthesis unit 13 and the control unit 14. The operation of this flowchart is started by an instruction to start shooting, such as the operation of the release button of the imaging device 11.
[0020] In step S201, the control unit 14 receives the shooting conditions from the shooting condition acquisition unit 15. The shooting conditions include the number of shots, the exposure time of each image, and the amount of rotational camera shake. The number of shots and the exposure time of each image may be set directly by the user, or may be calculated and set within the imaging device. When calculated and set within the imaging device, each item is determined based on the total exposure time set by the user, the amount of camera shake, and the optical image stabilization performance. The smaller the amount of camera shake and the higher the optical image stabilization performance, the longer the exposure time of each image is set. The number of shots is calculated by dividing the total exposure time set by the user by the exposure time of each image. The amount of rotational camera shake is detected by the shake detection unit 18.
[0021] In step S202, the control unit 14 continuously captures a plurality of images with the number of images and exposure time set in step S201 (captures a plurality of images continuously).
[0022] In step S203, the control unit 14 acquires from the shake detection unit 18 the amount of rotational shake during all of the continuous shooting of a plurality of images.
[0023] In step S204, the control unit 14 determines whether the conditions for using the first alignment unit 13a are met, using the shooting conditions acquired from the shooting condition acquisition unit 15 and the subject information detected by the subject detection unit 17. If it is determined that the conditions are met, the process proceeds to S205, and if it is determined that the conditions are not met, the process proceeds to S206.
[0024] Here, the determination in step S204 will be described. Fig. 3 is a diagram showing a determination item (determination item of change in shooting conditions) of whether to use first alignment unit 13a or second alignment unit 13b in alignment for image synthesis in synthesis unit 13.
[0025] (Judgment criteria: exposure time of each image) When the exposure time of each image is equal to or shorter than the predetermined time, the first alignment unit 13a is used to shorten the processing time. On the other hand, when the exposure time of each image is longer than the predetermined time, the amount of blurring that appears in each image becomes large. If a motion vector is detected from a RAW image with a large amount of blurring, an error is likely to occur. In this case, however, the motion vector can be detected with high accuracy by converting the image into a YUV image using the second alignment unit 13b. Therefore, the first alignment unit 13a is used only when the exposure time is equal to or shorter than the predetermined time, thereby shortening the time while maintaining the alignment accuracy. The predetermined time is determined based on the allowable amount of blurring per image and the optical image stabilization performance. The larger the allowable amount of blurring is and the higher the optical image stabilization performance is, the longer the predetermined time is set.
[0026] (Determination criteria: number of shots) When the number of shots is equal to or greater than the predetermined number, the first alignment unit 13a is used to shorten the processing time. The second alignment unit 13b performs the process of converting a RAW image to a YUV image for the number of shots, so the processing time is long. However, the first alignment unit 13a performs alignment on the RAW image as is, and finally performs conversion to a YUV image only once, so the processing time is short. Therefore, when the number of shots is large, the processing time can be significantly shortened by using the first alignment unit 13a. When the number of shots is smaller than the predetermined number, the second alignment unit 13b, which has higher alignment accuracy, is used because the difference in processing time between the first and second alignment units 13a and 13b is small. The predetermined number is determined from the allowable time for alignment processing and the processing time for converting a RAW image to a YUV image. The longer the allowable time is, and the shorter the processing time for converting a RAW image to a YUV image, the larger the predetermined number is.
[0027] (Judgment criteria: amount of rotational shake during all shots) When the amount of rotational shake during all shooting is equal to or less than a predetermined amount, the first alignment unit 13a is used to shorten the processing time. When the amount of rotational shake is equal to or less than a predetermined amount, priority is given to time reduction by the first alignment unit 13a over alignment accuracy by the second alignment unit 13b, which performs geometric transformation including a rotational component. On the other hand, when the amount of rotational shake during all shooting is greater than the predetermined amount, alignment accuracy is prioritized and the second alignment unit 13b is used, since rotational shake is noticeable if alignment is performed only by translational movement. The greater the allowable amount of rotational shake, the larger the predetermined amount becomes.
[0028] The amount of rotational shake during all shooting may be detected by detecting the actual amount of shake during shooting, or may be estimated from the amount of rotational shake during aiming immediately before shooting. By performing alignment control based on the results of estimation before shooting, alignment can be started immediately after exposure of each image, thereby shortening the processing time.
[0029] (Judgment criteria: subject size and amount of rotational shake during all shots) When the size of the subject is equal to or smaller than a predetermined value or the amount of rotational shake during all shooting is equal to or smaller than a predetermined amount, the first alignment unit 13a is used to shorten the processing time. Conversely, when the size of the subject is larger than a predetermined value and the amount of rotational shake during all shooting is larger than a predetermined amount, the rotational shake of the subject is noticeable, so alignment accuracy is prioritized and the second alignment unit 13b is used.
[0030] The predetermined value for the size of the subject may be, for example, half the size of the screen. This is because if the subject is large, the blur of the subject becomes dominant when calculating the amount of movement for alignment from the motion vector of the entire screen. The predetermined amount for the amount of rotational shake is determined by the allowable amount of rotational shake of the subject after synthesis. The greater the allowable amount of rotational shake of the subject, the greater the predetermined amount.
[0031] The amount of rotational shake during all shooting may be detected by detecting the actual amount of shake during shooting, or may be estimated from the amount of rotational shake during aiming immediately before shooting. By performing alignment control based on the results of estimation before shooting, alignment can be started immediately after exposure of each image, thereby shortening the processing time.
[0032] It is not necessary to use all of the four judgment items, namely, the exposure time of each image, the number of shots, the amount of rotational shake during all shooting, and the size of the subject and the amount of rotational shake during all shooting, and it is sufficient to use at least one of the judgment items. When multiple judgment items are used, the final judgment may be made by taking a logical product or logical sum, or the judgment items may be prioritized.
[0033] In step S205, the first alignment unit 13a aligns the images, and in step S206, the second alignment unit 13b aligns the images.
[0034] In step S207, the synthesis unit 13 synthesizes the images aligned by the first alignment unit 13a or the second alignment unit 13b.
[0035] In this way, by switching between the first alignment unit with a fast processing speed and the second alignment unit with high alignment accuracy according to the imaging conditions, it is possible to achieve both high processing time and high alignment accuracy.
[0036] [Second embodiment] The configuration of the imaging device in this embodiment is the same as that of the first embodiment shown in Fig. 1, so a description thereof will be omitted. However, since the control unit 14 in this embodiment selects either the first alignment unit 13a or the second alignment unit 13b in the synthesis unit 13 or combines both based on the shooting conditions of the imaging device from the shooting condition output unit 15, the subject detection unit 17 may not be required.
[0037] Fig. 4 is a diagram for explaining the operation of the composition unit 13 in the second embodiment. In Fig. 4, the arrangement of each of the images 20a to 20c and 21a to 21c output from the imaging element 12 is made different in the vertical direction of the page, thereby expressing a compositional shift between each of the images.
[0038] 4, in accordance with instructions from the control unit 14, the synthesis unit 13 uses the first alignment unit 13a to align the composition of each image 20a to 20c acquired before a predetermined period has elapsed since the start of shooting. Then, from the image 21a acquired after the end of the predetermined period, the synthesis unit 13 uses the second alignment unit 13b to align the composition of each image. The reason for this will be explained below.
[0039] Before the imaging device 11 starts shooting, reaction forces and shocks are generated by driving components of the imaging device 11, such as the focusing operation of the optical system and the running and stopping of the shutter curtain. These reaction forces and shocks, together with the photographer's hand shake, cause a first shake in the imaging device 11. The shake caused by the mechanical parts of the imaging device 11 added to the hand shake in this way is called the first shake, and the shake caused only by the hand shake is called the second shake.
[0040] The shake detector 18 generally has a lower detection accuracy for the first shake than for the second shake. The shake of the imaging device 11 caused by the reaction force or impact described above is a high-frequency shake of, for example, about 30 Hz, which is a higher frequency than the camera shake caused by the photographer, which is distributed from 1 Hz to 10 Hz. In other words, during the first shake occurrence period, which is the first period including the camera shake caused by the reaction force or impact, it is necessary to correct the 30 Hz shake correction residual by aligning the images. Therefore, the images 20a to 20c are acquired at an exposure time sufficiently shorter than the 1 / 30 second period, for example, 1 / 90 second, and are aligned and combined.
[0041] Since the exposure time of each image is short, the alignment must be performed quickly, and the first alignment unit 13a is used to align the images. The first alignment unit 13a performs alignment with a first accuracy, but since the first accuracy uses only motion vectors, the time required for alignment is short. Therefore, each image captured with a short exposure time of 1 / 90th of a second can be aligned without delay. The composition unit 13 sequentially composes the images aligned by the first alignment unit 13a.
[0042] Since the first shake occurrence period is short, image degradation is unlikely to occur even if alignment is performed with the first accuracy. When the first shake generated by the imaging device 11 subsides, the first period transitions to the second period, which is the second shake occurrence period. Since the second period does not include high-frequency shake, images 21a to 21c are acquired with an exposure time of, for example, 1 / 30 seconds, and are aligned and synthesized.
[0043] Since each exposure time is long, there is plenty of time for alignment. Therefore, the second alignment unit 13b is used to align the images. The second alignment unit 13b performs alignment with a second accuracy, which is high because the alignment is performed using a motion vector and geometric transformation. The synthesis unit 13 sequentially synthesizes the images aligned by the second alignment unit 13b following the images aligned by the first alignment unit 13a.
[0044] Although the second vibration occurrence period is longer than the first vibration occurrence period, image degradation is unlikely to occur because alignment is performed by the highly accurate second alignment unit 13b.
[0045] In this way, the first alignment unit 13a is used during the first shake occurrence period, and the second alignment unit 13b is used during the second shake occurrence period. Here, since the first shake occurs immediately after the start of shooting, the first alignment unit 13a may be used for a predetermined period from the start of shooting, and the second alignment unit 13b may be used to align the images after the predetermined period.
[0046] 5 is a flowchart for explaining the operation of the synthesis unit 13 and the control unit 14. The operation of this flowchart is started by an instruction to start shooting, such as the operation of the release button of the imaging device 11.
[0047] In step S301, the control unit 14 receives shooting conditions from the shooting condition output unit 15. The shooting conditions include shooting time, shutter curtain speed, focus adjustment, amount of camera shake, and the like.
[0048] In step S302, the control unit 14 sets the exposure time and the number of shots for each image based on the obtained shooting conditions. Setting the exposure time and the number of shots for each image based on the shooting conditions (driving state of each element) will be described below.
[0049] (1) Shutter curtain speed When the shutter curtain speed is fast, the reaction force caused by the shutter curtain movement and the impact when the shutter curtain stops become large, so the first shake becomes large and the duration of the first shake may become long. Therefore, the exposure time of each image (20a to 20c in FIG. 4) during the occurrence period of the first shake is shortened. Also, the duration of the first shake is predicted.
[0050] (2) Focus adjustment When the lens moves a long distance at high speed for focusing, the reaction force of the lens drive and the impact when the lens stops are large, so the first shake becomes larger and the duration of the first shake may become longer. Therefore, the exposure time of each image (20a to 20c in FIG. 4) during the occurrence period of the first shake is shortened. In addition, the duration of the first shake is predicted.
[0051] The first number of shots in the first shooting time is set based on the relationship between the first exposure time, which is the shorter exposure time of each image set under the above-mentioned shutter curtain speed and focus adjustment conditions, and the first shooting time, which is the longer time during which the first shake continues. Specifically, if the first exposure time is 1 / 90 seconds and the first shooting time is 0.09 seconds, the first number of shots is set to about 10. In this embodiment, the images acquired during the period from the start of shooting to the elapse of the first shooting time are aligned and combined by the first alignment unit.
[0052] (3) Camera shake If the magnitude of the camera shake detected by shake detection unit 18 before shooting is large, there is a risk that the second shake will become large even during shooting, so the exposure time (second exposure time) of each image (21a to 21c in Figure 4) during the period when the second shake occurs is shortened.
[0053] (4) Shooting time The second shooting time, which is the period during which the second shake occurs, is calculated by subtracting the first shooting time calculated above from the shooting time calculated from the brightness of the subject or the shooting time set by the photographer.Then, the second number of shots is set based on the relationship between the second exposure time and the second shooting time.
[0054] In step S303, the control unit 14 captures an image with the first exposure time set in step S302, and aligns the image with the previous image using the first alignment unit 13a. The first alignment unit 13a quickly aligns the composition of the images with the first alignment accuracy.
[0055] In step S304, the synthesis unit 13 synthesizes the aligned images.
[0056] In step S305, the control unit 14 repeats steps S303 and S304 until the alignment and composition of the first number of shots set in step S302 is completed, thereby completing the alignment and composition of the images 20a to 20c in FIG.
[0057] In step S306, the control unit 14 captures an image with the second exposure time set in step S302, and aligns the image with the previous image using the second alignment unit 13b. The second alignment unit 13b aligns the composition of the images with high accuracy with the second alignment accuracy.
[0058] In step S307, the composition unit 13 composes the aligned images. Note that the first image at the second shooting time is aligned with the combined image at the first shooting time by the second alignment unit 13b and then combined.
[0059] In step S308, the control unit 14 repeats steps S306 and S307 until the alignment and composition is completed for the second number of shots set in step S302, thereby completing the alignment and composition for the images 21a to 21c in FIG.
[0060] In this way, for the first shake that occurs at the start of shooting, each image is shot with a first exposure time and the first alignment unit 13a is used to quickly align the images. This makes it possible to correct high-frequency image blur. Then, for the second shake that occurs after that, each image is shot with a second exposure time and the second alignment unit 13b is used to accurately correct the blur.
[0061] [Third embodiment] Fig. 6 is a diagram for explaining the operation of the synthesis unit 13 in the third embodiment. What is different from Fig. 4 is that the exposure time of each image during the second shake occurrence period is set to the same as that during the first shake occurrence period. Since the control during the first shake occurrence period is the same as that in the second embodiment, only the control during the second shake occurrence period will be described below.
[0062] In the second embodiment, the exposure time of each image during the first shake occurrence period is 1 / 90th of a second, and the exposure time of each image during the second shake occurrence period is 1 / 30th of a second. In contrast, in the third embodiment, the exposure time of each image is set to 1 / 90th of a second even during the second shake occurrence period. The reason for this is that the control load is reduced by aligning the exposure times.
[0063] In this embodiment, as can be seen from Fig. 6, images 41a to 41c during the second shake occurrence period are combined without alignment to generate image 41. The exposure time of image 41 is 1 / 30th of a second, but even 1 / 30th of a second causes little image degradation due to camera shake during the second shake occurrence period. Similarly, images 42a to 42c and images 43a to 43c are combined without alignment to generate images 42 and 43. Images 41 to 43 are aligned with high precision using second alignment unit 13b, as in Fig. 4.
[0064] Fig. 7 is a flowchart for explaining the operation of the synthesis unit 13 and the control unit 14, and differs from the flowchart in Fig. 5 in that steps S501 and S502 are added. Therefore, only these steps will be explained. Also, it is assumed that each shooting condition such as the first and second exposure periods is obtained in the same manner as in the second embodiment.
[0065] In step S501, the synthesis unit 13 synthesizes images (eg, image 41a in the example of FIG. 6) captured in the second exposure period with an exposure time of 1 / 90 seconds without aligning them.
[0066] In step S502, the third number of shots (three images 41a to 41c in the case of FIG. 6) is calculated from the ratio between the first exposure period and the second exposure period, and steps S501 and S502 are repeated until that number of shots is completed.
[0067] That is, by repeating steps S501 and S502, for example, images 41a to 41c in FIG.
[0068] When the composition of image 41 is completed, the process proceeds to step S306. In the second embodiment, the process returns from step S308 to step S306, but in the third embodiment, the process returns to step S501. By repeating the loop of steps S501 to S308, the images 41 to 43 in FIG. 6 are composed. The composite image of images 41 to 43 during the second shake occurrence period is aligned with the image composed during the first shake occurrence period by second alignment unit 13b and then composed.
[0069] As described above, in the third embodiment, since images can be obtained with the same exposure time during the first shake occurrence period and the second shake occurrence period, it is possible to simplify the control.
[0070] [Fourth embodiment] FIG. 8 is a diagram for explaining the operation of the synthesis unit 13 in the fourth embodiment of the present invention. The difference from FIG. 4 is that the optical image stabilization is turned off during the first shake occurrence period.
[0071] The reason for turning off the optical image stabilization will be explained below.
[0072] Generally, the shake detection unit 18 often uses a vibration gyroscope (angular velocity sensor), but a drawback of the vibration gyroscope is that the detection accuracy drops significantly for vibrations of a specific frequency. Therefore, the sensitivity may be low for vibrations generated by the driving associated with the shutter curtain travel and focus adjustment, that is, mainly high-frequency vibrations, and when such vibrations occur, the accuracy of the optical image stabilization may decrease, causing image degradation. Therefore, during the first shake occurrence period when the driving associated with the shutter curtain travel and focus adjustment occurs, the optical image stabilization is turned off to prevent image degradation caused by the optical image stabilization.
[0073] During the first shake occurrence period, the image obtained in the first exposure time is aligned by the first alignment unit 13a, and the image synthesis unit 13 performs image synthesis to perform image blur correction. Since the first shake occurrence period occupies a small proportion of the overall shooting time, even if only image blur correction by image alignment is performed without optical image blur correction, there is no significant decrease in the accuracy of the image blur correction. During the second shake occurrence period after the end of the first shake occurrence period, optical image blur correction is started, and the remaining correction of the optical image blur correction is corrected by the second alignment unit 13b.
[0074] Fig. 9 is a flowchart for explaining the operation of the synthesis unit 13 and the control unit 14, and differs from the flowchart in Fig. 5 in that steps S701 and S702 are added. Therefore, only these steps will be explained. Also, it is assumed that each shooting condition such as the first and second exposure periods is obtained in the same manner as in the second embodiment.
[0075] In step S701, optical image stabilization is turned off to prevent image degradation from occurring in each image captured during the first shaking occurrence period.
[0076] In step S702, optical image stabilization is turned on to correct image blur caused by camera shake by the photographer that occurs in the image during the second shaking occurrence period.
[0077] In this way, with the optical image stabilization turned off for the first vibration that occurs at the start of shooting, each image is captured with the first exposure time, and the first alignment unit 13a is used to quickly align each image. This makes it possible to correct high-frequency shake. Then, the optical image stabilization is turned on for the second shake that occurs thereafter. In this state, each image is captured with the second exposure time, and the shake is accurately corrected using the second alignment unit 13b.
[0078] In addition, if the accuracy of the optical image stabilization during the second shake occurrence period can be expected, image stabilization by image alignment may not be performed during the second shake occurrence period. That is, as shown in Fig. 10, each image is captured with the first exposure time with the optical image stabilization turned off for the first vibration that occurs at the start of shooting, and alignment is performed quickly using the first alignment unit 13a. This makes it possible to correct high-frequency shake. Then, for the second vibration that occurs thereafter, shooting is performed with the optical image stabilization turned on.
[0079] Fifth embodiment In the first embodiment, alignment was performed by selecting either the first alignment unit or the second alignment unit according to at least one of the photographing conditions and the subject information. On the other hand, in the second to fourth embodiments, alignment was performed by the first alignment unit 13a for a predetermined period from the start of photographing (a period during which a predetermined number of images are photographed), and after the predetermined period has elapsed, alignment was performed by the second alignment unit 13b. The first embodiment and the second to fourth embodiments can also be combined.
[0080] For example, even if it is not determined in step S204 of the first embodiment that the condition of the first alignment unit is satisfied and the process proceeds to step S206, alignment is performed by the first alignment unit for a predetermined period from the start of shooting, as in the second to fourth embodiments, which makes it possible to reduce the effects of high-frequency vibrations caused by driving the mechanism of the imaging device.
[0081] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a 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 implements one or more of the functions.
[0082] The invention is not limited to the above-described embodiments, and various modifications and variations are possible 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]
[0083] 11: imaging device, 12: imaging element, 13: synthesis unit, 14: control unit, 15: shooting condition output unit, 17: subject detection unit, 18: shake detection unit
Claims
1. A first alignment means for aligning a plurality of images captured successively; a second alignment means that requires a longer processing time for aligning the plurality of images than the first alignment means, but has higher alignment accuracy than the first alignment means; a selection means for selecting an alignment means to be used for aligning the plurality of images from the first alignment means and the second alignment means according to photographing conditions of the plurality of images; a synthesis means for synthesizing the plurality of images aligned using the alignment means selected by the selection means; Equipped with The first alignment means translates a first image, which has one piece of color information for each pixel of an imaging means that captures the image, in units of a pixel period to align the multiple images; The second alignment means converts the first image into a second image having multiple color information for each pixel, and performs geometric transformation including translation and rotation with sub-pixel accuracy on the second image to align the multiple images.
2. 2 . The image processing device according to claim 1 , wherein the photographing conditions include at least one of an exposure time for each of the plurality of images, a number of images to be photographed in succession, a vibration of an image capturing device, and a time elapsed from the start of photographing.
3. A first alignment means for aligning a plurality of images captured in succession; a second alignment means that requires a longer processing time for aligning the plurality of images than the first alignment means, but has higher alignment accuracy than the first alignment means; a selection means for selecting an alignment means to be used for aligning the plurality of images from the first alignment means and the second alignment means according to photographing conditions of the plurality of images; a synthesis means for synthesizing the plurality of images aligned using the alignment means selected by the selection means; Equipped with The first alignment means translates a first image, which has one piece of color information for each pixel of an imaging means that captures the image, in units of a pixel period to align the multiple images; The image processing device according to claim 1, wherein the shooting conditions include at least one of an exposure time for each of the plurality of images, a number of images to be shot in succession, a vibration of an imaging device, and a time elapsed from the start of shooting.
4. 4. The image processing device according to claim 2, wherein the selection means selects the first alignment means as the alignment means to be used for aligning the multiple images when the exposure time of each of the multiple images is equal to or shorter than a predetermined time.
5. 4. The image processing device according to claim 2, wherein the selection means selects the first alignment means as the alignment means to be used for aligning the multiple images when the number of images captured in succession is equal to or greater than a predetermined number.
6. 4. The image processing apparatus according to claim 2, further comprising a vibration detection unit for detecting a vibration applied to an image capturing device that captures the plurality of images.
7. 7. The image processing device according to claim 6, wherein the selection means selects the first alignment means as the alignment means to be used for aligning the multiple images when the amount of rotational shake during all shooting detected by the shake detection means is equal to or less than a predetermined amount.
8. 4. The image processing apparatus according to claim 2, further comprising a subject detection unit for detecting a subject from the image.
9. 9. The image processing device according to claim 8, wherein the selection means selects the first alignment means as the alignment means to be used for aligning the multiple images when the size of the subject acquired by the subject detection means is equal to or smaller than a predetermined value.
10. 10. The image processing apparatus according to claim 1, wherein the selection means changes the selection between the first alignment means and the second alignment means in response to a change in the photographing conditions.
11. 11. The image processing device according to claim 10, wherein the selection means selects the first alignment means during a first period, and selects the second alignment means during a second period different from the first period.
12. 12. The image processing apparatus according to claim 11, wherein the first period is a predetermined period from the start of image capture, and the second period is a period following the first period.
13. a correction control means for controlling the correction means for correcting the image blur based on an output of the vibration detection means, 13. The image processing device according to claim 11, wherein the correction control means causes the synthesis means to synthesize the plurality of images without driving the correction means during the first period, and drives the correction means to perform image blur correction during the second period.
14. 14. The image processing device according to claim 1, further comprising a control unit that sets an exposure time for each image used in the first alignment unit based on a driving state of each element of the imaging device.
15. The image processing device according to any one of claims 1 to 14, further comprising a control means for acquiring the driving status of each element of an imaging device that captures the multiple images, and setting the number of images to be captured by the first alignment means based on the driving status.
16. 16. The image processing apparatus according to claim 1, wherein the combining means selects whether to combine the plurality of images with or without aligning the positions of the images.
17. 17. The image processing apparatus according to claim 16, wherein the synthesizing means further synthesizes the images that have been synthesized without alignment.
18. An imaging means capable of capturing a plurality of images in succession; An imaging apparatus comprising: an image processing apparatus according to claim 1 .
19. A method for controlling an image processing device comprising: a first alignment means for aligning a plurality of images captured successively; and a second alignment means which requires a longer processing time for aligning the plurality of images than the first alignment means but has a higher alignment accuracy than the first alignment means, wherein the first alignment means aligns the plurality of images by translating a first image, each pixel of which has one piece of color information, of an imaging means which captures the images, in units of a pixel period, and the second alignment means converts the first image into a second image, each pixel of which has multiple pieces of color information, and performs geometric transformation, including translation and rotation, with sub-pixel accuracy on the second image, thereby aligning the plurality of images, a selection step of selecting an alignment means to be used for aligning the plurality of images from the first alignment means and the second alignment means according to photographing conditions of the plurality of images; a synthesis step of synthesizing the plurality of images that have been aligned using the alignment means selected in the selection step; 13. A method for controlling an image processing apparatus comprising the steps of:
20. A method for controlling an image processing device comprising: a first alignment means for aligning a plurality of images captured successively; and a second alignment means which requires a longer processing time for aligning the plurality of images than the first alignment means but has a higher alignment accuracy than the first alignment means, wherein the first alignment means translates a first image, each pixel of which has one piece of color information, in pixel periodic units of an imaging means which captures the images, thereby aligning the plurality of images, a selection step of selecting an alignment means to be used for aligning the plurality of images from the first alignment means and the second alignment means according to photographing conditions of the plurality of images; a synthesis step of synthesizing the plurality of images that have been aligned using the alignment means selected in the selection step; having A method for controlling an image processing device, wherein the shooting conditions include at least one of the exposure time of each of the plurality of images, the number of images to be shot in succession, the vibration of the imaging device, or the elapsed time from the start of shooting.
21. A program for causing a computer to execute each step of the control method according to claim 19 or 20.
Citation Information
Patent Citations
JP05976315B
Imaging apparatus
JP2009025582A
Image processing apparatus, image processing method and image processing program
JP2013115544A
Imaging device, imaging method, and program
JP2015216532A
Imaging apparatus and imaging method
JP2016021767A
