THREE-DIMENSIONAL DISTANCE-MEASURING DEVICE

Abstract: A distance-measuring device for obtaining three-­ dimensional information on positions in space at points of an object within an external field. In this device, the following method is employed to obtain the positions in space of the points of an object precisely and rapidely, irrespective of the state of the object being imaged, using visual information concerning an image of the object (5) being imaged focused on an image pickup device (3). For ease of description, indi­ vidual image signals (6) output from ultrafine positions form­ ing the image are called 'picture element signals (20)', and the small parts of the object focusing images at the ultrafine positions are called 'object points (21) being imaged'. Initially, the picture element signals output from the positions where the image of the object is focused within a range focused by each of time points are detected while varying a lens (2) forming an optical system, the position of the imaging device (3), or the focal distance of a lens (3). It is then considered whether the image of the same object (21) is focussed at positions outputting the same picture element signals (20) which are different from each of picture element signals (2) output from near or adjacent positions, from among the pic­ ture element signals forming the image focused in image pickup devices of the optical system which has different opti­ cal axes. The positions outputting picture element signals (20) which coincide as described above are detected while varying at least one amongst; the positions in the corresponding image pickup devices (3) outputting the distance to a pre­ scribed point on the optical axis (7) of each optical system, or the angle formed by a prescribed reference line with the opti­ cal axis (7), or the positions outputting picture element signals (20) being compared, thereby obtaining the distance to the object (21) focused with its image at the positions from the three numerical values determined at the corresponding posi­ tions. The position can be obtained from the distance thus obtained, and also the direction to the object (21) indicated by the positions in the image pickup devices (3) outputting each of the picture element signals (20). Therefore, this device is useful as a visual sensor for detecting the distance or position to an object within an external field, and also the lengths, angles, shape, area, volume, etc., of the article can be detected in a contactless way.

Description: TECHNICAL FIELD This invention is concerned with and intended for measuring the positions of points in three-dimensional space. BACKGROUND ART There are various prior techniques to which the invention is directed. A first technique calculates the range from time lag in which light or acoustic wave is projected, reflected and received. Though it is easy to measure the range to one point by using this technique, it is difficult to measure ranges to many points in a short time. A second technique picks up one point having characteristics in one image formed in one camera and another point having same characteristics in another image formed in another camera, and calculates the range from these two points according to triangulation. Because it is difficult to determine the other point having the same characteristics, it is not easy to measure range by using this second technique. A third technique projects a spot or a slit of light from one side, extracts the image of that spot or slit formed in a camera on another side, and calculates the range to the image according to triangulation while the spot or slit is moved. There remain such problems as the existence of points which cannot be reached by the spot or slit, as it is occasionally difficult to extract the image of the spot or slit because of round brightness, and as it is difficult to measure range with high accuracy because the spot or the slit has some area. These three prior techniques are detailed in "Visual Sensor and Environmental Recognition" printed in monthly magazine "Sensor Technology" published in January of 1982 in Japan. The US-A-3 958 117 already discloses another distance determining apparatus using automatic focussing means. A primary lens, which forms a primary image of an object on an image plane, is arranged to be positioned by a lens focusing motor. First and second auxiliary optical elements, which may be lenses or mirrors, produce respective first and second detection images of the object on respective first and second arrays of light sensors. One of these elements is reciprocated in continuously repeated periods or cycles to move its image back and forth continuously on the corresponding array. A signal processing circuit receives the outputs of the light sensors and produces a correlation pulse each time that the cycling element occupies the correlation position at which it brings the light distributions of the images into best correspondence on the respective arrays. The time and element position in each cycle at which this occurs are measures of the object distance. A circuit responds to the correlation pulse and to the relative positions of the cycling element and the primary lens, and controls the motor to make the final position of the primary lens correspond to the correlation position of the cycling element, this final position causing the primary image to be in best focus on the image plane. The relative positions of the cycling element and the primary lens are ascertained by magnetically actuated devices, by a mechanically operated switch, by a light operated switch, or by an arrangement which compares an element position signal to a primary lens position signal. This known apparatus has only the purpose to measure one distance from the lens to one object. The cycle is finished when the object reaches in the depth of focus. DISCLOSURE OF THE INVENTION An object of the invention is to provide a range finder which can measure more than one positions in three-dimensional space of individual minute parts constituting an object. The invention utilizes color information outputted from each pixel of a camera in which the minute parts of the object form its image. If the range to these minute parts can be measured, the positions in three-dimensional space of these minute parts can be calculated because the direction to the minute parts can be determined by the position of the pixels in camera. For convenience in explanation, the minute parts of the object are referred to as object points, and the color information outputted from each pixel is referred to as a pixel datum. In order to measure the range to the object point, the invention utilizes an object point whose color, or pixel datum outputted from the pixel in which said object point forms its image, is different from the color of another object point accessing to the first said object point. The relationship between such a datum outputted or calculated from one pixel as said pixel, said pixel datum, and said object point is referred to as "corresponding to". First, the object point forms its images in two pixels (one located in one camera and the other in the other camera) whose lens axes are not the same, the pixel data corresponding to which represent the same, and each is different from the pixels accessing to said two pixels. Then the range can be calculated from three factors such as the interval between the two lens axes, the angle of the two axes of the lens, and the two positions of said pixels in their respective cameras. The range finder of the invention can measure ranges to various object points by measuring some variable factors of the three while the other factors are fixed. However, it is not efficient on the point of time to compare every two pixel data for every value of the variable factors. If there are some pixels the pixel data corresponding to which represent the same and are both different from other pixel data corresponding to other pixels accessing to said some pixels, it will be impossible to determine one range because a number of ranges are measured. Then, if the range finder has means for extracting only pixel data outputted from pixels in which the object points inside respective depths of focus of the lenses, which are moved, form their images, it will be efficient and will readily determine one range. The invention makes use of a method of extracting pixel data outputted from pixels in which the object points inside respective depths of lens focus form their images may be considered. According to this method pixel data are extracted whose contrast, or difference, between said pixel datum and the other pixel datum outputted from the accessing pixel, represents a peak. This method is incorporated in an apparatus according to the invention for measuring the ranges of the points of an object, said apparatus comprising the features (A) to (H) of claim 1. It is already known per se from the US-A-4 078 171 to provide a digital auto focus system which includes first and second detector arrays which receive first and second detection images of an object. The detection images are displaced by a number n of detectors depending upon the distance between the object and the detector arrays. The output signals of the detector arrays are processed to provide a signal indicative of the number n. This signal may be used, for example, to control the position of a lens in a photographic system. The apparatus according to the invention allows measuring distances from a lens to many points which all constitute objects within the view in one cycle. For this purpose a plurality of memories to store digital data and a plurality of memories to store ranges are provided. The cycle can be repeated from the nearest position of the depth of focus to the farthest. The following effects are afforded by the use of the invention. The first effect is the possibility of measuring both one pixel datum constituting one image and the range to the object point which forms its image in the pixel outputting said pixel datum at the same time because the range is measured by the use of only pixel data. The second effect is the possibility of measuring every range at high speed regardless of complication in color information of the image because the object range is measured by every group of object points in each depth of focus of the lens. The third effect is the possibility of measuring every object range regardless of such condition of the object or nature of the object as high reflectivity and such positional relationship of the object as excessive range distance or obliqueness because the range can be measured by the use of only pixel data. The fourth effect is the possibility of measuring such characteristic factors of the object as length, angle, area, cubic volume, and shape by the use of the position in three-dimensional space measured by the invention. A further fifth effect is the provision of materials for determining the nature of an object and identifying each object. BRIEF DESCRIPTION OF THE DRAWINGS In the drawings: FIGURE 1 is a plan view and electric circuit diagram indicating "Best Mode of Carrying Out the Invention"; FIGURE 2 is a plan view and electric circuit diagram of the mode of measuring range from variable gap pixels; and FIGURE 3 is a plan view and electric circuit diagram of the mode of measuring range from camera angle. A = camera section, B = B-a = B-b = focus extraction section, C = coincidence section, 1 = main plane, 2 = 2-a = 2-b = lens, 3 = 3-a = 3-b = image pickup element = CCD = MOS image sensor, 4 = 4-a = 4-b = camera, 5 = object, 6 = 6-a = 6-b = 6-1 = 6-2 = 6-3 = 6-4 = 6-5 = image signal (in analog form) = image data (in digital form), 7 = 7-a = 7-b = axis of lens, 8 = interval motor, 9 = 9-a = 9-b = center of lens, 10 = interval distance, 11 = camera motor, 12 = image distance, 13 = central processing unit, 14 = interval datum, 15 = distance datum, 16 = operating amplifier, 17 = peak hold circuit, 18 = A-D convertor, 19 = 19-a = 19-b = 19-c = pixels, 20 = 20-a = 20-b = pixel signals (in analog form) = pixel data (in digital form), 21 = 21-1 = 21-2 = object point, 22 = multiplexer, 23 = 23-1 = 23-2 = 23-3 = 23-4 = 23-5 = image memory, 24 = pixel data register, 25 = subtractor, 26 = converter to absolute value, 27 = 27-1 = 27-2 = 27-3 = 27-4 = 27-5 = contrast data, 28 = 28-1 = 28-2 = 28-3 = 28-4 = 28-5 = comparator, 29 = 29-1 = 29-2 = 29-3 = 29-4 = 29-5 = comparison data, 30 = minimum datum, 31 = AND circuit, 32 = focus datum, 33 = digital shift register, 34 = 34-a = 34-b = focus pixel data, 35 = 35-a = 35-b = focus memory, 36 = 36-a = 36-b = standard image data, 37 = 37-a = 37-b = standard image memory, 38 = 38-a = 38-b = address data, 39 = 39-a = 39-b = standard pixel, 40 = 40-1 = 40-2 = object plane, 41 = gap pixels, 42 = object range, 43 = subtractor, 44 = comparator, 45 = AND circuit, 46 = coincidence datum, 47 = 47-a = 47-b = pixel line, 48 = image distance datum, 49 = range calculator, 50 = object range datum, 51 = range memory, 52 = fixed lens, 53 = lens motor, 54 = movable lens, 55 = lens distance, 56 = lens distance calculator, 57 = object distance, 58 = gap pixels datum, 59 = adder, 60 = rotation motor, 61 = standard line, 62 = camera angle, 63 = camera angle datum, 64 = pixel angle. BEST MODE OF CARRYING OUT THE INVENTION Referring first to the mode illustrated in FIGURE 1, there is shown the structure of a camera section (A) which picks up visual information, i.e., color information of an object as an image. On the main plane 1 of this camera section (A), there are two cameras 4-a, 4-b which have the same characteristics, i.e., lenses of the same focal length and image pickup elements 3-a, 3-b of the same resolution. In this mode, CCD 3 is used as an image pickup element 3. Images of the same object 5 are formed in each camera 4, from which each image signal 6 is outputted. The two lens axes 7-1, 7-2 of the cameras 4-1, 4-2 are parallel. Both the line connecting the two centers of the lenses 2-1, 2-2 (referred to as the standard line) and the line connecting the two centers of the CCDs 3-1, 3-2 are at right angles with the axes of the lenses 7. One camera 4-a is fixed on the main plane 1, the other camera 4-b can be moved by a stepping motor 8 (referred to as the interval motor 8) on the main plate 1 along the standard line, in other words, this interval motor 8 can change the interval distance 10, i.e., the distance between the two centers of lenses 9 by a specific minute distance. However, the two axes of the lens 7 are always parallel. The two CCDs 3 can be moved simultaneously along axis of lens 7 by a stepping motor 11 (referred to as the camera motor 11). In other words, this camera motor 11 can change the image distance 12, i.e., the distance from CCD 3 to lens 2, by a specific minute distance. The interval motor 8 and the camera motor 11 are moved respectively according to interval datum 14 and distance datum 15, which are both outputted from Central Processing Unit 13 (referred to as CPU). Each image signal 6-a, 6-b is amplified through a respective operating amplifier 16, and the peak value of this datum is held in a respective peak hold unit 17. These peak values are fed to focus extraction sections (B-a, B-b) described hereinafter, after being converted into digital form through A-D converters 18 (image signal converted into digital form is newly referred to as image datum 6). Hereinafter each image datum 6 outputted from one pixel 19 constituting CCD 3 is referred to as pixel data 20, and the collection of all pixel data constituting one image datum 6 is newly referred to as image datum 6. The minute parts of the object 5 which form its image in each pixel 19 is referred to as object point 21, and the relationship between such data outputted or calculated from one pixel 19 as the pixel 19, the pixel data 20, the object point 21 and so on is referred to as "corresponding to". Referring to FIGURE 1 again, there is shown a structure of focus extraction sections (B-a, B-b). These sections extract the pixel data 20 outputted from the pixels 19 in which the object points 21 in depth of lens form their images when CCDs 3 are disposed at a standard position (hereinafter defined). The operation in these sections (B) will now be described step by step. After the CCD 3 is moved into a first position by the camera motor 11 according to distance datum 15, a first image datum 6-1 outputted from the CCD 3 is stored in an image memory 23-1 which is selected by a multiplexer 22. The image memory 23 is composed of many memory cells, one of which corresponds to each pixel 19. Other memories hereinafter defined are also each composed of many memory cells. Next, after CCD 3 is moved into a second position, which is separated by a specific minute distance from the first position in a specific direction by the camera motor 11, a second image datum 6-2 is stored in an image memory 23-2. Again after CCD 3 is moved into a third position, which is separated by the same specific minute distance from the second position in the same direction, a third image datum 6-3 is stored in an image memory 23-3. The above-described operation is repeated two more times, and an image datum 6-4 in the fourth position and an image datum 6-5 in the fifth position are stored respectively in an image memory 23-4 and an image memory 23-5. The third position which is central of the five positions is referred to as the standard position. Pixel data 20 constituting one image datum 6 are outputted from the image memories 23 in such an order as from the pixel datum 20 of the pixel 19 at the left end to the pixel datum 20 of the pixel 19 at the right end, and from the top collection of pixels 19 constituting one level line to the bottom collection (referred to as the standard order). Five pixel data 20 from each image memory 23 are outputted simultaneously. Each pixel datum 20 is fed to both of a pixel data register 24 and a subtractor 25. Another pixel datum 20 registered previously in the same pixel data register 24, i.e., outputted from the other pixel 19 just on the left side to the pixel 19 outputting the new pixel datum 20 is simultaneously fed to this subtractor 25, from which is outputted a contrast datum 27 representing the balance of two pixel data 20, after being converted into absolute value through a converter into absolute value 26. The contrast datum 27 calculated from the two pixel data 20 constituting an image datum 6-1 is referred to as contrast datum 27-1. Similarly, the contrast datum 27 calculated from the two pixel data 20 constituting an image datum 6-2, image datum 6-3, image datum 6-4 and image datum 6-5 are respectively referred to as contrast datum 27-2, contrast datum 27-3, contrast datum 27-4 and contrast datum 27-5. Contrast datum 27-1 and contrast datum 27-2 are fed to a comparator 28-1, from which a comparison datum 29-1 is outputted. This comparison datum 29-1, which is digital, represents "1" when the contrast datum 27-2 is greater than the contrast datum 27-1. Similarly, a comparison datum 29-2 outputted from a comparator 28-2 represents "1" when a contrast datum 27-3 is greater than the contrast datum 27-2, and a comparison datum 29-3 outputted from a comparator 28-3 represents "1" when the contrast datum 27-3 is greater than a contrast datum 27-4, and a comparison datum 29-4 outputted from a comparator 28-4 represents "1" when the contrast datum 27-4 is greater than a contrast datum 27-5. The contrast datum 27-1 is also fed together with a minimum datum 30 to a comparator 28-5, from which a comparison datum 29-5 is outputted. This comparison datum 29-5 represents "1" when the contrast datum 27-1 is greater than the minimum datum 30. These five comparison data 29 are fed to an AND circuit 31, from which a focus datum 32 is outputted. This focus datum 32 represents "1" when all of the five comparison data 27 represent "1". This focus datum 32 is fed to a digital shift register 33 having one input and two parallel outputs. These two parallel outputs are fed to an OR circuit, from which a focus pixel datum 34 is outputted. This focus pixel datum 34 represents as "1" the pixel 19 the contrast datum 27 corresponding to which represents a peak, i.e., which are in focus, and the pixel datum 20 corresponding to which is different from the one corresponding to other pixel 19 accessing to the first said pixel 19. The reasons why focus extraction sections (B) perform the above described actions are as follows. The first reason is as follows. The contrast of two pixel data 20 corresponding to each object point 21 accessing each other, which is just in focus, represents a peak. This rule is applied in focus extraction sections (B). Contrast is assumed to represent a peak when contrast datum 27 outputted from the CCD 3 located nearer to the standard position is greater than contrast datum 27 outputted from the CCD 3 located further from the standard position. In other words, the "1" of focus pixel datum 34 means that the contrast of color information of the object point 21 corresponding to said focus pixel datum 34 is not "0" and represents the peak. The reason for using five contrast data 27 in order to extract the contrast datum 27 representing the peak is to prevent the extracting of the contrast datum 27 the object point 21 corresponding to which is not in focus and which has contrast only because of image vignette, though there is really no contrast. The image of the object point 21 has no contrast when it is within the depth of focus of the lens while the contrast becomes great when the object point 21 is farther from the depth of focus of the lens. Therefore, five contrast data 27 are used so that the focus pixel datum 34 will not represent "1" when two of the five represent peaks. Next referring to the coincidence section (C), focus pixel datum 34-a outputted from the focus extraction section (B-a) is stored in the focus memory 35-a, and focus pixel datum 34-b outputted from the focus extraction section (B-b) is stored in the focus memory 35-b. Also image datum 6-3 outputted from the focus extraction section (B-a)(newly referred to as standard image datum 36-a) is stored in the standard image memory 37-a, and image datum 6-3 outputted from the focus extraction section (B-b) (newly referred to as standard image datum 36-b) is stored in the standard image memory 37-b. In each focus extraction section (B-a, B-b), both one pixel datum 20 of standard image datum 36 and focus pixel datum 34 corresponding to this pixel datum 20 can be accessed by the same address datum 38. The pixels in which the axes of the lens 7-a, 7-b cross with each CCD 3-a, 3-b are referred to as standard pixels 39-a, 39-b. The two pixel data 20 from the pixels 19 located in optically the same positions in each CCD 3-a, 3-b are accessed by the same address datum 38. Now coming back to the camera section (A), there is the interval distance 10 between the two cameras 4-a, 4-b. There is a common field between the two fields of view of the cameras 4-a, 4-b. The object in this common field forms its images in the two CCDs 3. For example, one plane parallel to lens 2 (referred to as object plane 40-1) is located in the depth of focus of the lens. One object point 21 in this object plane 40-1 is located in this common field. Two pixels 19-a, 19-b of respective CCD 3-a, 3-b in which this object point 21-1 forms its images are located in optically different positions from respective standard pixels 39-a, 39-b, especially in positions along the standard line. This difference is caused by the interval distance 10 between the two cameras 4-a, 4-b. Furthermore, the same difference is caused between every two pixels 19 the object point 21 corresponding to which is located in the same object plane 40-1. Conversely, if a pixel datum 20-a from the pixel 19-a of the CCD 3-a and a pixel datum 20-b from the pixel 19-b of the CCD 3-b which is apart by this difference from pixel 19-a are outputted simultaneously, every two pixel data 20 from pixels 19 in which the same object point 21 in the object plane 40-1 forms its images are outputted simultaneously. After the interval distance 10 is changed by a fixed minute distance, two pixel data 20 from pixels 19 in which the other object point 21 in the other plane 19-b, which is apart by a fixed minute distance from the previous object plane 19-a, forms its images are outputted simultaneously. By utilizing this rule conversely, it becomes possible to measure the range from the lens 2 to each object point 21 (referred to as object range 42) in the coincidence section (C). First the pixel datum 20-a and the focus pixel datum 34-a corresponding to this pixel datum 20-a, which are stored in respective memory cells accessed by one address datum 38-a, are outputted simultaneously together with pixel datum 20-b and the focus pixel datum 34-b accessed by the other address datum 38-b which is made by adding a number meaning some pixels of said difference to the address datum 38-a, i.e., by the other address datum 38-b accessing the other pixel 19 apart by some pixels from the pixel 19 accessed by address datum 38-a. The two pixel data 20-a, 20-b are fed to a subtractor 43, the output from which is then fed to a comparator 44 together with two comparison data, or "+0" and "-0". The output from this comparator 44 represents "1" only when the output from the subtractor 43 is substantially zero, i.e. when two pixel data 20 coincide within the range of error. The output from this comparator 44 represents "1" only when the output from subtractor 43 is substantially zero, i.e., when two pixel data 20 coincide within the range of error. The output from this comparator 44 is fed together with two focus pixel data 34-a, 34-b to an AND circuit 45, the output from which (referred to as coincidence datum 46) represents "1" only when all these three data represent "1". In other words, this coincidence data 46 represents "1" only when pixel data 20 and focus datum 34 are simultaneously outputted from the two pixels 19 of each CCD 3 in which the same object point 21 having different color information from the other object point 21 accessing to said object point 21 forms its images, i.e., when there is a difference (referred to as gap pixels 41) between two optical positions of said two pixels 19. It is understood that, if the coincidence data 46 represents "1" in the above operation, there is one object point 21 at which one line connecting pixel 19-a and the center of the lens 9-a (referred to as pixel line 47-a) and the other line connecting pixel 19-b and the center of the lens 9-b (referred to as pixel line 47-b) cross. One pixel line 47-b is moved in parallel according to variation of the interval distance 10 by the interval motor 8. When the image distance 42 from the lens 2 to the CCD 3 is referred to as "Q", the distance equal to the gap pixels 41 is referred to as "A", and the interval distance 10 is referred to as "B", the distance "P" from the standard lens 2-a to the crossing point of the two pixel lines 47-a, 47-b is defined by the following equation. P = 1 A ·B·Q (Eq. 1) This equation means that the object range 42 can be calculated from the interval distance 10 and the image distance 12 when the gap pixels 41 are fixed. The interval datum 14 representing the interval distance 10 and image distance datum 48 representing the image distance 12 are fed from the CPU 13 to a range calculator 49, in which the object range 42 is calculated in accordance to formula 1. The object range 42 to each object point 21 which forms its image in the pixel 19-a accessed by the address datum 38-a can be measured by storing the object range 42 in a memory cell of a range memory 51 accessed by the address datum 38-a when the coincidence datum 46 represents "1". After all of the above operations have been performed with regard to all combinations of two pixel data 20 for which all of the above operations can be performed, i.e., which is stored in the memory cell accessable by the address datum 38-a and the address datum 38-b, the two CCDs 3 are moved back to the first position in which the image datum 6-1 is outputted, and the camera 4-b is moved along the standard line to a new position which is spaced apart from the previous position by a fixed minute distance. Five new image data 6 outputted from the CCDs 3 located in the same respective positions as in the previous operation are stored in five memories 23, and the operations of the focus extraction section (B) and the coincidence section (C) are performed. Only when the object point 21, the object range 42 to which is measured by finding two coinciding pixels 19 goes outside the depth of focus of the lens, the five positions of the CCD 3 are moved to five new positions, and five new image data 6 are stored in five image memories 23. Thereafter the same operations of the focus extraction section (B) and the coincidence section (C) are repeated. The significance of and reasons for the above described series of operation will now be considered. One object point 5 forms its image on two CCDs 3. The interval distance 10 must be varied in accordance with the object range 42 to each object point 21 constituting one object 5 in order that every object point 21 forms its image on two pixels 19 of each CCD 3 which are space apart by a fixed minute distance from each other. Conversely, the object range 42 can be calculated from the interval distance 10. However, it is impossible to measure every object range 42 to each object point 21 inside the angle of view at one time, i.e., to investigate at one time if every combination of two pixel data 20 coincide or not, because the scope in which interval distance 10 is varied is too great. Then if every collection of pixel datum 20 outputted from all pixels 19 in which the object point 21 inside each depth of focus of the lens form its image is investigated as to whether each combination of two pixel data 20 coincides or not, it is easier to measure the object range 42, because the scope of the interval distance 10 becomes smaller. The case where some object points 21, which have the same color information, constitute one part of the object 5 will now be considered. When it is investigated as to which pixel datum 20 from CCD's pixels one pixel datum 20 from one of CCD 3-a's pixels corresponding to such object points 21 coincides to coincidence data 46 represents "1" in some cases of some variable interval distances 10, equally it is impossible to determine the object range 42 to the object point 21 corresponding to said one pixel datum 20. The investigating only two pixel data 20 which are different from the pixel datum 20 outputted from accessing pixel 19 provide an easier way to determine one object range 42. Because of these two reasons, it is suitable to combine two focus extraction sections (B) and one coincidence section (C). In this connection, in the focus detection or extraction sections B, contrast data 27, which are differences of two pixel data 20 outputted from the same pixel 19, are being compared. This is a process which is designed to compare the images of the same object point 21 formed at CCDs 3 at different positions and is based on the premise that the images of the same object point 21 are always formed for the same pixel 19. In the coincidence sections C, the process step of storing a certain object range 42 in that memory within the range memory 51 corresponding to a pixel 19 indicated by a coincidence datum 46 that the image of an object point 21 disposed apart by that certain object range 42 is being formed is carried out for various object ranges 42, and the results are being collected and stored in a single range memory 51. The above described operation is also based on the premise that, for all object points 21 within the field of vision, the image of the same object point 21 is always formed by the same pixel 19. However, if only the CCD 3 within a camera 4 is moved, the magnification for forming the image of an object will vary. For this reason, the position in the CCD 3 at which the image of each object point 21 is formed moves by a minute incremental distance with variation of the image distance. Accordingly, in order to realize a premise as stated above, it becomes necessary to establish an organization for maintaining constant magnification by adopting a zoom mechanism for the lens 2, causing the focal distance of the lens 2 to vary in accordance with variation in the distance between the focal point of the lens 2 and the CCD 3, and causing the ratio of these two distances to be the same, as described hereinbelow. The lens 2 comprises a fixed lens 52 fixed to the interior of the camera 4 and a movable lens 54 which can be moved in the direction of its optical axis by the operation of a lens motor 53. The distance datum 15 indicating the target or intended value with respect to the camera motor 11 for moving the CCD 3 is introduced as input into a lens distance calculation circuit 55, where calculation based on the following equation (Eq. 2) is carried out, and a lens distance datum 56 indicating the lens distance S, which is the distance between the fixed lens 52 and the movable lens 54, is outputted where: f₁ is the focal distance of the fixed lens 52; f₂ is the focal distance of the movable lens 54; and M represents the magnification. These values are determined beforehand and stored in the lens distance calculation circuit 55. Q indicates the image distance 12 commanded by the image distance datum 15. This equation signifies that, when the magnification M is constant, the lens distance and the image distance 12 are in a one-to-one correspondence. More particularly, in order to maintain the magnification of the camera 4 at a constant value, it becomes necessary that the lens distance S assume the value calculated from Eq. 3 in accordance with the variation of the image distance 12. Accordingly, the section is so adapted as to cause the movable lens 54 to be driven in movement by the lens motor 53 operating in accordance with variation of the lens distance datum 56, thereby to cause the lens distance S to assume a value corresponding to the image distance 12. Furthermore, there are cases wherein the approximate position of the object 5 the object range of which to the object points constituting the object is known, or wherein the spatial scope the object range of which should be investigated has been determined beforehand. An approximate position or a constant spatial scope can be indicated by the two object planes 40 between which it is interposed. Furthermore, if the distance between the lens plane of the lens 2a, which is the standard or reference plane, and the object plane 40 is taken as the object distance 57, it can be expressed by two object distances 57. In the case where the object distance 57 is known, the object range 42 corresponding thereto, that is, the object range 42 which is the distance between the lens 2 and the CCD 3 when this object distance 57 has a positional relationship such as to include the indicated object plane 40 within the focal range, can be determined. Furthermore, the interval distance 10, designated by B, corresponding to the object distance 56 can be determined from the following Eq. 3 in terms of Q, the object range 42 thus determined, P, the object distance 57 which is the basis thereof, and A, the distance of the constant gap pixel 41. Then, in the case where the scope of investigation of the object range 42 as described above has been determined, the processes in the extraction section B and the coincidence section C are carried out by determining two interval distances 10 corresponding to the object planes 40 defining the limits of this scope by a calculation based on Eq. 3 in the central processing unit 13 and outputting only the interval datum 14 which commands the interval distance 10 included between the two interval distances 10 thus determined. In the above described mode, the combination of two pixels 19 of each CCD 3 which form images of the same object point 21 can be extracted while the interval distance 10 is changed. The same combination can be extracted by two other ways. As illustrated in FIGURE 2 showing one way, the combination of two pixels 19 of each CCD 3 which form its images of the same object point 21 can be extracted while the gap pixel 41 is varied, and while the interval distance 10 is fixed. As illustrated in FIGURE 3 showing the other way, the combination of two pixels 19 of each CCD 3 which form its images of the same object point 21 can be extracted while the angle between the axes of the lens 7 and the standard line are varied, and while the interval distance 10 and the gap pixels 41 are fixed. Referring to FIGURE 2, showing the first way, two cameras 4-a, 4-b of same characteristics are fixed in the horizontal main plane 1 so that the two optical axes of the lens of these cameras are parallel. Then the interval distance 10 between the two centers 9-a, 9-b is always a fixed value. In the two cameras 4, the CCDs 3 can be moved simultaneously along the axes of the lenses by the camera motor 11. In other words, this camera motor 11 can vary the image distance 12 by a fixed distance. The camera motor 11 is operated according to a distance datum 15 which is outputted from the CPU. The same action in the focus extraction section (B) of the mode described in conjunction with FIGURE 1 is performed with regard to image signals 6-a, 6-b, and this section (B) outputs a focus pixel datum 34 representing the pixel 19 in which the object point 21 in the depth of focus of the lens forms its image, the pixel datum 20 corresponding to which being different from the one corresponding to the accessing pixel 19. Two focus pixel data 34-a, 34-b are stored in the coincidence section (C) together with standard image data 36-a, 36-b. Two pixels 19-a, 19-b respectively of CCD 3-a, 3-b in which the same object point 21-1 forms its images are located in optically different positions from the standard pixels 39-a, 39-b, especially in the positions different along the standard line. When this difference or gap pixel 41 is referred to as "A", the fixed interval distance 10 is referred to as "B", and the image distance is referred to as "Q", the object range "P" from the lens 2 to the object point 21 is represented as in the following Eq. 1. P = 1 A ·B·Q (Eq. 1) This Equation 1 means that the object range 42 to each object point 21 is determined by the gap pixel 41 while the interval distance 10 is fixed, and while the image distance is assumed to be fixed. The object range 42 can be measured by calculating from the gap pixel 41 between two pixels 19 in which the same object point 21 forms its images. In the coincidence section (C), focus pixel data 34-a, 34-b outputted from the focus extraction sections (B-a, B-b) are stored in respective focus memories 35-a, 35-b, and standard image data 36-a, 36-b outputted from the focus extraction sections (B-a, B-b) are stored in respective standard image memories 37-a, 37-b. One pixel datum 20-a and one focus pixel datum 34-a corresponding to one pixel 19-a in one CCD 3-a are outputted from a respective memory cell accessed by one address datum 38-a. This address datum 38-a and gap pixels datum 58 representing the number of gap pixels 41 are added in adder 59, from which the other address datum 38-b is outputted. The other pixel datum 20-b and the other focus pixel datum 34-b corresponding to the other pixel 19-b are outputted from each memory cell accessed by said other address datum 38-b. The same action in the coincidence section (C) of the mode described with reference to FIGURE 1 is performed with regard to these four data. Finally, the coincidence datum 46 representing the combination of two pixels is outputted, one located in one CCD 3-a and the other in the other CCD 3-b, in which the same object point 21 forms its images, and the pixel datum 20 corresponding to which is different from the one corresponding to other pixels 19 accessing to said two pixels 19. The interval distance 10, image distance 12 and gap pixels datum 58 are fed to the range calculator 49, in which an object range datum 50 representing the object range 42 is calculated according to Eq. 1. Only when the coincidence datum 46 represents "1", this object range datum 50 is stored in the memory cell of the range memory 51 accessed by address datum 38-a. After the above action has been performed with regard to all combinations of two pixel data 20, "1" meaning one pixel 19 is added to both gap pixels data 50, which represent the number of the gap pixels 41, and the address datum 38-b. In other words, the same pixel 19-a in the previous action is accessed by the address datum 38-a, and at the same time a new pixel 19-c accessing to the pixel 19-b in the previous action is accessed by a new address datum 38-b. The above action is repeated with regard to the combination of a pixel datum 36 and focus pixel datum 34 accessed by the address datum 38-a and pixel datum 36 and focus pixel datum 34 accessed by this new address datum 38-b. Only when the object point 21, the coincidence datum 46 corresponding to which should represent "1", goes outside of the depth of focus of the lens, CCDs 3-a, 3-b are moved to new first position. A new image datum 6-1 in this new first position is stored in the image memory 23-1, and similarly four other new image data 6 in each new position are stored in each image memory 25. Thereafter the same actions in the focus extraction section (B) and the coincidence section (C) are repeated. Referring to the other way of the two ways described above with reference to FIGURE 3, two cameras 4-a, 4-b of the same characteristics are fixed in the main plane 1, the two axes of their lenses 7-a, 7-b being in one plane. Then the interval distance 10 between the two centers 9-a, 9-b is constantly a fixed value. One axis of the lens 7-a of the camera 4-a can be rotated around the center of the lens 9-a by a stepping motor 60 (referred to as rotation motor 60). In other words, this rotation motor 60 can vary the angle between the standard line and the axis of the lens 7-a (referred to as camera angle 62) by a fixed minute angle. The rotation motor 60 rotates the camera 9-a according to a camera angle datum 63, which is outputted from the CPU 13. The axis of the lens 7-b of the other fixed camera 4-b is at right angles with the standard line 61. In the two cameras 4-a, 4-b, the CCDs 3 can be moved simultaneously along the axes of the lenses 7 by camera motors 11. In other words, these camera motors 11 can vary the image distance 12 by a fixed minute distance. The camera motors 11 are moved according to the distance datum 15, which is outputted from the CPU 13. The same action in the focus extraction section (B) of the mode described in conjunction with FIGURE 1 is performed with regard to image signals 6-a, 6-b. This section (B) outputs a focus pixel datum 34 representing the pixel 19 in which the object point 21 in the depth of focus of the lens forms its image, and the pixel datum 20 corresponding thereto is different from the other pixel datum 20 outputted from the other pixel 19 accessing to said pixel 19. Two focus pixel data 34-a, 34-b are stored in the coincidence section (C) together with standard image data 36-a, 36-b. A combination of two pixels 9-a, 9-b, one located in CCD 3-a and the other in CCD 3-b, is in optically the same positions from the standard pixels 39-a, 39-b. A line connecting the pixel 19-a and the center of the lens 9-a (referred to as pixel line 47-a) and a line connecting the pixel 19-a and the center of the lens 9-b (referred to as pixel line 47-b) intersect at one point. When the angle between the pixel line 47-a and the axis of the lens 7-a, equally the angle between the pixel line 47-a and the axis of the lens 7-a (referred to as pixel angle 64), is referred to as "X", the camera angle 62 is referred to as "Y", and the interval distance 10 is referred to as "B", the range "P" from the lens 2 to the intersection point of the two pixel lines 47-a, 47-b is represented by the following Eq. 4: If one object point 21 exists at the intersection of the two pixel lines 47-a, 47-b, the object range 42 to that object point 21 is represented by Eq. 4. In other words, the object range 42 is determined by the camera angle 62 when the pixel angle 64 and the interval distance 10 are fixed. By extracting the combinations of the two pixels in which the same object point forms its images, it is possible to measure the camera angle 62 and, moreover, the object range 42 corresponding to that object point 21. In other words, by extracting the combinations of two pixel data 20 which have the same value, and which are each different from the one corresponding to the other accessing pixel 19, it is possible to measure the object range 42. The foregoing description is that of the operational principle of the coincidence section (C). In this coincidence section (C), focus pixel data 34-a, 34-b outputted from the focus extraction sections (B-a, B-b) are stored in respective focus memories 35-a, 35-b, and standard image data 36-a, 36-b outputted from the focus extraction sections (B-a, B-b) are stored in respective standard image memories 37-a, 37-b. One pixel datum 20-a and one focus pixel datum 34-a corresponding to one pixel 19-a in one CCD 3-a are outputted from each memory cell accessed by one address datum 38. Simultaneously, the other pixel datum 20-b and the other focus pixel datum 34-b corresponding to the other pixel 19-b in the other CCD 3-b are outputted from each memory cell accessed by the same address data 38. The same process in the coincidence section (C) of the mode described in conjunction with FIGURE 1 is carried out with regard to these four data. Finally, the coincident datum 46 is outputted to represent the combination of two pixels (one located in CCD 3-a, the other in CCD 3-b) in which the same object point 21 forms its images, and the pixel datum 20 corresponding to which is different from the one corresponding to the accessing pixel 19. The interval distance 10, the camera angle datum 63, and the address datum 38, representing the pixel angle 64 of the two pixels 19, are fed to a range calculator 49, in which the object range datum 50 representing the object range 42 is calculated according to Eq. 4. Only when the coincidence datum 46 represents "1", this object range datum 50 is stored in a memory cell of the range memory 51 accessed by the same address datum 38. After the above described operation of the coincidence section (C) has been performed with regard to all combinations of two pixel data 20, the camera 4-a is rotated by a specific minute angle according to variation of the camera angle datum 63. In the focus extraction section (B-a), five new image data 6-a outputted from CCD 3-a located in the same five positions in the previous action are stored in five image memories 23. Then the above action is repeated with regard to all combinations of two pixel data 20 and two focus pixel data 34. Only when the object point 21, the coincidence data 46 corresponding to which should represent "1", goes outside the depth of focus of the lens, the CCDs 3-a, 3-b are moved to new first positions. The new image datum 6-1 in this new first position is stored in the image memory 23-1, and similarly the four other new image data 6 in respective new positions are stored in respective image memories 25. Thereafter the same operations in the focus extraction section (B) and the coincidence section (C) are repeated. Furthermore, in the mode described in conjunction with FIGURE 1, the pixel 19 of each CCD 3 forming the image of the object point 21 which exists within the depth of focus of the lens and the pixel datum 20 corresponding to which is different from the other pixel datum 20 corresponding to the other pixel 19 accessing to said pixel 20 can be extracted by seeking the peak value of the contrast datum 27. The constitution and operation of the above described embodiment of this invention can be modified in various ways without departing from the scope of the invention as illustrated by the following examples. 1. The light entering through a lens 2 is divided into three light beams of three primary colors, and the image signals 6 obtained respectively from these light beams are processed in focus extraction sections B and coincidence sections C. The resulting measured ranges are finally combined. 2. In the coincidence section C, comparison is carried out with respect to a plurality of pixels 19 which have become aligned continuously or intermittently in the same direction on both CCDs 3. In the case where the pixel data 20 outputted from the pixels 19 whose relative positions are the same among these plurality of pixels 19 respectively coincide, and, moreover, at least one of the focus pixel data 34 with respect to these plurality of pixels 19 is "1", the coincidence datum 46 with respect to these plurality of pixels 19 becomes "1". 3. Instead of installing the electronic circuit described in the example of practice of this invention, a microcomputer and a soft program are used to accomplish an operation of equivalent functional result. 4. In the processing of the image signal 6 of an image having a relatively distinctive characteristic, the operation of the coincidence section C is carried out by seeking a pixel position datum as a signal indicating the position of a pixel 19 of varying pixel datum 20, irrespective of whether or not the image of an object point 21 within the scope of focus is being formed, and using this pixel position datum and the corresponding standard image datum 36. 5. By operating elements constituting the optical system such as the lens 2 and a mirror in each camera 4, the interval distance 10 in the example illustrated in FIGURE 1 or the camera angle 62 in the example shown in FIGURE 3 is varied. 6. In an object 5, parts indicating variations of the same color information are present in closely disposed state. For this reason, when pixel data 20 corresponding to different object points 21 are compared, the coincidence datum 46 becomes "1", and there is the possibility of the occurrence of error wherein two or more species of object ranges 42 are recorded in the same individual memories within the range memory 51. In this case, since the correct object range 42 is not measured, it is desirable that the contents stored within the above mentioned individual memories be left erased. In the coincidence section C, in the storing of object range data 50 in the individual memories indicated by the address datum 38a within the range memory 51 when the coincidence datum 46 becomes "1", the information that the coincidence datum is "1" is stored in individual memories indicated by the same address datum 38a within a confirmation memory which is separate from the range memory 51. Next, when the address datum 38a assumes a certain value, a confirmation signal indicating whether the values of the individual memories within the confirmation memory indicated by this address datum 38a are "1" or "0" is outputted from the confirmation memory and, together with the coincidence datum 46, is introduced as input into an AND circuit. From this AND circuit, an erasure signal which becomes "1" when both the confirmation signal and the coincidence datum 46 become "1" is outputted. This erasure signal is fed as input into the range memory 51, and, when this signal is "1", it has the function of erasing the contents of the individual memories indicated by the above mentioned address datum 38a.

Claims: Apparatus for measuring the ranges of the points of an object, the apparatus comprising: (A) a pair of cameras (4-a, 4-b) spaced by a variable interval distance (10), each of the two cameras (4-a, 4-b) comprising a lens (2-a, 2-b) arranged on an optical axis (7-a, 7-b) and an image sensing device (3-a, 3-b) with a plurality of light receiving elements (19-a, 19-b) for producing analog element signals in response to radiation received from the object points, the light receiving elements (19-a, 19-b) being aligned perpendicular to said optical axis; (B) means (53, 54) for varying the image distance (12) of both cameras (4-a, 4-b); (C) a pair of signal processing circuits (18) each being connected to the image sensing device (3-a; 3-b) of a corresponding one of the cameras (4-a, 4-b) for converting said analog element signals into digital element signals; (D) a pair of focus extraction sections (B-a, B-b) each being connected to a corresponding one of the signal processing circuits (18) for providing focus data indicating for each light receiving element (19-a, 19-b) of the corresponding one of the image sensing devices (3-a; 3-b) and for each image distance (12) whether the point of the object imaged on the light receiving element (19) is in focus, each of the focus extraction sections (B-a, B-b) comprising a memory (23-1, 23-2, 23-3, 23-4) for storing said digital element data; (E) a coincidence section (C) for providing a coincidence datum (46) for such pairs of corresponding light receiving elements (19) being in focus and producing the same element analog signals at the same time, the coincidence section (C) being connected to both focus extraction sections (B-a, B-b) for receiving the focus data and the digital element data; (F) a range calculator (49) responsive to said interval distance (10) for calculating range when said coincidence datum (46) is provided; (G) a plurality of range memories (51) for storing said ranges; and (H) a central processing unit (13) for generating signals corresponding to said image distances (12) for providing the same to said cameras (4-a, 4-b), and said interval distance (10) for providing the same to said cameras (4-a, 4-b) and said range calculator (49). An apparatus according to claim 1, characterized by means (8) for varying the interval distance (10) between said pair of cameras (4-a, 4-b). An apparatus according to claim 1, characterized by (A) means (60) for varying the angle (62) between said optical axes; (B) the range calculator (49) being responsive to said angle (62) for calculating range when said coincidence datum (46) is provided; and (C) the central processing unit (13) providing said angle (62) to said cameras (4-a, 4-b) and said range calculator (49).

Inventors: SHIMIZU, NAOKI
Applicants: SHIMIZU, NAOKI
Application year: 1983
Main classification: G01C3
IPC codes: G01C3