1. Field of the Invention
The present invention relates to an image pickup apparatus that performs focusing based on a contrast evaluation value.
2. Description of the Related Art
Japanese Patent Laid-open No. 2013-25246 discloses an image pickup apparatus that simultaneously executes an imaging-plane phase difference AF and a contrast AF to achieve fast focusing, which is an advantage of the imaging-plane phase difference AF, and rigorous focusing, which is an advantage of the contrast AF.
However, the image pickup apparatus of Japanese Patent Laid-open No. 2013-25246 is based only on a condition that a filter band for calculating a contrast evaluation value is set to be higher than that of a filter for the imaging-plane phase difference AF. Thus, the image pickup apparatus may fail to achieve a sufficient focus accuracy, focusing on a target object, and outputting of a correct focus direction to achieve an in-focus state from a defocus state.
For example, when fine focusing is required near the in-focus state, outputting the contrast evaluation value at a low frequency band fails to achieve a sufficient focus accuracy. On the other hand, when the focus direction needs to be acquired in the defocus state, outputting the contrast evaluation value at a high frequency band fails to obtain a correct focus direction.
The present invention provides an image pickup apparatus capable of performing highly accurate focusing, a method of controlling the same, and a non-transitory computer-readable storage medium.
An image pickup apparatus as one aspect of the present invention includes a calculator configured to detect a defocus amount based on a contrast evaluation value of a synthesized signal, the synthesized signal being obtained by relatively shifting phases of passband signals of a first signal and a second signal through a predetermined frequency band and synthesizing the passband signals, and a controller that can change the predetermined frequency band.
A method of controlling an image pickup apparatus as another aspect of the present invention includes the step of detecting a defocus amount based on a contrast evaluation value of a synthesized signal, the synthesized signal is obtained by relatively shifting phases of passband signals of first and second signals through a predetermined frequency band and by synthesizing the passband signals, and the predetermined frequency band is variable.
A non-transitory computer-readable storage medium as another aspect of the present invention stores a program that causes a computer to execute a method of controlling an image pickup apparatus, the control method includes the step of detecting a defocus amount based on a contrast evaluation value of a synthesized signal, the synthesized signal is obtained by relatively shifting phases of passband signals of first and second signals through a predetermined frequency band and by synthesizing the passband signals, and the predetermined frequency band is variable.
Further features and aspects of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Exemplary embodiments of the present invention will be described below with reference to the accompanied drawings. It is to be understood that the invention described with reference to the exemplary embodiments is not limited thereto. The scope of the following embodiments is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
In
An image pickup element 106 includes a two-dimensional CMOS photo sensor and a peripheral and is disposed on an imaging plane of the image pickup optical system (imaging optical system).
A CDS/AGC circuit 107 performs correlated double sampling and gain adjustment on an output from the image pickup element 106.
A camera signal processor 108 performs various kinds of image processing on an output signal from the CDS/AGC circuit 107 to generate an image signal. A display unit 109 includes, for example, an LCD, and displays the image signal from the camera signal processor 108. A recorder 115 records the image signal from the camera signal processor 108 in a recording medium (magnetic tape, optical disk, and semiconductor memory, for example).
A zoom drive circuit 110 moves the magnification-varying lens 102 under control of a controller 114. A focus lens drive circuit 111 moves the focus lens 105 under control of the controller 114. The zoom drive circuit 110 and the focus lens drive circuit 111 each include an actuator such as a stepping motor, a DC motor, a vibration motor, and a voice coil motor.
An AF gate 112 supplies only those of output signals of all pixels from the CDS/AGC circuit 107, which are in a region (focus detection region or AF frame) for focus detection set by the controller 114, to an AF signal processing circuit 113 at a later stage.
The AF signal processing circuit 113 applies a filter on a signal of a pixel included in the focus detection region, which is supplied from the AF gate 112 so as to extract a high frequency component and generate an AF evaluation value. As described later, the AF signal processing circuit 113 in the present embodiment has a filter having a plurality of frequency characteristics, or a filter having a variable frequency characteristic. With this configuration, the AF signal processing circuit 113 generates the AF evaluation value through a filter having a frequency characteristic that differs depending on an output from a first focus detector described later. In this manner, the AF signal processing circuit 113 serves as a generator that generates the AF evaluation value (contrast evaluation value) based on a signal in a predetermined frequency band. The first focus detector is capable of detecting a focus state of the image pickup optical system, and is a focus detector that employs, for example, a phase difference detection method and a contrast detection method.
The AF evaluation value is output to the controller 114. The AF evaluation value indicates a sharpness (contrast) of an image generated based on an output signal from the image pickup element 106, and can used as a value representing the focus state of the image pickup optical system because the sharpness is high when the image is in focus and is low when the image is out of focus.
The controller 114 is, for example, a micro computer, and executes a control program previously stored in a ROM (not illustrated) to control each component in the digital video camera 100, and control an entire operation of the digital video camera 100. The controller 114 performs an AF control (automatic focusing control) operation by controlling the focus lens drive circuit 111 based on the AF evaluation value provided by the AF signal processing circuit 113. The controller 114 controls the zoom drive circuit 110 in accordance with a zoom instruction from an operation unit 116 to change the magnification of the zoom lens 120.
The operation unit 116 includes input devices such as a switch, a button, and a dial through which a user inputs various kinds of instructions and settings to the digital video camera 100. The operation unit 116 includes an image capturing start/stop button, a zoom switch, a still image capturing button, a directional button, a menu button, and an execution button.
In the present embodiment, a group 200 of 2×2 pixels illustrated in
The image pickup element 106 includes a plurality of sets of 4×4 image pickup pixels (8×4 focus detection pixels) illustrated in
As illustrated in
The photoelectric converters 301 and 302 may be each a PIN structure photodiode including an intrinsic layer between a p-type layer 300 and a n-type layer, or a p-n junction photodiode with the intrinsic layer omitted as necessary.
Each pixel includes a color filter 306 formed between the micro lens 305 and the photoelectric converters 301 and 302. The color filter may have different spectral transmittances for different subpixels (focus detection pixels), or the color filter may be omitted, as necessary.
Light incident on the pixel 200G illustrated in
As illustrated in
As described above, the image pickup element used in the present embodiment includes the first focus detection pixel that receives a light beam passing through the first partial pupil region of the image pickup optical system, and the second focus detection pixel that receives a light beam passing through the second partial pupil region of the image pickup optical system that is different from the first partial pupil region. More specifically, the image pickup element includes the first and focus detection pixels that share the single micro lens and receive light beams passing through different pupil regions (the first and second partial pupil regions) of the image pickup optical system. The image pickup element further includes an array of image pickup pixels that receive light beams passing through a pupil region as a combination of the first and second partial pupil regions of the image pickup optical system. Each image pickup pixel of the image pickup element in the present embodiment includes the first and focus detection pixels. However, as necessary, the first and second focus detection pixels may be configured separately from the image pickup pixel and disposed in parts of the array of image pickup pixels.
In the present embodiment, a light-reception signal from the first focus detection pixel 201 of each pixel 200a of the image pickup element is collected to generate a first focus detection signal, and a light-reception signal from the second focus detection pixel 202 of each pixel 200a is collected to generate a second focus detection signal (by a focus detection signal generator), so as to perform a focus detection. The signals from the first and second focus detection pixels 201 and 202 are added for each pixel of the image pickup element to generate an image signal (image pickup image) at a resolution of the number N of effective pixels.
Next, a relation between an image shift amount and defocus amounts of the first and second focus detection signals acquired by the image pickup element used in the present embodiment will be described.
A defocus amount d is defined to be negative (d<0) for a short-focus state in which the imaging position of an object is between the imaging plane and the object, and to be positive (d>0) for an over-focus state in which the imaging position is opposite the object with respect to the imaging plane 500, where a size |d| is a distance from the imaging position of the object to the imaging plane 500. The defocus amount d is equal to zero for an in-focus state in which the imaging position of the object is at the imaging plane 500 (an in-focus position).
In the short-focus state (d<0), among light beams from the object 602, an object light beam passing through the first partial pupil region 401 is condensed and then broadened to have a width Γ1 centering at a barycenter position G1, forming a blurred image on the imaging plane 500. Similarly, an object light beam passing through the second partial pupil region 402 is broadened to have a width Γ2 centering at a barycenter position G2, forming a blurred image. Each blurred image is received by the first focus detection pixel 201 (second focus detection pixel 202) included in each of the pixels arrayed in the image pickup element, to generate the first focus detection signal (second focus detection signal). Thus, the first focus detection signal (second focus detection signal) is recorded as a blurred object image of the object 602 having the width Γ1 (Γ2) at the barycenter position G1 (G2) on the imaging plane 500. The blur width Γ1 (Γ2) of the object image is mostly proportional to the size |d| of the defocus amount d. Similarly, a size |p| of an image shift amount p of the object image between the first and second focus detection signals (that is, a difference G1−G2 between the barycenter positions of the light beams) is mostly proportional to the size |d| of the defocus amount d. The over-focus state (d>0) has the same characteristics described above, although a direction of an image shift of the object image between the first and second focus detection signals is opposite to that of the short-focus state.
Therefore, as the sizes of the defocus amounts of the first and second focus detection signals, or the size of the defocus amount of an image signal as a sum of the first and second focus detection signals increases, the size of the image shift amount between the first and second focus detection signals increases.
In the present embodiment, a second focus detector described later uses the relation between the defocus amounts and the image shift amount of the first and second focus detection signals to perform a first focus detection by a method based on a refocus principle (hereinafter, referred to as a refocus method). The second focus detector also changes a filter band for an evaluation value used in the first focus detection by the refocus method, depending on a result of a second focus detection by a phase difference method.
A focusing state of an object is determined by comparing a predetermined value and a detected defocus amount in the present embodiment.
First, the first focus detection by the refocus method in the present embodiment will be described.
In the first focus detection by the refocus method in the present embodiment, the AF signal processing circuit 113 relatively shifts the first and second focus detection signals and add them together to generate a shift addition signal (refocus signal). In other words, the AF signal processing circuit 113 serves as a refocus signal generator that performs refocus processing on the first focus detection signal obtained from the first focus detection pixel and the second focus detection signal obtained from the second focus detection pixel so as to generate the refocus signal. The AF signal processing circuit 113 then calculates the contrast evaluation value of the generated shift addition signal (refocus signal), and estimates an MTF peak position of the image signal based on the contrast evaluation value, thereby detecting a first detection defocus amount.
The first and second focus detection signals Ai and Bi include not only light intensity distribution information but also incident angle information. Thus, the refocus signal at a virtual imaging plane 710 can be generated by translating the first and second focus detection signals Ai and Bi at the respective angles θa and θb to the virtual imaging plane 710 and adding them together. The translation of the first focus detection signal Ai at the angle θa to the virtual imaging plane 710 corresponds to a shift of +0.5 pixel in the row direction, and the translation of the second focus detection signal Bi at the angle θb to the virtual imaging plane 710 corresponds to a shift of −0.5 pixel in the row direction. Therefore, the refocus signal at the virtual imaging plane 710 can be generated by shifting the first and second focus detection signals Ai and Bi relatively by +1 pixel and adding the first and second focus detection signals Ai and Bi+1 together. In this manner, the shift addition signal (refocus signal) at the virtual imaging plane corresponding to an amount of the integer multiple shift can be generated through a shift of the first and second focus detection signals Ai and Bi by an integer multiple of pixel and adding them together.
The first focus detection by the refocus method is performed by calculating the contrast evaluation value of the generated shift addition signal (refocus signal) and estimating the MTF peak position of the image signal based on the calculated contrast evaluation value.
At step S1000, the operation starts.
At step S1010, the controller 114 first sets the focus detection region for focusing within a region of the effective pixels of the image pickup element. Then, the controller 114 controls drive of the image pickup element 106 to acquire, by the focus detection signal generator, the first focus detection signal based on the light-reception signal from the first focus detection pixel in the focus detection region, and the second focus detection signal based on the light-reception signal from the second focus detection pixel in the focus detection region.
At step S1020, the AF signal processing circuit 113 provides each of the first and second focus detection signals with three-pixel addition processing in the row direction to reduce a signal data amount, and then performs Bayer (RGB) addition processing to convert an RGB signal into a luminance Y signal. These two kinds of addition processing are collectively referred to as first pixel addition processing. One or both of the three-pixel addition processing and the Bayer (RGB) addition processing may be omitted as necessary.
At step S1030, the first and second focus detection signals are shifted relative to each other in a pupil division direction in first shift processing and added together to generate the shift addition signal (refocus signal). Then, the contrast evaluation value (a first evaluation value) based on the generated shift addition signal is calculated.
The calculation of the first evaluation value at step S1030 is a characteristic feature of the present embodiment and is performed based on a detection result of the first focus detector (employing the phase difference method) described later. The calculation of the first evaluation value will be described in detail later with reference to a flowchart in
The k-th first focus detection signal is denoted by A(k), the k-th second focus detection signal is denoted by B(k), and a range of the number k corresponding to those signals from a pixel in the focus detection region is denoted by W. Where a shift amount by the first shift processing is denoted by s1 and a shift range of the shift amount s1 is denoted by Γ1, a contrast evaluation value (first evaluation value) RFCON is calculated by Expression (1) below.
The k-th first focus detection signal A(k) and the (k−s1)-th second focus detection signal B(k−s1) correspond to each other through the first shift processing by the shift amount s1 and then are added together to generate the shift addition signal. The absolute value of the shift addition signal is calculated to obtain a maximum value in the range W of the focus detection region and calculate the contrast evaluation value (first evaluation value) RFCON(s1). The contrast evaluation value (first evaluation value) calculated for each row may be added together over a plurality of rows for each shift amount as necessary.
At step S1040, the contrast evaluation value (first evaluation value) is used in subpixel calculation to calculate a real-valued shift amount as a peak shift amount p1 at which the contrast evaluation value is at maximum. The peak shift amount p1 is multiplied with the image height of the focus detection region, the f-number of an image pickup lens (the image pickup optical system), and a first conversion coefficient K1 depending on an exit pupil distance, thereby calculating the first detection defocus amount (Def1).
In the present invention, the second focus detector employing the refocus method provides the first and second focus detection signals with the first shift processing, and then adds them together to generate the shift addition signal. Then, the shift addition signal is used to calculate the contrast evaluation value for the frequency band, and the calculated contrast evaluation value is used to detect the first detection defocus amount.
Next, the second focus detection by the phase difference method in the first embodiment will be described.
In the second focus detection by the phase difference method, the first and second focus detection signals are shifted relative to each other to calculate a correlation amount (second evaluation value) representing a degree of coincidence of the signals, thereby detecting the image shift amount based on a shift amount that leads to an improved correlation (the degree of coincidence of the signals). Since the image shift amount between the first and second focus detection signals increases as the defocus amount of the image signal increases, the image shift amount is converted into a second detection defocus amount when the focus detection is performed.
At step S1100, the operation starts.
At step S1110, the controller 114 first sets the focus detection region for focusing within a region of the effective pixels of the image pickup element. Then, the controller 114 controls drive of the image pickup element 106 to acquire the first focus detection signal based on the light-reception signal from the first focus detection pixel in the focus detection region, and the second focus detection signal based on the light-reception signal from the second focus detection pixel in the focus detection region.
At step S1120, the AF signal processing circuit 113 provides each of the first and second focus detection signals with the three-pixel addition processing in the row direction to reduce signal data amount, and then performs the Bayer (RGB) addition processing to covert an RGB signal into a luminance Y signal. These two kinds of addition processing are collectively referred to as second pixel addition processing.
At step S1130 in
Next, at step S1140 in
The k-th first and second focus detection signals after the filter processing are denoted by A(k) and B(k), and a range of the number k corresponding to those signals from a pixel in the focus detection region is denote by W. Where a shift amount by the second shift processing is denoted by s2 and a shift range of the shift amount s2 is Γ2, a correlation amount (second evaluation value) COR is calculated by Expression (2) below.
The k-th first focus detection signal A(k) and the (k−s2)-th second focus detection signal B(k−s2) correspond to each other through the second shift processing by the shift amount s2 and then are subtracted to generate a shift subtraction signal. The absolute value of the generated shift subtraction signal is calculated and summed over the number k in the range W of the focus detection region to calculate the correlation amount (second evaluation value) COR(s2). The correlation amount (second evaluation value) calculated for each row may be added together over a plurality of rows for each shift amount as necessary.
At step S1150, the correlation amount (second evaluation value) is used in subpixel calculation to calculate a real-valued shift amount as an image shift amount p2 at which the correlation amount is at minimum. The image shift amount p2 is multiplied with the image height of the focus detection region, the f-number of the image pickup lens (image pickup optical system), and a second conversion coefficient K2 depending on the exit pupil distance, thereby calculating the second detection defocus amount (Def2).
The first and second conversion coefficients K1 and K2 may be identical to each other as necessary.
As described above, in the present embodiment, the first focus detector employing the phase difference method provides the first and second focus detection signals with the filter processing and the second shift processing to calculate the correlation amount, thereby detecting the second detection defocus amount based on the correlation amount.
Details of the filter processing at step S1130 and the first evaluation value calculation at step S1030 described above will be described with reference to flowcharts in
Operations in
In the first embodiment, until the absolute value of the defocus amount of the image pickup optical system becomes not larger than a predetermined value 1, the first focus detection by the refocus method is performed to drive a lens, thereby performing focus processing until a best in-focus position is nearly achieved.
First, referring to
At step S1100, the second focus detection by the phase difference method described with reference to
Next, at step S1000, the first focus detection by the refocus method described with reference to
Next, at step S1210, it is determined whether the first defocus amount (Def1) calculated at step S1000 is not larger than the predetermined value 1.
When the size |Def1| of the detected first defocus amount is not larger than the predetermined value 1, focusing is determined to be complete, and the focus processing is finished. On the other hand, when the size |Def1| is larger than the predetermined value 1, the lens drive at step S1220 is performed depending on the first defocus amount (Def1), and the flow returns to step S1100. In this manner, the controller 114 serves as a controller that performs focusing based on the calculated defocus amount.
Next, the calculation of the first evaluation value at step S1030 in
In
Next, at step S1320, a low-frequency band filter (filter for a second frequency band) for a frequency band lower than that of the high-frequency band filter set at step S1320 is set.
Examples the frequency bands described above are illustrated with a broken line and a dashed line in
Although only the two filters of the high-frequency band filter and the low-frequency band filter are set in
Next, at step S1330, the contrast evaluation values based on passband signals through the frequency band filters set at steps S1310 and S1320 is acquired, and the flow proceeds to step S1340.
Next, at step S1340, it is determined whether the second defocus amount (Deft) calculated at step S1100 and detected by the phase difference detection method is not larger than a predetermined value 2.
When the size |Def2| of the detected second defocus amount is not larger than the predetermined value 2, the flow proceeds to step S1350. On the other hand, when the size |Def2| is larger than the predetermined value 2, the flow proceeds to step S1360.
Next, at step S1350, the first evaluation value is set to be the contrast evaluation value based on passband signals through the high-frequency band filter, and the calculation of the first evaluation value is finished. In other words, when the size |Def2| of the second defocus amount is not larger than the predetermined value 2 (a first predetermined value), the contrast evaluation value is generated based on the passband signals through the high frequency band (first frequency band).
At step S1360, the first evaluation value is set to be the contrast evaluation value based on passband signals through the low-frequency band filter, and the calculation of the first evaluation value is finished. In other words, when the size |Def2| of the second defocus amount is larger than the predetermined value 2 (first predetermined value), the contrast evaluation value is generated based on the passband signals through the low frequency band (second frequency band).
In this manner, in the present embodiment, the first evaluation value is generated from passband signals through one of the first frequency band and the second frequency band lower than that of the first frequency band, which is selected based on the detection result (Deft) of the focus detector employing the phase difference detection method.
The configuration described above enables an appropriate frequency band filter to be set based on the detection result of the second focus detection by the phase difference method when focusing is performed through the first focus detection by the refocus method, thereby achieving fast and stable (that is, highly accurate) focusing. In the present embodiment, the image pickup pixels are divided in the horizontal direction, but a similar operation is achievable also with the division in the vertical direction.
Next, a second embodiment of the present invention will be described. First, differences between the present embodiment and the first embodiment will be described.
The present embodiment employs a method different from the method of calculating the first evaluation value described as the characteristic of the first embodiment. In the first embodiment, the contrast evaluation value acquired from the AF signal processing circuit 113 is selected from the contrast evaluation value based on passband signals through the high-frequency band filter and the contrast evaluation value based on passband signals through the low-frequency band filter. In the second embodiment, the contrast evaluation value is generated as a weighted sum of both (two or more, for three filters or more) of the contrast evaluation values with predetermined weights.
The digital video camera 100 in the present embodiment has the same configuration as that described with reference to
The operations of the digital video camera 100 described with reference to the flowcharts in
A characteristic feature of the second embodiment will be described with reference to
At step S1410, it is determined whether the second defocus amount (Def2) calculated at step S1100 and detected by the phase difference method is not larger than a predetermined value 3.
When the size |Def2| of the detected second defocus amount is not larger than the predetermined value 3, the flow proceeds to step S1420. On the other hand, when the size |Def2| is larger than the predetermined value 3, the flow proceeds to step S1430.
At steps S1420 and S1430, coefficients α and β that multiply a plurality of evaluation values when they are added together are set.
In the second embodiment, when the size |Def2| of the second defocus amount is not larger than the predetermined value 3 (a second predetermined value), a fourth contrast evaluation value is generated as a product of the contrast evaluation value for the high frequency band (first frequency band) with the weight β (a third weight). On the other hand, a fifth contrast evaluation value is generated as a product of the contrast evaluation value for the low frequency band (second frequency band) with the weight α (a fourth weight) smaller than the weight β. Then, the first defocus amount is detected based on a sixth contrast evaluation value as a sum of the fourth and fifth contrast evaluation values. Thus, at step S1420, α and β are set to such values that α is smaller than β.
On the other hand, in the second embodiment, when the size |Def2| of the second defocus amount is larger than the predetermined value 3 (second predetermined value), a first contrast evaluation values is generated as a product of the contrast evaluation value for the high frequency band (first frequency band) with the weight β (a first weight). In addition, a second contrast evaluation value is generated as a product of the contrast evaluation value for the low frequency band (second frequency band) with the weight α (a second weight) larger than the weight β. Then, the first defocus amount is detected based on a third contrast evaluation value as a sum of the first and second contrast evaluation values. Thus, at step S1430, α and β are set to such values that α is larger than β.
Thus, when it is determined that the second defocus amount is large, that is, the current lens position is far from the in-focus position, which is generating a blurred image, a focusing point and a focusing direction can be more accurately calculated based on the contrast evaluation value for the low frequency band.
On the other hand, when the second defocus amount is small, that is, the current lens position is close to the in-focus position, the focusing point and the focusing direction can be more accurately calculated based on the contrast evaluation value for the high frequency band.
Next, at step S1440, the first evaluation value is generated as a sum of the contrast evaluation value for the low frequency band and the contrast evaluation value for the high frequency band based on the values of α and β set at step S1420 or step S1430.
The first evaluation value is calculated by Expression (3) below.
FIRST EVALUATION VALUE=α×CONTRAST EVALUATION VALUE FOR LOW FREQUENCY BAND+β×CONTRAST EVALUATION VALUE FOR HIGH FREQUENCY BAND (3)
In the present embodiment, α and β are set to satisfy a condition α+β=1, and α is set to be larger for a larger second defocus amount (Def2) detected by the phase difference method, whereas β is set to be larger for a smaller second defocus amount (Def2). In this manner, in the present embodiment, the weight α and the weight β are changed based on the detection result (Def2) of the first focus detector.
The ratio of the values of α and β for the size of the second defocus amount (Def2) can be set to be any values as long as the values satisfy the condition. In the present embodiment, α and β are set to be such linear changing values that α=0 and β=1 for the second defocus amount (Def2)=0, and α=1 and β=0 for the second defocus amount (Def2) being at a predetermined maximum defocus amount.
As described above, in the present embodiment, when |Def2| is larger than the predetermined value 3, the first contrast evaluation value is generated as a product of a contrast evaluation value generated from a passband signal through the high frequency band with the first weight β. The second contrast evaluation value is generated as a product of a contrast evaluation value generated from a passband signal through the low frequency band with the second weight α larger than the first weight β, and then the third contrast evaluation value is generated as a sum of the first and second contrast evaluation values. On the other hand, when |Def2| is not larger than the predetermined value 3, the fourth contrast evaluation value is generated as a product of a contrast evaluation value generated from a passband signal through the high frequency band with the third weight β. The fifth contrast evaluation value is generated as a product of a contrast evaluation value generated from a passband signal through the low frequency band with a fourth weight α smaller than the third weight β, and then the sixth contrast evaluation value is generated as a sum of the fourth and fifth contrast evaluation values.
The configuration described above allows an appropriate frequency band filter to be set based on the detection result of the second focus detection by the phase difference method when focusing is performed through the first focus detection by the refocus method, thereby achieving fast and stable (that is, highly accurate) focusing.
Next, a third embodiment of the present invention will be described. First, differences between the present embodiment and the first and second embodiments will be described.
The present embodiment employs a method different from the method of calculating the first evaluation value described as the characteristic features of the first and second embodiments.
In the first embodiment, the contrast evaluation value acquired from the AF signal processing circuit 113 is selected from the contrast evaluation value based on passband signals through the high-frequency band filter and the contrast evaluation value based on passband signals through the low-frequency band filter.
In the second embodiment, the contrast evaluation value is generated as a weighted sum of both (two or more, for three filters or more) of the contrast evaluation values with the predetermined weights.
In the third embodiment, the frequency band of a filter set to the AF signal processing circuit 113 is switched depending on the second defocus amount.
The digital video camera 100 in the present embodiment has the same configuration as that described with reference to
The operation of the digital video camera 100 described with reference to the flowcharts in
A characteristic feature of the third embodiment will be described with reference to
At step S1510, it is determined whether the second defocus amount (Def2) calculated at step S1100 and detected by the phase difference method is not larger than a predetermined value 4.
When the size |Def2| of the detected second defocus amount is not larger than the predetermined value 4, the flow proceeds to step S1310 to set the high-frequency band filter. On the other hand, when the size |Def2| is larger than the predetermined value 4, the flow proceeds to step S1320 to set the low-frequency band filter.
Next, at step S1520, the contrast evaluation value based on passband signals through the filter set at step S1310 or at step S1320 is acquired as the first evaluation value.
In this manner, in the present embodiment, the first evaluation value is generated from passband signals through one of the first frequency band and the second frequency band lower than the first frequency band, which is selected based on the detection result (Deft) of the focus detector employing the phase difference detection method.
When focusing is performed through the first focus detection by the refocus method, the configuration described above allows an appropriate frequency band filter to be set based on the detection result of the second focus detection by the phase difference method, and allows the first defocus amount to be calculated from the contrast evaluation value based on passband signals through the frequency band filter. This enables fast and stable (that is, highly accurate) focusing.
Next, a fourth embodiment of the present invention will be described. First, differences between the present embodiment and the first, second, and third embodiments will be described.
The present embodiment employs a method different from the detection method employed by the second focus detector described as the characteristic features of the first, second, and third embodiments.
The digital video camera 100 in the present embodiment has the same configuration as that described with reference to
The operation of the digital video camera 100 described with reference to the flowcharts in
A characteristic feature of the fourth embodiment will be described with reference to
In
The image pickup state determination at step S1600 determines whether the controller 114 has received information of generation of a hand shake from a hand shake detection sensor (not illustrated), or whether the controller 114 has received an instruction of an zoom operation from the operation unit 116. Thus, in the present embodiment, the controller 114 serves as a detector that detects an image pickup state such as a shaking state and a zooming state.
Next, three patterns of the first evaluation value calculation in the first focus detection at step S1000 will be described with reference to
At step S1710 in
At step S1710 in
At step S1710 in
The operations illustrated in
For example, in
In
Similarly, in
When focusing is performed through the first focus detection by the refocus method, the configuration described above allows an appropriate frequency band filter to be set based on the image pickup state such as the zooming state and the shaking state, and enables fast and stable (that is, highly accurate) focusing.
In the present embodiment, as illustrated in
The image pickup element is provided thereon with a plurality of arrays of 4×4 pixels (8×8 subpixels) illustrated in
As illustrated in
In the present embodiment, signals from the subpixels 2101 to 2104 are added together for each pixel (2100) of the image pickup element to generate an image signal (captured image) having a resolution for the number N of effective pixels. In addition, the signals from the subpixels 2101 and 2103 are added together for each pixel to generate the first focus detection signal, and the signals from the subpixels 2102 and 2104 are added together to generate the second focus detection signal. These addition processes acquire the first and second focus detection signals corresponding to pupil division in the horizontal direction, which allows the first focus detection by the phase difference method and the second focus detection by the refocus method to be performed.
Similarly, in the present embodiment, signals from the subpixels 2101 and 2102 are added together for each pixel to generate the first focus detection signal, and the signals from the subpixels 2103 and 2104 are added together to generate the second focus detection signal. These addition processes acquire the first and second focus detection signals corresponding to pupil division in the vertical direction, which allows the first focus detection by the phase difference method and the second focus detection by the refocus method to be performed. In this manner, the image pickup element in the present embodiment can be used as the image pickup element of the image pickup apparatus in the first to fifth embodiments.
Other configurations are the same as those of the first embodiment.
The configuration described above reduces a difference between a detected in-focus position calculated from focus detection signals and the best in-focus position of the image signal, and enables a highly accurate or highly sensitive and fast focus detection.
As described above, the present invention achieves more stable and highly accurate focusing by acquiring a contrast evaluation value by using a more appropriate filter frequency band. In other words, the present invention allows the detected in-focus position and the focusing direction calculated from focus detection signals to be accurately detected independently from a current focus state, which enables a faster determination of the focusing direction, and a more highly accurate determination of the focusing point.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
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 embodiments. 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. 2014-104153, filed on May 20, 2014, which is hereby incorporated by reference wherein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2014-104153 | May 2014 | JP | national |