1. Field of the Invention
The present invention relates to an image sensing apparatus and method of controlling this apparatus. More particularly, the invention relates to a technique for controlling focusing in an image sensing apparatus that is capable of sensing moving images.
2. Description of the Related Art
Image sensing apparatuses have been reduced in size and provided with optical systems of higher magnification in recent years. This has been accompanied by the problem of diminished image quality of captured images owing to shaking of the apparatus. A variety of shake compensating functions, which compensate for image blurring caused by shaking (shaking of the hand) of the image sensing apparatus, have been proposed as measures for solving this problem. By equipping an image sensing apparatus with a shake compensating function, it has become possible to readily sense excellent images with little blurring.
The following methods have been proposed as shake compensating functions installed in a video camera: a so-called optical shake compensating method (e.g., see the specification of Japanese Patent Application Laid-Open No. 9-181959) that compensates for shaking optically, and an electronic shake compensating method (e.g., see the specification of Japanese Patent Application Laid-Open No. 10-178582) that compensates for shaking by electrical processing.
With the optical shake compensating method, the angular displacement of a camera is obtained as by using an angular velocity sensor or by detecting the motion vector of a screen by processing a plurality of sensed images, and shaking is cancelled out by displacing the optical axis optically based upon the angular displacement obtained. For example, the optic axis of light incident upon an image sensing element is displaced by displacing a shake compensating lens in a plane orthogonal to the optic axis. By thus optically canceling shaking of a video camera, optical shake compensation is performed and a blur-free moving image can be sensed. With the optical shake compensating method, however, mechanical members such as actuators and optical elements are required. This limits camera size reduction and is disadvantageous in terms of cost.
According to the electronic shake compensation method, use is made of an image sensing element larger than the image size actually required, and recording is performed sequentially while a part of the obtained image is cut from the obtained image so as to compensate for shaking of the camera in accordance with the angle of displacement of the camera, thereby implementing the sensing of a blur-free moving image.
Further, the following method is described in the specification of, e.g., Japanese Patent Application Laid-Open No. 11-25255 as a method of electronic shake compensation applied to still images: First, a plurality of images are sensed by a high-speed electronic shutter at the time of photography, and amount of hand-induced shaking is detected by vector detection. Then, based upon the amount of hand-induced shaking detected, the cut-out positions of the plurality of sensed images are changed so as to compensate for hand-induced shaking and the plurality of cut-out images are superimposed and synthesized into one still image. This method provides a shake compensating effect and makes it possible to obtain a still image having a sufficient amount of exposure.
The still-image electronic shake compensation processing for sensing a plurality of images by the high-speed shutter and synthesizing the images is performed every vertical scanning period when a moving image is sensed, thereby making it possible to compensate for shaking within one vertical scanning period of the moving image.
Camera systems such as a conventional video cameras capable of sensing moving images have been automated and provided with multiple functions, as seen in functions such as automatic exposure (AE) and autofocus (AF), etc., and excellent movies can be sensed.
However, in the method of compensating for shaking within one vertical scanning period of a moving image by executing processing for sensing a plurality of images and synthesizing them every vertical scanning period, there are no proposals regarding how to perform AF control.
For example, if AF control is carried out based upon sensed images in each vertical scanning period, as in the conventional method of sensing moving images, a certain problem arises. Specifically, since the image in each vertical scanning period is obtained only after synthesizing images following the end of sensing a plurality of images every vertical scanning period, the time required until AF control can begin is prolonged in comparison with the prior art and the accuracy of AF control declines.
The present invention has been devised in consideration of the foregoing circumstances and its object is to provide an image sensing apparatus and method of controlling the same whereby it is possible to compensate for shaking of an image in each vertical scanning period, output compensated images successively at the vertical scanning period and perform more accurate autofocus control.
According to the present invention, the foregoing object is attained by providing an image sensing apparatus comprising:
a processing unit that superimposes and synthesizes a plurality of images obtained by sensing with exposure period shorter than one vertical scanning period every vertical scanning period of a moving image while shifting them relative to one another so as to cancel out shaking of the image sensing apparatus, and outputting a single synthesized image every vertical scanning period;
a focus lens; and
a focus control unit that performs focus control by driving the focus lens based upon a sensed image in response to sensing of the plurality of images performed in each of the vertical scanning periods.
According to the present invention, the foregoing object is also attained by providing a method of controlling an image sensing apparatus for sensing a plurality of images with exposure period shorter than one vertical scanning period every vertical scanning period of a moving image, the method comprising:
a processing step of superimposing and synthesizing the plurality of images while shifting them relative to one another so as to cancel out shaking of the image sensing apparatus, and outputting a single synthesized image every vertical scanning period;
a sensing step of sensing images at exposure times shorter than the one vertical scanning period; and
a focus control step of performing focus control based upon images obtained by sensing at the image sensing step.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to attached drawings.
As shown in
An image sensing element 1, which is typified by a CCD sensor or CMOS sensor, photoelectronically converts an incident optical image of a subject and outputs an electric signal. A camera signal pre-processing circuit 2 subjects the electric signal, which is output from the image sensing element 1, to prescribed signal processing such as processing for generating a luminance signal and color signal to their effect a conversion to an image signal (image data). An image memory 3 stores the image signal that is output from the camera signal pre-processing circuit 2. A coordinate transformation circuit 4 transforms the two-dimensional coordinates of an image signal, which has been read out of the image memory 3, in accordance with the amount of shake compensation (described later) of the camera system. An image synthesizing circuit 5 synthesizes image signals, which have been obtained at mutually different timings, obtained by the coordinate transformation in the coordinate transformation circuit 4. As will be described later, shake compensation of each image obtained every vertical scanning period can be implemented by the coordinate transformation circuit 4 and image synthesizing circuit 5.
A camera signal processing circuit 6 converts the image signal, which has been synthesized by the image synthesizing circuit 5, to a well-known standard video signal typified by an NTSC signal, by way of example. The standard video signal obtained by the conversion in the camera signal processing circuit 6 is output as a moving image at a prescribed vertical scanning period, e.g., every 1/60 of a second, via a video output terminal 7.
Further components of the shake compensation mechanism possessed by the camera system are an angular velocity sensor 8 (e.g., a vibration gyro may be used), which is provided on the casing of the camera system, for detecting amount of shaking of the camera system, the angular velocity sensor 8 outputting a signal (information indicative of angular velocity, referred to as an “angular velocity signal” below), which represents shaking of the camera system as angular velocity, in conformity with the timing at which electric charge is read out of the image sensing element 1; a shake compensation amount calculating circuit 9 for calculating amount of shake compensation based upon the angular velocity signal that is output from the angular velocity sensor 8; and a shake compensation amount memory 10 for storing amount of shake compensation calculated by the shake compensation amount calculating circuit 9. Amounts of shake compensation that are output from the shake compensation amount calculating circuit 9 are stored sequentially in the shake compensation amount memory 10, based upon a prescribed timing signal generated by a timing generator (TG) 11, in association with image signals that have been read out of the image sensing element 1.
The timing generator 11 generates a reference signal that serves as the basis of operation timing of the camera system. The timing generator 11 supplies the image sensing element 1, image memory 3, coordinate transformation circuit 4, image synthesizing circuit 5 and shake compensation amount memory 10 with synchronizing signals and driving signals that trigger the start of operation.
A focus signal calculating circuit 12 calculates a focus signal used in focus control based upon the image signal that is output from the camera signal pre-processing circuit 2. By way of example, the focus signal calculating circuit 12 extracts, by filtering, a specific high-frequency component contained in the image signal, obtains the amplitude thereof and outputs it as a focus signal. On the basis of a temporal change in the amplitude level of the focus signal obtained by the focus signal calculating circuit 12, a focus control circuit 13 moves the focus lens 21 via the focus drive motor 22 in a direction in which the amplitude level of the focus signal increases. An autofocus (AF) operation is performed as a result. It should be noted that the AF control method implemented by the focus signal calculating circuit 12 and focus control circuit 13 is not limited to that described above and that it is possible to use a well-known method.
Next, reference will be had to the timing chart of
As illustrated in
Further, as indicated by “CALCULATION AND RECORDING OF AMOUNT OF SHAKE COMPENSATION” in
When the high-speed images IM1 to IM4 obtained in one vertical scanning period have all been stored in the image memory 3, the coordinate transformation circuit 4 reads the high-speed images IM1 to IM4 out of the image memory 3 at a timing indicated at “COORDINATE TRANSFORMATION AND SYNTHESIZING” in
Reference will now be had to
In
A signal indicative of the direction of shaking of the camera system, i.e., the direction of arrow 34, is obtained as the above-mentioned angular velocity signal. Accordingly, by translating the coordinates of the high-speed images IM1 to IM4 based upon the amounts of shake compensation corresponding to respective ones of the high-speed images IM1 to IM4, the amount of movement (the amount of shaking) produced by shaking of the camera system is compensated for per each of the high-speed images IM1 to IM4. This makes it possible to compensate for shaking. For example, by performing the coordinate transformation in such a manner that the coordinates of zones 35a to 35d indicated by the dashed lines in each of the high-speed images IM1 to IM4 will coincide, it is possible to cancel out movement of the camera system due to shaking.
Furthermore, a vertical-scanning-period image 35 can be formed by superimposing and synthesizing the zones 35a to 35d of the high-speed images IM1 to IM4 after the compensation thereof. By thus subjecting the high-speed images IM1 to IM4 obtained in each of the vertical scanning periods to a coordinate transformation in accordance with the amounts of shaking of the high-speed images IM1 to IM4 and then superimposing and synthesizing the results, it is possible to obtain a blur-free vertical-scanning-period image in each of the vertical scanning periods.
The foregoing has been described with regard to a case where a coordinate transformation and synthesizing are carried out after the high-speed images IM1 to IM4 are all stored in the image memory 3. However, the present invention is not limited to this arrangement and it may be so arranged that whenever each of the high-speed images IM1 to IM4 is stored in the image memory 3, the coordinate transformation and synthesizing are performed successively with regard to each of the high-speed images that have been stored.
Meanwhile, the camera signal pre-processing circuit 2 outputs the processed high-speed images IM1 to IM4 to the image memory 3 and to the focus signal calculating circuit 12 as well. Whenever a high-speed image is obtained anew, the focus signal calculating circuit 12 calculates a focus signal used in focus control and sends the calculated signal to the focus control circuit 13. By controlling the focus drive motor 22 based upon this focus signal, the focus control circuit 13 drives the focus lens and performs focus control.
Thus, it is possible to exercise AF control based upon an image obtained in every vertical scanning period in a manner similar to that of conventional autofocus control. In this case, however, AF control is applied to an image that is obtained by subjecting four high-speed images to a coordinate transformation and synthesis. In comparison with AF control performed by reading out a single image every vertical scanning period, as in the prior art, the above AF control requires time up to calculation of the focus signal, which time is longer by the length of processing time needed for the coordinate transformation and synthesizing processing. As a result, autofocus accuracy declines in comparison with the prior art.
Accordingly, in the first embodiment, AF control is executed repeatedly at a timing indicated by “AUTOFOCUS CONTROL” in
When an image is captured and image data enters the focus signal calculating circuit 12, processing starts. At step S11 in
At step S13 it is judged that the focus lens 21 is being moved in a direction toward better focus and therefore drive by the focus drive motor 22 is continued at step S13 so as to move the focus lens 21 in the same direction. If there is no change in the focus signal, it is judged that the focus lens 21 is close to the in-focus state and therefore driving of the focus drive motor 22 is halted at step S14. At step S15, it is judged that the focus lens 21 is being moved in a direction away from the in-focus position and therefore the driving direction of the focus drive motor 22 is reversed. It should be noted that in a case where the focus signal is increased or decreased by the present cycle of AF control and the focus drive motor 22 was at rest in the preceding cycle of AF control, the set-up is such that the focus drive motor 22 is driven in either direction. Alternatively, the direction in which the focus drive motor 22 was driven the last time may be stored in advance and the motor driven in this direction. Thus the driving direction is set appropriately.
At step S16, the presently obtained focus signal and the driving direction or the at-rest state of the focus lens 21 are stored in an accessible memory such as a memory within the focus control circuit 13 in order to perform the next cycle of AF control. Processing is then exited.
It should be noted that in the first embodiment, it is described that four charge-accumulation and read-out operations are performed in one vertical scanning period in order to obtain the high-speed images. However, the number of times these operations are performed in one vertical scanning period may be at least two and is not particularly limited to four times. Further, all of the high-speed images obtained in each of the vertical scanning periods need not necessarily be synthesized, and it may be so arranged that a number of images among the high-speed images acquired are synthesized.
In accordance with the first embodiment as described above, AF control can be carried out a plurality of times in one vertical scanning period. As a result, in comparison with conventional moving-image sensing that senses one image in one vertical scanning period, it is possible to perform more accurate AF control with a higher sense of real time.
<Modification>
The first embodiment has been described with regard to a case where camera shake is sensed using the angular velocity sensor 8. However, it may be so arranged that by extracting singularities in images obtained from the image sensing element 1, the amount of movement between images is detected to thereby sense shaking of the camera. The general configuration of a camera system in such case is illustrated in
Operation for detecting amount of camera shake in the singularity displacement calculating circuit 50 will be described in brief with reference to
The high-speed images IM1 to IM4 read out of the image memory 3 are input to the singularity displacement calculating circuit 50, which proceeds to extract a singularity. More specifically, first, from the building 33 in the high-speed image IM1, the singularity displacement calculating circuit 50 extracts the edge of a window, which is a point of high luminance, as a singularity by means of edge detection. The singularity displacement calculating circuit 50 then compares this detected singularity with a singularity obtained by detecting the edge of the window in the high-speed image IM2 that immediately follows the high-speed image IM1 and adopts the difference between the two-dimensional positions of these two singularities as the amount of shake compensation. Although the singularity is described as being a single point for the sake of explanation, in actuality a plurality of singularities can be made to exist within a single image, in which case the amounts of deviation of each of these singularities would be averaged based upon information of these singularities to obtain the amount of shake compensation. In general, the more the image of a subject contains background of little motion, the greater the number of singularities that can be extracted from the background and, hence, the greater the degree of accuracy with which movement of the image caused by hand-induced shaking can be detected.
In the description set forth above, a case where the amount of shake compensation between two high-speed images is found is described. In actuality, however, the sensing of a plurality of images to be synthesized is performed successively. Accordingly, it is possible to perform a coordinate transformation of all of the high-speed images the number of which exceeds two by accumulating differences obtained by repeating a coordinate transformation similar to that described above with regard to two high-speed images.
A second embodiment of the present invention will now be described.
The second embodiment is characterized in that AF control is exercised intermittently and not whenever a high-speed image is output. The configuration of the camera system in the second embodiment is similar to that shown in
The example of
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiment. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2005-262977, filed Sep. 9, 2005, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2005-262977 | Sep 2005 | JP | national |