This application is based upon and claims the benefit of priority from prior Japanese Patent Application No. 2004-213578, filed Jul. 21, 2004, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to an image pick-up apparatus and an image restoration method in which a photographer can recognize in advance effects of correction of vibration or setting of a vibration correcting mode.
2. Description of the Related Art
In image pick-up apparatuses (e.g., a digital camera, a video camera, etc.), devices have been incorporated in which images deteriorated by vibration at an image pick-up time are restored to produce images close to original images. For example, in the digital camera (hereinafter sometimes referred to simply as the camera), as correction of the vibration in a still image or the like, a locus of camera shakes is detected using an angular velocity sensor or the like at the time of the image pick-up, and a predetermined image restoring operation is performed based on the detected locus of the shake after the image pick-up.
With regard to optical vibration correcting, as described in Japanese Patent No. 2752073, when the correcting is performed before the image pick-up, it is easily confirmed that the vibration is being corrected, and it is easy even for the photographer to see the demonstration effect of the vibration correcting in the through image
According to a first mode of the present invention, there is provided an image pick-up apparatus comprising:
According to a second mode of the present invention, there is provided an image pick-up apparatus comprising:
According to a third mode of the present invention, there is provided an image pick-up apparatus comprising:
According to a fourth mode of the present invention, there is provided an image restoration method comprising:
Advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out hereinafter.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention, and together with the general description given above and the detailed description of the embodiments given below, serve to explain the principles of the invention.
Embodiments of the present invention will be described hereinafter with reference to the drawings.
As seen from
When a release switch 3 is pressed (turned on), a photographing operation is started. A zoom switch 4 includes a T button 4-1 and a W button 4-2. When the T button is pressed, a magnification of the photographing lens is changed to a telescope side. When the W button is pressed, the magnification of the lens is changed to a wide side. When a vibration mode switch 5 is pressed, a mode of the camera is set to a vibration mode. In this case, a mode lamp 5-1 is lit. Accordingly, a photographer sees that the camera is brought into the vibration mode.
The view finder 6 is an electronic view finder, for example, in which a small-sized LCD is enlarged by a loupe. By the view finder 6, a so-called through image can be displayed which displays an image of an image pick-up device (CCD) in real time. A mode key (sliding key) 7 is a changeover key to a still image or a moving image. When the mode key 7 is set to an S-side (STILL), a still image mode is set. When the mode key is set to an M-side (MOVIE), a moving image mode is set.
A flash 8 emits light at a time when luminance is low to illuminate a subject. A mode operation key 9 is constituted by four buttons arranged around a determination button. By this mode operation key 9, macro photography, self timer, flash or the like is turned on. In a back-surface LCD panel 10, a photographed image is reproduced, and the through image can be displayed. The back-surface LCD panel 10 is utilized as a monitor together with the view finder 6. When a power switch 11 is pressed, exposure, image pick-up or the like is possible in the camera.
The lens 14 is a focus lens which moves forwards/backwards along the optical axis to adjust focusing. During focus adjustment, a driving force of a focus motor 105 is transmitted to a lens driving cam mechanism 19 for focus via gears 20a, 20b. Moreover, the lens 14 is moved by the lens driving cam mechanism 19 for focus. For example, an image pick-up device (image pick-up unit) 114 constituted of a CCD is positioned behind the lens 14. A light beam passed through the lenses 12, 13, 14 is formed into an image on the image pick-up device 114, and photoelectrically converted by each pixel of the image pick-up device. Accordingly, the image is picked up. A quantity of light (exposure amount) onto the image pick-up device 114 is controlled by a aperture 15 and a shutter 16. Instead of the mechanical shutter 16, a device shutter (electronic shutter) of the image pick-up device 114 may be used.
An analog processing circuit 110 cancels offsets of outputs of the angular velocity sensors 108, 109 and amplifies outputs of the angular velocity sensors 108, 109. Here, the analog processing circuit 110 constitutes a vibration detecting unit together with the angular velocity sensors 108, 109. An output of the analog processing circuit 110 is converted into a digital signal by an A/D conversion circuit 111, and input into a basic locus operation circuit 112. The basic locus operation circuit 112 integrates inputs from the A/D conversion circuit 111 with time to thereby calculate a displacement angle for each time. Moreover, the circuit outputs this displacement angle in accordance with the time, that is, outputs the angle in a time series, and calculates vibration locus in a vertical or horizontal direction by the vibration of the image in the vicinity of the optical axis on an image pick-up surface of the image pick-up device 114. Here, vibration detectors are not limited to the angular velocity sensors 108, 109. Instead of the angular velocity sensors 108, 109, angular acceleration sensors, or a pair of acceleration sensors may be used as long as an operation process is changed. A locus memory circuit 113 is a memory which stores a vibration locus detected by the basic locus operation circuit 112 and which functions as a vibration detecting signal storage unit.
An image pick-up device 114 comprises a CCD positioned behind the lens unit 2 described with reference to
An image restorative function calculating circuit 122 calculates an image restorative function f−1 for restoring the deterioration of the image by the vibration. Here, the image restorative function f−1 is a reverse function of an image deteriorative function f generated by the vibration. The image restorative function f−1 is calculated by predicting a change from an original image from an output of the basic locus operation circuit 112. It is to be noted that the image restorative function f−1 is directly calculated from the output from the basic locus operation circuit 112 in a middle of a screen. However, with regard to areas other than the screen middle, the lenses 12, 13, 14 of the digital camera generate the distortions of the images which are dependent on zoom and focus positions, and therefore the output from the basic locus operation circuit 112 needs to be corrected. Therefore, in the digital camera of the first embodiment, locus correction data for correcting the distortions of the images corresponding to the zoom and focus positions are stored for each area of the screen in a correction value storage memory 118 (distortion information storage unit).
For example, when a peripheral image of the screen is compressed with respect to an image of the screen middle by the influence of the distortion, a locus change is accordingly compressed. Therefore, a locus correction circuit 121 first corrects locus data output from the basic locus operation circuit 112 based on a value of the correction value storage memory 118 for each screen area. Moreover, the corrected locus data is output to the image restorative function calculating circuit 122. That is, the locus correction data stored in the correction value storage memory 118 is input into the locus correction circuit 121, and the image restorative function calculating circuit 122 calculates the image restorative function f−1 for each screen area based on the output from the locus correction circuit 121.
The data which is not subjected to the y conversion or the image compression is sent from the image processing circuit 117 to the image restoring operation circuit 123. The image restoring operation circuit 123 converts the image using the image restorative function f−1 calculated for each area of the screen in the image restorative function calculating circuit 122. With regard to an image from which the influence of the image distortion has been eliminated to restore the image deterioration by the vibration in the image restoring operation circuit 123, data of the image is compressed by the image compression•extension circuit 151, and thereafter written into an image recording medium 153 such as a built-in flash memory via a recording unit 152. Instead of the built-in flash memory, an external memory such as a charging type memory card may be used as the image recording medium 153. It is to be noted that the locus correction circuit 121, the image restorative function calculating circuit 122, and the image restoring operation circuit 123 form an electronic vibration correcting circuit 120 for the still image, which electronically corrects the image distortions of the lenses 12, 13, 14 for each area of the screen. Moreover, the locus correction circuit 121 functions as a vibration detecting signal correction unit, the image restorative function calculating circuit 122 functions as an image restorative function calculating unit, the image restoring operation circuit 123 functions as a vibration restoring unit, and the image compression•extension circuit 151 functions as a compression unit.
The sequence control circuit 119 comprises a CPU such as a microcomputer. The sequence control circuit 119 detects on•off states of the release switch 3, the zoom switches 4 (T, W), the power switch 11, the vibration mode switch 5, the mode key 7 and the like, and controls movement of each constituent element based on detection results to control the whole digital camera. Specifically, the sequence control circuit 119 functions as a sequence controller, a continuous operation unit which continuously operates the image pick-up device, a display control unit which controls the display of the monitor (view finder 6, back-surface LCD panel 10), and controllers of first and second vibration correcting units (image restoring operation circuit 123, image shift circuit 132).
An inter-frame shift amount calculation circuit 131 calculates a shift amount between frames in a period in which the through image is acquired. The inter-frame shift amount calculation circuit 131 receives a locus of vibration for each frame period from the basic locus operation circuit 112, and calculates an amount by which the corresponding image is to be shifted. The image shift circuit 132 receives an output from the image pick-up device (CCD) 114 via the image memory 116. Moreover, the image is shifted by a vibration amount based on an output from the inter-frame shift amount calculation circuit 131 to correct the vibration in the moving image (or the through image). The inter-frame shift amount calculation circuit 131 and the image shift circuit 132 form an electronic vibration correcting circuit 130 for the moving image. Moreover, assuming that the image restoring operation circuit 123 for the still image is a first vibration correcting unit, the image shift circuit 132 for the moving image may be a second vibration correcting unit.
With regard to the moving image in which the vibration has been corrected in the moving image electronic vibration correcting circuit 130, data is compressed by the image compression•extension circuit (compression unit) 151, and recorded in the image recording medium 153 via the recording unit 152. The image, regardless of the still image or the moving image, in which the vibration has been corrected, is sent and displayed as a monitor image in the back-surface LCD panel 10 or the view finder 6 disposed on the back surface of the camera body. Therefore, the image compression•extension circuit 151 also has an extending function for displaying the image data, read from the image recording medium 153 via the recording unit 152, in the back-surface LCD panel 10 or the view finder 6. It is to be noted that when the output from the image restoring operation circuit 123 is recorded in the image recording medium 153 like the built-in flash memory or the external memory (e.g., the charging type memory card) via the recording unit 152, a sharp image in the whole screen can be recorded.
Next, electronic vibration correcting in the still image will be described.
As described with reference to
As described above, as to the still image, the image deteriorative function f is calculated from the vibration locus on the image pick-up device 114 based on the time-series vibration by the vibration at the photographing time, and the blurred image is restored by the inversion by the reverse function f−1 of f, that is, the image restorative function. In this case, the vibration locus is corrected in the locus correction circuit 121, and the influence of the distortion of the optical system is removed. Therefore, even when there is a distortion in the optical system, the accurate image locus by the vibration is output for each screen area from the middle to the periphery of the screen. Consequently, the accurate restoration of the image deteriorated by the vibration can be performed over the whole screen, and the sharp image can be obtained in the whole screen
As to the moving image, since a shift between the frames is recognized as the vibration, the vibration is corrected by image shift. For example, when three images 1, 2, 3 shown in
It is assumed that an image pick-up range of a CCD image is 100% in a case where a mode is not a vibration mode. In this case, in the vibration mode of the still image, the image has a predetermined spread in accordance with the image restorative function. If there is not any image data outside the image pick-up range, the peripheral image cannot be corrected. Therefore, a range of 95% is assumed as the image pick-up range in terms of a diagonal length ratio. Moreover, the picked-up image in this image pick-up range is subjected to the electronic vibration correcting, and recorded. Here, the vibration amount of the still image is small within an exposure time as compared with a case where the moving image is successively shifted, and a peripheral margin may be small as compared with the moving image.
A size of an effective image pick-up range in a moving image vibration mode is small as compared with the still image, and is assumed, for example, as a range of 70% in terms of the diagonal length ratio. This is because the moving image is shifted, and more time is therefore required, and a shift amount is large as compared with the still image.
Next, an image pick-up range of the image displayed by the through image will be described. In a case where both of the still image and the moving image are not brought into the vibration correcting mode, a range to be picked up and recorded corresponds to 100% in terms of a diagonal ratio in the CCD. In this case, the image in a range of 100% in terms of the diagonal ratio in the CCD is displayed also with respect to the through image.
On the other hand, a range equal to the range to be picked up and recorded is displayed as the through image in the vibration correcting mode in the photographing of the moving image. This range corresponds to a size of 70% in terms of the diagonal ratio, and the image is successively shifted (moved) in a range (range of 100% in terms of the diagonal ratio) of an effective pixel of the CCD in order to correct the vibration. On the other hand, the picked up and recorded range in the CCD is different from the range indicated by the through image in the CCD in the vibration correcting mode in the photographing of the still image. This is because a vibration correcting system at a time when the image is picked up and recorded is different from that at a time when the through image is displayed. However, the picked up and recorded range needs to substantially agree with the range indicated by the through image even in the different vibration correcting systems. Therefore, for example, the picked up and recorded range is 95% in terms of the diagonal ratio in the CCD, whereas the range of the through image is a size of 90% in terms of the diagonal angle in the CCD in the vibration correcting mode in the photographing of the still image. The range of the through image is successively shifted in a range of 95% in terms of the diagonal ratio in the CCD to correct the vibration. In this case, a vibration correcting amount (shift amount) of the through image of the still image is a range of 5%. Since a maximum shift amount is small as compared with the through image of the moving image, large vibration cannot be handled, but the range substantially equal to the picked-up•recorded range of the still image can be displayed in the view finder 6 or the back-surface LCD panel 10.
Next, it is judged whether a mode is a still or moving image mode (S106), and the process shifts to S120 of
Subsequently, it is confirmed that the release switch 3 is on (S110). When the switch is on (the release switch 3 is pressed), the still image is picked up (S111). On the other hand, when the release switch 3 is not pressed, it is judged whether or not another switch is operated (S112). When any of the switches is turned on, a process corresponding to the switch is performed. When any of the switches is turned off, the process is returned to S103.
After picking up the still image, the resultant image is processed by the image processing circuit 117 (S113). Thereafter, it is judged whether or not the vibration correcting flag is 1 (S114). When the vibration correcting flag is 1 in S114, the image restorative function from which the influence of the image distortion has been eliminated is calculated for each area of the screen in the image restorative function calculating circuit 122. Moreover, the vibration is corrected utilizing a screen range of 95% in the image restoring operation circuit 123 (S115). On the other hand, when the vibration correcting flag is 0 in S114, any vibration is not corrected. In S116, after performing image processing such as γ conversion and image compression in the image compression•extension circuit 151, the resultant picked-up image (still image) is displayed in the back-surface LCD panel 10 or the like (S117). The picked-up image is written into the image recording medium 153 via the recording unit 152 (S118). After ending the writing, the process is returned to S103.
Next, a main flowchart for the moving image will be described with reference to
Moreover, it is confirmed that the release switch 3 is on (S123). When the switch is on (the release switch is pressed), the photographing of the moving image is started (S124), and it is judged whether or not the vibration flag is 1 (S126). When the release switch 3 is not pressed, it is judged whether or not another switch is operated (S125). When any of the switches is on, a process corresponding to the turned-on switch is performed. When any of the switches is off, the process is returned to S103.
When the vibration correcting flag is 1 in S126, the image is shifted utilizing a screen range of 70%, and the picked-up image, in which the vibration has been corrected, is displayed in the LCD in real time (S127). On the other hand, when the vibration correcting flag is 0, any vibration is not corrected, and the picked-up image, which remains to be blurred, is displayed in the LCD in real time (S128). In the same manner as in the displaying of the through image in S121, S122, the blurred picked-up image of S128 is displayed like the image of
By this constitution, even at the time of the photographing of the still image or the moving image, it can be confirmed by the view finder 6 and the back-surface LCD panel 10 that the vibration is being corrected, and the range of the through image substantially agrees with a range in which the image can be actually picked up. Accordingly, framing can be easily and quickly set. Since the locus by the image distortion is corrected for each screen range, the influence of the image distortion by the lens is eliminated, an accurate change amount of the locus is obtained for each screen range, and satisfactory vibration correcting can be performed over the whole screen.
Next, a first modification of the first embodiment will be described. In the first embodiment, the locus data output from the basic locus operation circuit 112 is corrected for each image area based on the value of the correction value storage memory 118 in the locus correction circuit 121, and the corrected locus data is output to the image restorative function calculating circuit 122. Next, the image restorative function f−1 is calculated for each screen area based on the output from the locus correction circuit 121 in the image restorative function calculating circuit 122, and the operation for restoring the image is performed based on the image restorative function f−1 in the image restoring operation circuit 123. On the other hand, the following may be performed in the modification.
First, the locus correction circuit 121 is omitted, and the output line from the correction value storage memory 118 is modified in such a manner as to be connected to the image restorative function calculating circuit 122. Moreover, the locus data output from the basic locus operation circuit 112 is directly processed in the image restorative function calculating circuit 122, and only one type of image restorative function f−1 is calculated and obtained. Next, the image restorative function f−1 is corrected for each image area based on the value of the correction value storage memory 118 to obtain the image restorative function f−1 which differs with each image area. Next, in the image restoring operation circuit 123, the image is restored in accordance with the image restorative function f−1 which differs with the image area. In this modification, the image restorative function calculating circuit 122 functions as an image restorative function calculating unit, and also as an image restorative function correcting unit.
According to the constitution of the modification, even when the same vibration is generated, the locus of the movement of the image changes with each of the screen middle and the area other than the screen middle by the influence of the distortion, because the image is compressed or enlarged, or a direction of the image is changed. As a result, even when the image deteriorative function f differs with each area, the image deteriorative function f may be corrected with each area to obtain an optimum image restorative function f−1. Consequently, the accurate restoration of the image deteriorated by the vibration can be performed over the whole screen, and the sharp image is obtained in the whole screen.
Even in a camera provided with a vibration correcting unit in which a restoring operation is performed from image data obtained after a still image is photographed, the vibration correcting unit for performing the above-described type of image restoring operation cannot be applied to through image display for observing a subject in a preparatory stage for the photographing of the still image. Even when the unit is applied, target effects cannot be obtained. To solve the problem, in a second embodiment, vibration correcting is performed which differs with the time of the photographing of the still image and the time of the displaying of the through image as shown in
In the second embodiment, when a vibration preventing mode is set, a through image having less vibration is displayed by the another type of vibration correcting which is effective for the through image with respect to the through image. Accordingly, a photographer can be notified that a vibration mode is operated. Therefore, at the photographing time, the photographer can confirm that the vibration mode is set while observing the subject. Since the vibration at an observing time is reduced, the subject is easily observed. Furthermore, when the vibration correcting mode for the still image is not set, the vibration correcting for the through image is stopped. When the vibration is large, the photographer is effectively warned to notice the vibration in observing the subject, and set the vibration correcting mode.
It is to be noted that FIGS. 1 to 8 are referred to in common in the first and second embodiments. Therefore, in the second embodiment, the descriptions of FIGS. 1 to 8 are omitted.
A third embodiment will be described with reference to FIGS. 9 to 12. In the embodiment, with regard to a picked-up image, after lens distortion correcting is performed, electronic vibration correcting for a still image, and that for a moving image are performed. Here,
In the block diagram of the control circuit of the digital camera in
Even when the lens is formed of the same material on the same conditions, fluctuations are inevitably generated in lens properties. To restore the image correctly, differences of the lens properties need to be considered. Even when the image having the barrel type distortion as shown in
Therefore, as shown in
As described above, after the distortion correcting (distortion correcting 1) targeting at the zero distortion, the inverse correction into the barrel type is performed (distortion correcting 2). Consequently, even if the pin-cushion type image is produced in the distortion correcting 1 by the fluctuation of the distortion correcting, attributed to the differences of the lens properties, the pin-cushion type image is forcibly corrected into the barrel type image by the distortion correcting 2. Therefore, the image distorted into the pin-cushion type is prevented from being produced, and the image is restored without any sense of incongruity. Even in a case where the distortion differs with each area because of a so-called straw hat type distortion which is a mixture of the pin-cushion and barrel type distortions, the image is obtained without any sense of incongruity by both of the distortion correcting into zero (distortion correcting) and the inverse correction into the barrel type (distortion correcting 2). Here, the distortion inverse correction (distortion correcting 2) is performed in the image restoring operation circuit 123, and the image restoring operation circuit 123 may be referred to as a vibration restoring unit and a distortion inverse correction unit. It is to be noted that the distortion correcting 2 of the pin-cushion type distortion is also performed in the image restoring operation circuit 123.
Another embodiment (fourth embodiment) will be described with reference to FIGS. 13 to 15. In the embodiment, image deteriorations by vibrations between frames in moving images are considered. In the fourth embodiment, FIGS. 1 to 8 except
Objects of
Moreover, a sequence control circuit 119 obtains an image shift amount generated between the frames in response to a vibration detecting signal, and operates the image shift circuit 132 in accordance with the image shift amount generated between the frames. Moreover, both of the corrections between the frames and in the frames are based on outputs of the angular velocity sensors 108, 109. Therefore, even when there is a moving subject in a screen, the shift of the frame is not influenced, and does not become incorrect, and an image of a subject which is not moving can be securely prevented from being deteriorated by the vibrations.
Objects of
Also in the fourth embodiment, after the vibrations between and in the frames are corrected, the resultant image is compressed in an image compression•extension circuit 151, and recorded in the image recording medium 153 utilizing a recording unit 152. Thereafter, after performing the vibration restoring operation, the image can be compressed and recorded, and the image restoring operation can be performed before the compression without any deterioration. Therefore, a correct vibration restoring operation can be performed. Furthermore, since the image is compressed and recorded after correcting the vibrations between and in the frames, more high-quality images can be recorded in the image recording medium 153 which has less capacity and which is small, and which is inexpensive.
Moreover, in the photographing of the moving image, after the vibration in the frame is corrected, the image shift amount between the frames is obtained from image data based on data of the vibration correcting. Therefore, the correct shift amount between the frames can be calculated, and more correct vibration correcting is possible as compared with a case where the image shift between the frames is obtained using an image in which the vibrations between the frames are not corrected.
Here, the sequence control circuit 119 obtains the image shift amount generated between the frames from the image data, and operates the image shift circuit 132 in accordance with the image shift amount generated between the frames. Therefore, with regard to the shifting of the frame, in general, the outputs of the angular velocity sensors 108, 109 have a longer time between the frames rather in the frames, the shifting of the frame does not become incorrect by integration of noise components, and correct shifting can be performed.
Furthermore, the sequence control circuit 119 preferably executes a control in such a manner as to selectively operate both or either of the image shift amount calculation circuit 173 and the image shift circuit 132. In this case, an unnecessary portion does not have to be operated in a case where the deterioration in the frame by the vibration is small, and therefore power consumption can be reduced.
As described above according to the present invention, when the vibration preventing mode is set, the image having less vibration, in which the vibration of the through image has been corrected, is displayed. Therefore, the photographer can confirm the setting of the vibration mode while observing the subject. That is, the setting of the vibration correcting, or the demonstration effect of the vibration correcting can be expected.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general invention concept as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2004-213578 | Jul 2004 | JP | national |