Automatic focusing apparatus including improved digital high-pass filter

Abstract: The automatic focusing apparatus includes a focus lens (1), an image sensing circuit (2), a circuit (3) for generating a focus evaluating value in response to a video signal from image sensing circuit (2), a hill-climbing control circuit (10), a focus motor (16) for moving focus lens (1) in response to a control signal from hill-climbing control circuit (10), and a circuit (17) for detecting the position of focus motor (16). Focus evaluating value generation circuit (3) includes an A/D converter (4), a digital HPF (5), a digital integrator (6) for integrating the level of the high frequency component in a digital luminance signal in response to a control signal from an integration period setting circuit (8) and sequentially supplying the resultant value as a focus evaluating value to hill-climbing control circuit (10) for every field, and a timer circuit (9) for producing a reset signal (RS) at H level. Thus, after passage of prescribed time period (T2) from the end of the horizontal blanking period, reset signal (RS) is applied to digital HPF (5), delay register (51B, 51C) in the digital HPF (5) is set to zero, and digital HPF (5) is reset. Ringing due to a rising in the horizontal blanking period disappears, part of ringing will not be integrated, and therefore accurate automatic focusing operation can be performed.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates generally to automatic focusing apparatuses, and more specifically, to an automatic focusing apparatus for automatically matching the focus to an object in response to a video signal obtained from an image sensor, in an image sensing apparatus such as a video camera having an automatic focusing function. Description of the Background Art Conventionally, in an automatic focusing apparatus for use in an image sensing apparatus such as a video camera, an approach utilizing a video signal obtained from an image sensor itself for evaluation for the state of focus control has been developed. Such an approach is essentially free from parallax and possesses excellent characteristics that, for example, the focus can exactly be matched even if the depth of field is small and an object is located in the distance. Furthermore, according to this approach, a special sensor for automatic focusing does not have to be separately provided and therefore the apparatus is of a very simple mechanism. As an example of such a focus control method utilizing a video signal, a so-called hill-climbing servo system has been conventionally known. An automatic focusing apparatus utilizing the hill-climbing servo system is disclosed, for example, in U.S. Patent Nos. US-A-4,922,346 and US-A-5,003,339, and briefly stated, a high frequency component of a video signal from an image sensor is detected for every field as a focus evaluating value, the detected focus evaluating value is always compared with a focus evaluating value detected one field before, and a focus lens continues to be slightly vibrated so that the focus evaluating value always takes a maximum value. US-A-5 077 613 discloses another example of a video camera equipped with an automatic focusing device which comprises a signal processing unit for operating the focusing condition of an object from the video signal by using a high pass filter followed by an integrator in order to generate a focus evaluating signal. In recent years, as digitization of signal processing circuitry, for example, in digital video tape recorders has developed, there are demands for digitizing automatic focusing circuitry. For example, replacement of an analog high-pass filter (hereinafter referred to as HPF) in an automatic focusing circuit with a digital HPF is demanded. An infinite impulse responds (IIR) filter would be suited for the digital HPF in such a case for its characteristic and in view of its circuit scale. As illustrated in a timing chart in Fig. 10, for example, a video signal originally does not have a high frequency component when the picture plane is entirely white. Therefore, a digital HPF will output nothing in response to such a video signal. However, the horizontal period (field period) of the video signal includes a horizontal blanking period for a horizontal retrace line, and the video signal has rising and falling edges before and after the horizontal blanking period. Accordingly, high frequency components for these edges are output from the digital HPF. Such a phenomenon is called ringing. Especially when the digital HPF includes an IIR filter, an output signal from the HPF attenuates while vibrating, but if the time constant of the HPF is large, integration is initiated before an output signal from the HPF is sufficiently attenuated. Thus, part of ringing is mixed into the focus evaluating value as a pseudo signal and adversely affects the focusing operation. Meanwhile, when a signal processing circuit is digitized, power consumption is reduced, and therefore supplying a clock signal for operating the signal processing circuit only when it is necessary, and stopping the clock signal otherwise may be usually employed. Therefore, an output signal from the HPF is not necessary other than in the period for integration in the automatic focusing circuit, and therefore as illustrated in Fig. 11, it is considered to provide a period for stopping the clock signal. During the period in which the clock signal is stopped, the value or a delay register in the digital HPF does not change, and the delay register maintains the video signal level immediately before the clock stopped period. Accordingly, if there is a difference between the level of a video signal immediately before the clock stopped period and the level of the video signal immediately after the clock stopped period, an edge V is substantially present at the end of the clock stopped period. Under such a situation, a high frequency component due to edge V is output from the HPF similarly to the above-described case. If integration is initiated before the output signal from the HPF is sufficiently attenuated, part of the ringing is mixed into the focus evaluating value as a pseudo signal similarly to the above case, and adversely affects the focusing operation. SUMMARY OF THE INVENTION It is an object of the invention to provide an automatic focusing apparatus capable of accurate automatic focusing operation. Another object of the invention is to provide an automatic focusing apparatus with reduced power consumption. Yet another object of the invention is to provide an automatic focusing apparatus preventing part of ringing due to an edge such as in a horizontal blanking period included in a video signal from mixing into a focus evaluating value as a pseudo signal. According to one aspect of the invention, an automatic focusing apparatus for automatically matching the focus to an object, briefly stated, includes a focus lens, an image sensing circuit, a digital high-pass filter, an integrating circuit, a control circuit, and a resetting circuit. The image sensing circuit produces a video signal in response to incident light through the focus lens from the object. The digital high-pass filter extracts a high frequency component in the video signal produced by the image sensing circuit. The integrating circuit integrates the level of the high frequency component extracted by the digital high-pass filter during a prescribed integration period exclusive of a horizontal blanking period, and sequentially supplies the resultant value for every field as a focus evaluating value which takes a maximum value at the in-focus position. The control circuit controls the position of the focus lens relative to the image sensing circuit in the direction of optical axis in response to the focus evaluating value supplied from the integrating circuit. The resetting circuit resets the digital high-pass filter during the period from the end of a horizontal blanking period to initiation of an integration period. According to another aspect of the invention, an automatic focusing apparatus for automatically matching the focus to an object, briefly stated, includes a focus lens, an image sensing circuit, a digital high-pass filter, a stopping circuit, an integrating circuit, a control circuit, and a resetting circuit. The stopping circuit stops operation of the digital high-pass filter during a prescribed stopping period including a horizontal blanking period. The integrating circuit integrates the level of a high frequency component extracted by the digital high-pass filter during a prescribed integrating period exclusive of the stopping period, and sequentially supplies the resultant value for every field as a focus evaluating value which takes a maximum value at the in-focus position. The resetting circuit resets the digital high-pass filter during the period from the end of a stopping period to initiation of an integration period. In the automatic focusing apparatus according to the invention, since the digital high-pass filter is reset during the period from the end of a horizontal blanking period to initiation of an integration period, part of ringing due to an edge created during the horizontal blanking period can be prevented from mixing into the focus evaluating value as a pseudo signal, and therefore automatic focusing operation can be accurately performed. In the automatic focusing apparatus according to the invention, since the operation of the digital high-pass filter is stopped during a prescribed stop period including a horizontal blanking period, power consumption can be reduced. Furthermore, since the digital high-pass filter is reset during the period from the end of a stopping period to initiation of an integration period, part of ringing due to an edge in the stopping period can be prevented from mixing into the focus evaluating value as a pseudo signal, and accurate automatic focusing operation can be performed. The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the entire structure of a digital high-pass filter in an automatic focusing apparatus according to a first embodiment of the invention; Fig. 2 is a block diagram showing the entire structure of an automatic focusing apparatus including the digital high-pass filter shown in Fig. 1; Fig. 3 is a block diagram showing the entire structure of a digital integrator shown in Fig. 2; Fig. 4 is a graph showing an operation by a hill-climbing control of the automatic focusing apparatus shown in Fig. 2; Fig. 5 is a timing chart for use in illustration of essential operation of the automatic focusing apparatus shown in Fig. 2; Fig. 6 is a block diagram showing the entire structure of an automatic focusing apparatus according to a second embodiment of the invention; Fig. 7 is a timing chart for use in illustration of essential operation of the automatic focusing apparatus shown in Fig. 6; Fig. 8 is a block diagram showing the entire structure of a digital high-pass filter in an automatic focusing apparatus according to a third embodiment of the invention; Fig. 9 is a block diagram showing the entire structure of a digital high-pass filter in an automatic focusing apparatus according to a fourth embodiment of the invention; Fig. 10 is a timing chart for use in illustration of operation of an automatic focusing apparatus as a background art of the present invention; and Fig. 11 is a timing chart for use in illustration of operation of an automatic focusing apparatus as a background art of the invention. DESCRIPTION OF THE PREFERRED EMBODIMENTS Now, embodiments of the invention will be described in detail in conjunction with the accompanying drawings. Note that portions designated with the same reference characters indicate the same or corresponding portions. Embodiment 1 Fig. 2 is a block diagram showing the entire structure of an automatic focusing apparatus according to a first embodiment of the invention. Referring to Fig. 2, the automatic focusing apparatus includes a focus lens 1, and an image sensing circuit 2 including an image sensor such as CCD (Charge Coupled Device). Light from an object comes into the image sensor in image sensing circuit 2 through focus lens 1. Image sensing circuit 2 produces a video signal in response to the incident light. The automatic focusing apparatus further includes a focus evaluating value generation circuit 3. Focus evaluating value generation circuit 3 includes an analog-digital converter 4, a digital high-pass filter (HPF) 5, a digital integrator 6, a synchronizing separation circuit 7, an integration period setting circuit 8, and a timer circuit 9. Focus evaluating value generation circuit 3 sequentially generates for every field a focus evaluating value which takes a maximum value at the in-focus position in response to a luminance signal in the video signal supplied from image sensing circuit 2. A/D converter 4 in focus evaluating value generation circuit 3 converts the analog luminance signal supplied from image sensing circuit 2 into a digital signal. Digital HPF 5 extracts only a high frequency component (over 600KHz) from the digital luminance signal supplied from A/D converter 4 in response to a clock signal CL. Meanwhile, synchronizing separation circuit 7 separates the luminance signal supplied from image sensing circuit 2 into a vertical synchronizing signal VS and a horizontal synchronizing signal HS. Integration period setting circuit 8 sets a prescribed integration period exclusive of a horizontal blanking period in response to vertical and horizontal synchronizing signals VS and HS supplied from synchronizing separation circuit 7. Herein, the integration period is set to a period corresponding to a rectangular focus area set in the center of the image sensing picture plane so that only the high frequency component of the luminance signal in the focus area is extracted. Digital integrator 6 integrates the level of high frequency component YH extracted by digital HPF 5 during the above-described integration period, in response to a control signal supplied from integration period setting circuit 8, and sequentially supplies the resultant value as a focus evaluating value FEV for every field. The level of high frequency component YH in the luminance signal corresponding to areas other than the focus area such as areas in the vicinity of the upper and lower ends of the image sensing picture plane is not integrated. Fig. 3 is a block diagram specifically showing the structure of digital integrator 6. Referring to Fig. 3, digital integrator 6 includes an adder 61, and a memory circuit 62. Adder 61 adds data stored in memory circuit 62 and output signal YH from HPF 5. Memory circuit 62 stores addition data from adder 61. In such digital integrator 6, addition data periodically obtained from adder 61 is stored in memory circuit 62, and memory circuit 62 is sequentially updated. Memory circuit 62 is reset in a vertical blanking period, and data stored in memory circuit 62 immediately before the resetting is output as a focus evaluating value for a corresponding field. The addition operation by adder 61 is performed only in an integration period, and its addition cycle matches the data sampling cycle of A/D converter 4. Digital HPF 5 and timer circuit 9 will be later described in detail. Referring to Fig. 2, the automatic focusing apparatus further includes a hill-climbing control circuit 10. Hill-climbing control circuit 10 includes a maximum value memory 11, a focus lens position memory 12, comparison circuits 13 and 14, and a motor control circuit 15. The automatic focusing apparatus further includes a focus motor 16 for advancing/retracting focus lens 1 in the direction of its optical axis, and a position detection circuit 17 for adding the amount of revolution of focus motor 16 during normal rotation and subtracting the amount during reverse rotation, thereby detecting the position of focus lens 1. Herein, advancing/retracting of focus lens 1 may be performed using a piezoelectric element instead of focus motor 16, or alternatively the image sensor itself may be advanced/retracted instead of focus lens 1. Hill-climbing control circuit 10 drives focus motor 16 so that its focus evaluating value is maximized in response to a focus evaluating value supplied from focus evaluating value generation circuit 3, and focus motor 16 thus advances/retracts focus lens 1 in the direction of its optical axis. Now, operation of hill-climbing control circuit 10 will be briefly described in conjunction with Fig. 4. First, motor control circuit 15 moves focus lens 1 in one direction by rotating focus motor 16 so that a focus evaluating value supplied from digital integrator 6 increases. When focus lens 1 is thus moved, the maximum focus evaluating value until then is stored in maximum value memory 11 as a maximum evaluating value. Comparison circuit 13 also compares the maximum evaluating value and the most recent focus evaluating value, and supplies a control signal S1 to maximum value memory 11 and focus lens position memory 12 if the most recent focus evaluating value is larger than the maximum evaluating value. Maximum value memory 11 updates the maximum evaluating value until then to the most recent focus evaluating value in response to control signal S1. Focus lens position memory 12 also responds to control signal S1 and stores lens position information from position detection circuit 17. Thus, the lens position information when the maximum evaluating value is obtained is always stored in focus lens position memory 12. Comparison circuit 13 also detects a drop of the most recent focus evaluating value from the maximum evaluating value by a threshold value M when the most recent focus evaluating value starts decreasing below peak (in-focus point) P, and supplies a control signal S2 to motor control circuit 15 at the time of detection. Motor control circuit 15 reversely rotates focus motor 16 in response to control signal S2, and monitors a comparison result from comparison circuit 14. Comparison circuit 14 compares the present lens position information from position detection circuit 17 and lens position information stored in focus lens position memory 12, and supplies a control signal S3 to motor control circuit 15 as a comparison result, when focus lens 1 returns to the position stored in focus lens position memory 12. Motor control circuit 15 stops focus motor 16 in response to control signal S3. Thus, focus lens 1 is ultimately stopped at the position of peak P at which the focus evaluating value is maximized, and the position becomes the in-focus point. Now, the structure and operation of the above-described digital HPF 5 and the timer circuit 9 will be described in detail. Referring to Fig. 1, digital HPF 5 includes three delay registers 51A, 51B and 51C according to Z-conversion, two amplifiers 52A and 52B, two adders 53A and 53B, and two subtractors 54A and 54B. Digital HPF 5 further includes two AND gates 55A and 55B, and an inverter 56. Delay register 51 A delays a digital luminance signal supplied from A/D converter 4 by one clock pulse, and applies the delayed signal to subtractor 54A. Subtractor 54A subtracts the digital luminance signal to be supplied to delay register 51A from the output signal from delay register 51A. Delay register 51A and subtractor 54A constitutes a finite impulse response (FIR) filter 57. Adder 53A adds the output signal from subtractor 54A and the output signal from adder 53B. Delay register 51 essentially receives the output signal from adder 53A through AND gate 55A, and delays the output signal by one clock pulse. Delay register 51C essentially receives the output signal from delay register 51B through AND gate 55B and delays the output signal by one clock pulse. Amplifier 52A amplifies the output signal from delay register 51B with a gain al. Amplifier 52B amplifies the output signal from delay register 51C with a gain a2. Adder 53B adds the output signal from amplifier 52A and the output signal from amplifier 52B. These two delay registers 51B and 51C, two amplifiers 52A and 52B, and two adders 53A and 53B constitute an infinite impulse response (IIR) filter 58. Subtractor 54B subtracts from the output of delay register 51C the output signal of delay register 51B to be supplied to delay register 51C through AND gate 55B. Delay register 51C and subtractor 54B constitute an FIR filter. The transfer function H(Z) of such digital HPF 5 is given as follows: H ( Z ) = 1-2 Z -1 + Z -2 1+ a 1 Z -1 + a 2 Z -2 Meanwhile, timer circuit 9 produces a reset signal RS after passage of a prescribed time period T2 after the end of a horizontal blanking period, in response to horizontal synchronizing signal HS supplied from synchronizing separation circuit 7. Timer circuit 9 is formed of, for example, a counter circuit. When an input signal of a constant level continues to be supplied to an FIR filter, the output signal therefrom generally converges to zero. Accordingly, if a digital luminance signal of a constant level continues to be supplied to FIR filter 57, its output signal converges to zero. At the time, values held in delay registers 51B and 51C in IIR filter 58 also converge to zero. Accordingly, digital HPF 5 can be reset by setting delay registers 51B and 51C to zero. Fig. 5 is a timing chart for use in illustration of essential operation of the automatic focusing apparatus according to the first embodiment. According to the first embodiment, a video signal supplied from image sensing circuit 2 is separated into a vertical synchronizing signal VS and a horizontal synchronizing signal HS by synchronizing separation circuit 7. Horizontal synchronizing signal HS is applied to timer circuit 9, and timer circuit 9 produces reset signal RS in response to horizontal synchronizing signal HS. Reset signal RS is produced after passage of prescribed time period T2 after a falling of horizontal synchronizing signal HS. More specifically, reset signal RS is produced during the period from the end of a horizontal blanking period to initiation of an integration period. Reset signal RS is applied to AND gates 55A and 55B through inverter 56 in digital HPF 5. When reset signal RS of an H level is applied to AND gates 55A and 55B, AND gate 55A attains a non-conduction state, and prevents an output signal of adder 53A from being applied to delay register 51B. AND gate 55B also attains a non-conduction state, and prevents an output signal of delay register 51B from being applied to delay register 51C. Therefore, if reset signal RS at H level is applied to AND gates 55A and 55B, zero is set in these delay registers 51B and 51C. Thus, the level of the output signal from HPF 5 is forced to zero, and thus ringing disappears. Accordingly, part of the ringing will not be integrated by digital integrator 6 as a pseudo signal, and accurate automatic focusing operation can be performed. Although in the first embodiment zero is set both in delay registers 51B and 51C, only delay register 51B may be set to zero. In this case, setting delay register 51B to zero necessarily sets delay register 51C to zero, and therefore digital HPF is also reset. Note that in the first embodiment, hill-climbing control circuit 10, focus motor 16 and position detection circuit 17 constitute control means for controlling the position of focus lens 1 relative to image sensing circuit 2 in the direction of optical axis so that the focus evaluating value is maximized. Timer 9, AND gates 55A and 55B, and inverter 56 in digital HPF 5 constitute reset means for resetting digital HPF 5 during the period from the end of a horizontal blanking period to initiation of an integration period. Embodiment 2 Fig. 6 is a block diagram showing the entire structure of an automatic focusing apparatus according to a second embodiment of the invention. The second embodiment shown in Fig. 6 is different from the automatic focusing apparatus according to the first embodiment shown in Fig. 2 in the following points, and description of portions in common is omitted. Referring to Fig. 6, a focus evaluating value generation circuit 3A in the automatic focusing apparatus includes a stop signal generation circuit 18, an inverter 19, an AND gate 20, and a reset signal generation circuit 21. Stop signal generation circuit 18 generates a stop signal ST at an H level during a prescribed stopping period including a horizontal blanking period, in response to rising and falling of a horizontal synchronizing signal HS supplied from a synchronizing separation circuit 7. Reset signal generation circuit 21 generates a reset signal RS at an H level in response to a falling of stop signal ST supplied from stop signal generation circuit 18. Fig. 7 is a timing chart for use in illustration of essential operation of the automatic focusing apparatus according to the second embodiment. According to the second embodiment, stop signal ST is generated by stop signal generation circuit 18 in response to a falling and a rising in a video signal due to a horizontal blanking period. Stop signal ST attains an H level during a prescribed stopping period including a horizontal blanking period. More specifically, stop signal ST rises slightly before initiation of a horizontal blanking period and falls slightly after the end of the horizontal blanking period. Stop signal ST is applied to AND gate 20 through inverter 19. Thus, AND gate 20 attains a non-conduction state, and prevents supply of a clock signal CL to digital HPF 5. Digital HPF 5 is stopped operating during a prescribed stopping period. Meanwhile, stop signal ST is also applied to reset signal generation circuit 21, and reset signal generation circuit 21 produces a reset signal RS at an H level simultaneously with a falling of stop signal ST. Reset signal RS is produced during the period from the end of the horizontal blanking period to initiation of the integration period, more specifically during the period from the end of the stopping period to initiation of an integration period. Reset signal RS is as similarly to the first embodiment applied to AND gates 55A and 55B through inverter 56 in digital HPF 5, which resets digital HPF 5. Therefore, the ringing created at initiation of operation of digital HPF 5 disappears. Accordingly, part of such ringing will not be integrated by digital integrator 9 as a pseudo signal, and therefore accurate automatic focusing operation can be performed. Furthermore, as illustrated in Fig. 7, if a video signal sharply rises from a black level to a white level based on the pattern of the object during the integration period, a high frequency component due to the rising is extracted by HPF 5 and output. Then, the level of the high frequency component is integrated by digital integrator 9 and sequentially supplied to hill-climbing control circuit 10 as a focus evaluating value for every field. According to the second embodiment, the operation of digital HPF 5 is stopped during the period other than the integration period, and therefore power consumption thereof can be reduced. Particularly, since no ringing is created at end of the stopping period, the stopping period can be prolonged. Note that in the second embodiment, stop signal generation circuit 18, inverter 19, and AND gate 20 constitute stopping means for stopping the operation of digital HPF 5 during a prescribed stopping period including a horizontal blanking period. Reset signal generation circuit 21, inverter 56 and AND gates 55A and 55B in digital HPF 5 constitute reset means for resetting digital HPF 5 during the period from the end of a stopping period to initiation of an integration period. Embodiment 3 Fig. 8 is a block diagram showing the entire structure of a digital HPF in an automatic focusing apparatus according to a third embodiment of the invention. Referring to Fig. 8, digital HPF 5B similar to the above-described digital HPF 5 includes two delay registers 51B and 51C, two amplifiers 52A and 52B, and two adders 53A and 53B. Digital HPF 5B further includes two setting registers 24A and 24B, and two selectors 25A and 25B in place of AND gates 55A and 55B in digital HPF 5 described above. Delay registers 51B and 51C, amplifiers 52A and 52B, adders 53A and 53B, setting registers 24A and 24B, and selectors 25A and 25B constitute an IIR filter 26. Setting registers 24A and 24B hold specified values R1 and R2 which will be described later. Selector 25A selects an output signal from adder 53A or the specified value R1 of delay register 24A in response to reset signal RS applied through inverter 56. Selector 25B selects an output signal from delay register 51B or the specified value R2 of delay register 24B in response to reset signal RS applied through inverter 56. Digital HPF 5B further includes an amplifier 52C and two adders 53C and 53D. Amplifier 52C amplifies an output signal from delay register 51B with a gain a3. Adder 53C adds an output signal from delay register 51C and an output signal from amplifier 52C. Adder 53D adds an output signal from adder 53C and an output signal from adder 53A to be applied to delay register 51B through selector 25A. Delay register 51C and adder 53C constitute an FIR filter. Delay register 51B and adder 53D constitute an FIR filter. Digital HPF 5B, however, unlike digital HPF 5 described above, does not include an FIR filter in a preceding stage to IIR filter 26. Therefore, if a constant level digital luminance signal is applied to digital HPF 5B, the values of delay registers 51B and 51C in IIR filter 26 will not converge to zero. Note that since delay register 51C and adder 53C, and delay register 51B and adder 53D constitute two FIR filters, when a constant level digital luminance signal is supplied to digital HPF 5B, its output signal YH should converge to zero. Now, specified values to which the values of delay registers 51B and 51C should converge when a constant level digital luminance signal is applied to digital HPF 5B will be described by way of examples. Assume that the input signal of adder 53A, in other words a digital luminance signal supplied from A/D converter 4 is X(i), and its output signal Z(i). Assume that the output signal of adder 53D, in other words a high frequency luminance signal YH output from digital HPF 5B is Y(i). Then, the output signal of delay register 51B is expressed as Z(i-1), and the output signal of delay register 51C is expressed as Z(i-2). This establishes the following expressions. Z(i) = X(i) + a 1 Z(i-1) + a 2 Z(i-2) Y(i) = Z(i) + a 3 Z(i-1) + Z(i-2) If, as illustrated in Fig. 7, the starting point of an integration period occurs before the starting point of the valid period of a video signal, in other words if integration is initiated before a valid video signal is supplied, signal X(i) input to digital HPF 5B is at a predetermined set up value during the period in which a clock signal is stopped. If, for example, the gains a 1 , a 2 , and a 3 of amplifiers 52a, 52b, and 52c are 1.5, -0.625, and -2.0, respectively, and the input signal X(i) of adder 53A at set up value C (i=0-∞), the following expression is given from the above expressions. Z(i-1) = Z(i-2) = 8C As can be seen from the expression, when set up value C of constant level is supplied the values of delay registers 51B and 51C converge to the value eight times as large as set up value C. Accordingly, the above-described value 8C is previously set as a specified value in registers 24A and 24B, and when setting registers 24A and 24B are selected by selectors 25A and 25B, in response to reset signal RS from reset signal generation circuit 21, specified value 8C is set in delay registers 51B and 51C. Thus, the state of IIR filter 26 equals the state when constant level input signal X(i) is applied and its output signal Z(i-2) converges. Stated differently, setting as specified value 8C in delay registers 51B and 51C, Z(i-2) to be produced when IIR filter 26 is supplied with constant level input signal X(i) and converges during the period from the end of a horizontal blanking period to the starting point of an integration period results in resetting of digital HPF 5B. Therefore, no ringing occurs at the end of a stopping period as is the case with the second embodiment. Accordingly, part of ringing will not be integrated by digital integrator 9 as a pseudo signal, and accurate automatic focusing operation can be performed. Unlike the third embodiment, if an FIR filter is not provided in a preceding stage to IIR filter 26, an output signal to be produced when IIR filter 26 is supplied with a constant level input signal and converges may be set as a specified value in delay registers 51B and 51C during the period from the end of a horizontal blanking period to the starting point of an integration period. Embodiment 4 Fig. 9 is a block diagram showing the entire structure of a digital HPF in an automatic focusing apparatus according to a fourth embodiment of the invention. Referring to Fig. 9, digital HPF 5C includes a latch circuit 28 and an amplifier 29 in place of setting registers 24A and 24B in the above-described digital HPF 5B. Latch circuit 28 latches a digital luminance signal in response to a rising of reset signal RS, and applies the luminance signal to amplifier 29. Amplifier 29 amplifies the applied luminance signal with a gain a 4 (herein, gain a 4 is 8), and applies the amplified signal to delay registers 51B and 51C through selectors 25A and 25B. In the third embodiment, since a video signal is set to a predetermined set up value C during the period in which a clock signal is stopped, only one kind of specified value can be set in delay registers 51B and 51C. If, however, the video signal is not set to such a set up value, a plurality of kinds of specified values could be set in delay registers 51B and 51C. In the fourth embodiment, a value eight times as large as the level of a digital luminance signal level is always set in delay registers 51B and 51C in response to reset signal RS, and therefore even if an input signal to digital HPF 5C is not the predetermined set up value, there will be no ringing at the end of the clock signal stopped period. Accordingly, part of the ringing will not be integrated as a pseudo signal, and therefore accurate automatic focusing operation can be performed.

Claims: An automatic focusing apparatus for automatically matching the focus to an object, comprising: a focus lens (1); image sensing means (2) responsive to incident light reflected from said object and passed through said focus lens (1) for producing a video signal; digital high-pass filter means (5; 5B; 5C) for extracting a high frequency component (YH) in said video signal produced by said image sensing means (2); integrating means (6) for integrating the level of said high frequency component (YH) extracted by said digital high-pass filter means (5; 5B; 5C) during a prescribed integration period exclusive of a horizontal blanking period and sequentially supplying the resultant value for every field as a focus evaluating value (FEV) which takes a maximum value at an in-focus position (P), control means (10, 16, 17) responsive to said focus evaluating value (FEV) supplied from said integrating means (6) for controlling the position of said focus lens (1) relative to said image sensing means (2) in the direction of optical axis so that said focus evaluating value (FEV) is maximized; and resetting means (9, 55A, 55B, 56; 24A, 24B, 25A, 25B; 28, 29) for resetting said digital high-pass filter means (5; 5B; 5C) during the period from the end of said horizontal blanking period to the starting point of said integration period. An automatic focusing apparatus as recited in claim 1, wherein said digital high-pass filter means (5; 5B; 5C) includes an infinite impulse response filter (58, 26) including at least one delay register (51B, 51C) and responsive to an input signal for producing an output signal, and said resetting means (9, 55A, 55B, 56, 24A, 24B, 25A, 25B; 28, 29) sets as a specified value (R1, R2) in said delay register (51B, 51C) said output signal to be produced when said infinite impulse response filter (58, 26) is supplied with said input signal of constant level and converges during the period from the end of said horizontal blanking period to the starting point of said integration period, thereby resetting said digital high-pass filter means (5; 5B; 5C). An automatic focusing apparatus as recited in claim 2, wherein said digital high-pass filter means (5; 5B; 5C) further includes a finite impulse response filter (57) for supplying said input signal to said infinite impulse response filter (58, 26), and said resetting means (9, 55A, 55B, 56; 24A, 24B, 25A, 25B; 28, 29) sets zero as said specified value in said delay register (51B, 51C). An automatic focusing apparatus for automatically matching the focus to an object, comprising: a focus lens (1); image sensing means (2) responsive to incident light reflected from said object and passed through said focus lens (1) for producing a video signal; digital high-pass filter means (5; 5B; 5C) for extracting a high frequency component (YH) in said video signal produced by said image sensing means (2); stopping means (18, 19, 20) for stopping the operation of said digital high-pass filter means (5; 5B; 5C) during a prescribed stopping period including a horizontal blanking period; integrating means (6) for integrating the level of said high frequency component (YH) extracted by said digital high-pass filter means (5; 5B; 5C) during a prescribed integration period exclusive of said stopping period and sequentially supplying the resultant value for every field as a focus evaluating value (FEV) which takes a maximum value at an in-focus position (P); control means (10, 16, 17) responsive to said focus evaluating value (FEV) supplied from said integrating means (6) for controlling the position of said focus lens (1) relative to said image sensing means (2) in the direction of optical axis so that said focus evaluating value (FEV) is maximized; and resetting means (21, 56, 55A, 55B; 24A, 24B, 25A, 25B; 28, 29) for resetting said digital high-pass filter means (5; 5B; 5C) during the period from the end of said stopping period to the starting point of said integration period. An automatic focusing apparatus as recited in claim 4, wherein said digital high-pass filter means (5; 5B; 5C) includes an infinite impulse response filter (58, 26) including at least one delay register (51B, 51C) and responsive to an input signal for producing an output signal, and said resetting means (21, 56, 55A, 55B; 24A, 24B, 25A, 25B; 28, 29) sets as a specified value (R 1 , R 2 ) in said delay register (51B, 51C) said output signal to be produced when said infinite impulse response filter (58, 26) is supplied with said input signal of constant level and converges during the period from the end of said stopping period to the starting point of said integration period, thereby resetting said digital high-pass filter means (5; 5B; 5C). An automatic focusing apparatus as recited in claim 5, wherein said digital high-pass filter means (5; 5B; 5C) further includes a finite impulse response filter (57) for supplying said input signal to said infinite impulse response filter (58, 26), and said resetting means (21, 56, 55A, 55B; 24A, 24B, 25A, 25B; 28, 29) sets zero as said specified value in said delay register (51B, 51C).

Inventors: KAWAKAMI KIYOTADA, TAKUMA MASAO, KAWAKAMI, KIYOTADA, TAKUMA, MASAO
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO., LTD.
Application year: 1993
Main classification: H04N5
IPC codes: H04N5