DEVICE FOR SENSING IN-FOCUS POSITION

Abstract: A device for sensing a position being in focus comprises a CCD image sensor having a light reception part on a plurality of pixels of which a subject image formed by an optical system for image formation, that is an object an in-focus position of which is to be sensed, is projected, a shift register which transfers the charge read out from each pixel in synchronism with a charge transferring clock, and an output part in which the charges transferred by the shift register are accumulated one after another; a pixel reading out circuit for reading out each charge stored in each pixel to the shift register by applying a pixel reading out signal to the CCD image sensor, a sampling circuit for sampling the charge stored in the output part to obtain the luminance signal corresponding to each pixel, a focus computing part for computing an in-focus position of the optical system for image formation according to the luminance signal sampled by the sampling circuit, a reset circuit for resetting the charge in the output part every period, which is obtained through multiplying the half period of the charge transferring clock by an integer according to the charge storing state of the pixel.

Description: This invention relates to a focusing position detecting device according to the preamble of claim 1. A so-called passive type automatic focusing system of the generic type creates an image of a subject on a CCD image sensor, determines the degree of blur of the image of the subject based on a luminance signal output from the CCD sensor and indicating the luminance of the image of the subject and derives the defocused amount thereof. Then, it effects the focusing in order to eliminate the defocusing amount. As a CCD image sensor used in the above system, a sensor including a shift register disposed on one side of a large number of photoelectric elements (which are hereinafter referred to as "picture elements") arranged in a preset direction and connected to odd-numbered picture elements and a shift register disposed on the other side of the picture elements and connected to the even-numbered picture elements is known. For example, a CCD line image sensor constructed as shown in Fig. 5 is used in the above mentioned system. In the image sensor 1, a light receiving section 2 constructed by a plurality of picture elements is formed in a line form and two analog shift registers 3 and 4 are arranged along the light receiving section 2. In the CCD image sensor 1, odd-numbered picture elements are connected to the shift register 3 and even-numbered picture elements are connected to the shift register 4. Charges read out from the picture elements of the light receiving section 2 are temporarily stored in corresponding memories of the shift registers 3 and 4 and then in response to charge transfer clocks CK1 and CK2 shown in Fig. 6, are sequentially transferred to a charge storage section 5 (since charges stored in the charge storage section are dealt as an output of the CCD image sensor, the charge storage section is hereinafter referred to as an output section) which is formed of a capacitor. For example, charges stored in a picture element 2n are read out into the shift register 4 and transferred from the shift register 4 to the output section 5 in response to the charge transfer clocks CK1 and CK2. A potential corresponding to the amount of charges stored in the output section 5 appears on the output side of the output section 5. In EP-A-366 413, there is disclosed a detection device of a similar type which, however, does not comprise such a charge storage section. The output side of the output section 5 is connected to a sampling circuit (not shown). The sampling circuit samples the output side potential of the output section to receive the potential as a luminance signal before a reset pulse is applied to the output section 5. In the timing chart shown in Fig. 6, a reset pulse is applied to the output section 5 so as to permit the charges of the picture element 2n to be discharged from the output section 5 before the charge transfer clocks CK1 and CK2 are changed. Then, charges of a picture element (2n-1) which are transferred by the charge transfer clocks CK1 and CK2 are stored in the thus reset output section 5. Next, in the same manner as in the case of the picture element 2n, charges of the picture element (2n-1) stored in the output section 5 are sampled by the sampling circuit. After this, the output section 5 is reset by the reset pulse. Thus, each time charges of one picture element are stored in the output section 5, the output section is reset and the charges read out from the picture element are sampled for each picture element. Since a luminance signal derived from the sampling circuit contains defocusing information, the focusing position can be derived based on the luminance signal. Various methods are known as a method of deriving the focusing position by use of the luminance signal. In a case where the amount of light of an image of a subject formed on the CCD image sensor is small, it is necessary to set the charge storage time of the light receiving section 2 longer in order to prevent degradation of the sensitivity and SN ratio. If the charge storage time- of the light receiving section 2 is set longer, the amount of charges stored in each picture element increases to improve the sensitivity and SN ratio, thereby making it possible to attain high focusing position detecting precision. However, with the above method, since the charge storage time of the light receiving section 2 is set longer, a problem that the focusing position detecting time will become longer occurs. It is the object of this invention to provide a focusing position detecting device capable of improving the SN ratio and sensitivity with respect to an image of a subject of low luminance and effecting a high-speed and precise focusing position detection. This object is solved by the characterizing features of claim 1. Advantageous developments of the invention are the subject-matter of the subclaims. Brief Description of Drawings: Fig. 1 is a functional block diagram of a focusing position detecting device according to one embodiment of this invention; Fig. 2 is a timing chart for illustrating the operation of the focusing position detecting device of the above embodiment; Fig. 3 is a diagram showing a luminance signal output from a CCD image sensor; Fig. 4 is a diagram showing a pattern of a picture element resetting period; Fig. 5 is a construction diagram of a CCD line image sensor; and Fig. 6 is a diagram for illustrating the operation of the CCD line image sensor shown in Fig. 5. There will now be described an embodiment of this invention. In Fig. 1, the whole construction of a focusing position detecting device according to one embodiment of this invention is shown. In this embodiment, an image of a subject is formed on a light receiving section of a CCD image sensor 11 by means of an image forming optical system 10. Assume that the CCD image sensor 11 has the same construction as that of the image sensor shown in Fig. 5. Therefore, constituents of the image sensor 11 are explained by using the same reference numerals as those shown in Fig. 5. Each of the CCD image sensor 11 is supplied with a picture element readout signal Vr from a driver circuit 12. Charges read out from the picture elements are input to shift registers 3 and 4 connected thereto. The shift registers 3 and 4 are respectively supplied with charge transfer clocks CK1 and CK2 shown in Fig. 2 from the driver circuit 12. An output section 5 of the CCD image sensor 11 is connected to a preamplifier 13. An output side of the preamplifier 13 is connected to an A/D converter 14. The A/D converter 14 samples an output signal (luminance signal) of the CCD image sensor 11 supplied via the preamplifier 13 in a preset period. Luminance data sampled by the A/D converter 14 is stored into an image memory 15. Luminance data stored in the image memory 15 contains information (the degree of blur) relating to the focusing state of the image of the subject and is read out by a CPU 16. Information relating to the image forming optical system for projecting the image of the subject on the CCD image sensor 11 is input from an optical system controlling section 17 to the CPU 16. Further, the output section 5 of the CCD image sensor 11 is reset by a reset pulse output from a timing circuit 18. The CPU 16 has the focusing position detecting function, sampling picture element pitch setting function and storage time controlling function. The focusing position detecting function is a function for deriving the focusing position according to position information, projection magnification information, numerical aperture and other information of the image forming optical system 10 for projecting the image of the subject on the CCD image sensor 11 and sampled luminance data indicating the focusing state of the image of the subject. The sampling picture element pitch setting function is a function for sampling the stored charge amount of the output section 5 as a composite luminance signal of a plurality of picture elements after combining charges of a plurality of successive picture elements in the output section 5. In order to realize the above function, the CPU 16 controls the driver circuit 12 and timing circuit 18 at timings shown in Fig. 2. That is, the period of the reset pulse output from the timing circuit 18 is set to an integer multiple (in Fig. 2, a case where the period is doubled is shown) of a half cycle of the charge transfer clock CK according to information relating to the image forming optical system 10. Further, the sampling period of the A/D converter 14 is determined according to the reset period so as to effect the sampling operation immediately before the output section 5 is reset. The storage time controlling function is to determine the luminance value of the image of the subject on the picture elements of the CCD image sensor 11 according to luminance data received from the image memory 15. Then, the storing time optimum for the entire portion of the subject is determined according to the thus derived luminance values of the respective picture elements. Setting of the charge storing time is effected by controlling the output timing of the picture element readout signal Vr output from the driver circuit 12. The CPU 16 uses the storing time control signal to effect the reset period changing function with respect to a desired group of picture elements shown in Fig. 4. That is, with the thus determined optimum storing time, the driver circuit 12 is controlled to extend the reset pulse period with respect to a picture element group in which picture element collapse may occur and shorten the reset pulse period with respect to a picture element group in which saturation will occur. Next, the operation of the embodiment with the above construction is explained. First, the operation of charge readout from the picture elements based on the storing time controlling function is explained. In a case where the luminance range of the subject is wide, picture elements n1 to n2 in which saturation occurs may be contained in the image sensor output as shown in Fig. 3A. With the prior art method, in the above-described case, the charge storing time for all of the picture elements is uniformly shortened. However, if such a storing time controlling operation is effected, picture element collapse will occur in picture elements 1 to n1 and n2 to n3 whose charge storing amount is small as shown in Fig. 3B. Therefore, in this embodiment, the reset period in one scanning operation is made variable and the reset period only for the picture elements n1 to n2 in which saturation occurs is shortened. That is, the reset pulse is variably set for each picture element group so as to derive optimum output levels for all of the respective picture elements in one scanning operation. As a result, a luminance signal output as shown in Fig. 3C can be obtained. The picture elements of the CCD image sensor 11 are supplied with the picture element readout signal Vr at timings set in the above-described manner. Charges of the respective picture elements read out at the above-described timings are received by the shift registers 3 and 4 connected thereto. The picture element charges received by the shift registers 3 and 4 are alternately transferred to the output section 5 for each picture element in response to the charge transfer clocks CK1 and CK2 shown in Fig. 2, for example. The output section 5 is reset in a reset period which is equal to twice the half cycle of the charge transfer clock CK. That is, after charges of one picture element are transferred from each of the right and left shift registers 3 and 4 and then the reset operation is effected. As a result, charges of two adjacent odd-numbered and even-numbered picture elements are stored into the output section 5. A potential corresponding to the charges of two adjacent odd-numbered and even-numbered picture elements is sampled by the A/D converter 14. Since the A/D converter 14 samples the potential set immediately before the reset operation is effected, a luminance signal corresponding to combined charges of the two picture elements is sampled. The same operation is repeatedly effected for all of the picture elements of the CCD image sensor 11 to sample luminance signals. The CPU 16 determines the degree of blur based on luminance data received in the above-described manner and derives the focusing position based on the result of determination and information input from the optical system control section 17. Thus, according to this embodiment, since the reset period is shortened for the picture element group in which saturation occurs and the reset period is extended for the picture element group in which insufficient storage causing picture element collapse occurs according to the charge storing state for each picture element, the charge storing time can be set shorter in comparison with a conventional case wherein the charge storing time is set so as to cause a sufficient amount of charges to be stored for all of the picture elements. Further, since the reset period of the output section 5 is set to an integer multiple of the half cycle of the charge transfer clocks CK1 and CK2, picture elements transferred from the different shift registers 3 and 4 are combined in the output section 5 and the combined charges are sampled as a luminance signal. Thus, an output difference between the odd-numbered and even-numbered picture elements can be reduced. Further, since a plurality of picture elements are combined, the dynamic range can be increased, thereby making it possible to improve the sensitivity and SN ratio and enhance the focusing position detecting precision. Further, since the number of picture elements combined in the output section 5 can be freely set according to an instruction from the CPU 16, the optimum picture element pitch suitable for the focusing position detecting operation can be set according to the luminance of the image of a subject. For example, when this embodiment is applied to an automatic focusing device of a microscope or when observation for a dark subject or fluorescent observation is effected, rough automatic focusing can be effected while the picture element pitch is set larger and a sufficiently high sensitivity is attained, and then the picture element pitch is set to an optimum pitch and the focusing operation of high precision can be effected. Further, in this embodiment, since the reset period of a corresponding picture element is selectively changed according to the luminance as shown in Fig. 4, an adequate output level can be obtained in the entire period of one scanning operation without causing a problem of picture element collapse or saturation, and a preferable image signal can be obtained so that the focusing position detecting operation of high precision can be effected. Therefore, according to this invention, a focusing position detecting operation of high speed and high precision can be effected for the image of a subject of low luminance without extremely extending the storing time in the CCD output section.

Claims: Focusing position detecting device, comprising: [a] a CCD image sensor (1; 11) including [a1] photoelectric means having a plurality of picture elements (2) for generating charges corresponding to the amount of light, [a2] an image forming optical system (10) which projects an image of a subject on said picture elements (2), said subject being an object of focusing position detection, [a3] charge transfer means (3,4) for transferring charges read out from said picture elements (2) in a preset direction in synchronism with a charge transfer clock (CK; CK1, CK2), [a4] charge storing means (5) for sequentially storing charges transferred by said charge transfer means; [b] picture element readout means (12) for reading out the charges from said picture elements (2) and for supplying them to said charge transfer means (3, 4) for each picture element (2), in response to a picture element read out signal (Vr) supplied to said CCD image sensor (1; 11) when a charge generating period of time during which the charges are generated is passed; [c] reset means (18) for resetting the charges of said charge storing means (5), said reset means (18) being connected to reset period determining means (16) for controlling the reset period; [d] sampling means (13, 14) for sampling the charges stored in said charge storing means (5) for each of said picture elements (2) to derive a luminance signal just before the charges of said charge storing means (5) are reset by said reset means (18); and [e] focusing position deriving means (15,16) for deriving the focusing position of said image forming optical system (10) from the luminance signal sampled by said sampling means (13,14); characterized in that said reset period determining means (16) are adapted to change said reset period to be a picture element charge storing state dependent integral multiple of a half cycle of said charge transfer clock (CK;CK1,CK2), whereby said reset period for a picture element (2) is shortened for high charges and is extended for low charges of said picture elements (2). Focusing position detecting device according to claim 1, characterized in that said reset period determining means (16) shortens said reset period for a group of picture elements (nl-n2) in which the stored charges are saturated, and extends said reset period for a group of picture elements (n2-n3) in which the stored charges are insufficient. Focusing position detecting device according to claim 1 or 2, characterized in that said reset period determining means (16) further determines said reset period at least on the basis of information concerning the relative distance between said image forming optical system (10) and said subject. Focusing position detecting device according to one of claims 1 to 3, characterized in that said reset period determining means (16) further determines said reset period at least on the basis of a projection magnification information of said image forming optical system (10). Focusing position detecting device according to one of claims 1 to 4, characterized by image memory means (15) for storing the luminance signal output from said sampling means (13, 14), wherein said reset period determining means (16) determines said reset period on the basis of the luminance data indicated by the luminance signal stored in said image memory means (15). Focusing position detecting device according to one of claims 1 to 5, characterized by: image memory means (15) for storing the luminance signal output from said sampling means (13, 14); optimum storing time detecting means (16) for determining that charge storing time which causes the stored charges of each picture element (2) to be prevented from being saturated or being insufficient according to the luminance data indicated by the luminance signal stored in said image memory means (15); and storage time specifying means (16) for controlling said picture element readout means (12) to output the picture element readout signal to said CCD image sensor (1; 11) for the optimum storage time determined by said optimum storage time detecting means (16). Focusing position detecting device according to one of claims 1 through 6, characterized in that said charge transfer means is formed by a shift register (3,4) to which said picture elements (2) are connected. Focusing position detecting device according to one of claims 1 through 7, characterized in that said charge storing means is formed by a capacitor (5).

Inventors: YAMANA MOTOKAZU, YAMANA, MOTOKAZU, YAMANA, MOTOKAZU, 1-819 22, KASHIMA
Applicants: OLYMPUS OPTICAL CO, OLYMPUS OPTICAL CO., LTD.
Application year: 1991
Main classification: G02B7
IPC codes: G03B13, G02B7, H04N5, G01J1