Field and Background of the Invention
The present invention relates to three-dimensional cameras and, more particularly, to systems for accurately determining the distance to various objects and portions of objects in the scene.
Various techniques are known for creating a three-dimensional image of a scene, i.e., a two-dimensional image which, in addition to indicating the lateral extent of objects in the scene, further indicates the relative or absolute distance of the objects, or portions thereof, from some reference point, such as the location of the camera.
At least three basic techniques are commonly used to create such images. In one technique, a laser or similar source of radiation is used to send a pulse to a particular point in the scene. The reflected pulse is detected and the time of flight of the pulse, divided by two, is used to estimate the distance of the point. To obtain the distance of various points in the scene, the source is made to scan the scene, sending a series of pulses to successive points of the scene.
In a similar technique, a phase shift, rather than time of flight, is measured and used to estimate distances. Here, too, the entire scene or relevant portions thereof must be scanned one point at a time.
In a third technique, which also involves scanning, at least a single radiation source and corresponding detector are used, with suitable optics which act on the light in a manner which depends on the distance to the object being examined, to determine the distance to a particular point in the scene using a triangulation technique.
The major disadvantage of all three of the above-described techniques is that each requires point by point scanning to determine the distance of the various objects in the scene. Such a scanning significantly increases the frame time of the system, requires expensive scanning equipment and necessitates the use of fast and powerful computational means.
There is thus a widely recognized need for, and it would be highly advantageous to have, a method and system for rapidly and easily determining the distance of various points in a scene without the need for scanning and complex computational capabilities.
Summary of the Invention
According to the present invention there is provided a system and method for creating an image indicating distances to various objects in a scene. The system includes: (a) a source of radiation for directing source radiation at the scene; (b) a detector for detecting the intensity of radiation reflected from the objects in the scene; (c) a source modulator for modulating the source of radiation; (d) a detector modulator for modulating the detector; (e) a source modulator control mechanism for controlling the source modulator; and (f) a detector modulator control mechanism for controlling the detector modulator.
According to a preferred embodiment of the present invention, the source modulator control mechanism and the detector modulator control mechanism operate to simultaneously control the source modulator and the detector modulator.
According to further features in preferred embodiments of the invention described below, the modulator of the source radiation and the modulator of the reflected radiation serve to alternately block and unblock or alternately activate and deactivate the source radiation and detector, respectively.
According to still further features in the described preferred embodiments the source of radiation is a source of visible light, such as a laser and the detector includes photographic film, or a video camera sensor, such as a Charge Coupled Device (CCD.).
According to yet further features, the method further includes processing the intensity of radiation reflected from the objects in the scene to determine distances of the objects and, in a most preferred embodiment, comparing the intensities detected during a relatively continuous irradiation and detector period with intensities detected during modulation of the source and the detector.
Also according to the present invention there is provided a method for creating an image indicating distances to various objects in a scene, comprising the steps of: (a) directing source radiation at the scene using a radiation source; (b) detecting intensity of radiation reflected from the objects in the scene using a detector; (c) modulating the radiation source using a radiation source modulator; (d) modulating the detector using a detector modulator; and (e) controlling the radiation source modulator; and (f) controlling the detector modulator.
According to further features the method further includes processing the intensity of the radiation reflected from the objects in the scene to determine distances of the objects.
In a preferred embodiment, the processing includes comparison of intensities detected during a relatively continuous irradiation and detector period with intensities detected during modulation of the source and the detector.
The present invention successfully addresses the shortcomings of the presently known configurations by providing a system and method for quickly and readily determining distances to portions of a scene without the need for expensive and time consuming scanning of the scene.
Brief Description of the Drawings
The invention is herein described, by way of example only, with reference to the accompanying drawings, wherein:
FIG. 1 shows a typical set up of a system and method according to the present invention;
FIG. 2 shows a typical modulation scheme which might be employed in a system and method of the present invention;
FIG. 3 shows another modulation scheme which might be employed;
FIG. 4 illustrates yet another modulation scheme which can be used to enhance the accuracy of a system and method according to the present invention 1; and
FIGS. 5A and 5B respectively, show source and detector modulation signals that are shifted and that have different durations.
Description of the Preferred Embodiments
The present invention is of a system and method which can be used to determine the distance of various portions of a scene.
The principles and operation of a system and method according to the present invention may be better understood with reference to the drawings and the accompanying description.
Referring now to the drawings, FIG. 1 illustrates a typical setup of a system according to the present invention.
A system according to the present invention includes a source of radiation 10 for directing radiation at the scene being observed. In the case of FIG. 1, and for purposes of illustration, the scene depicted includes two three-dimensional objects denoted `A` and `B`. The radiation used may be any suitable radiation having a suitable wavelength for the distances examined and other suitable properties as will become more clear from the subsequent discussion. For most applications the radiation is visible or infrared radiation, such as laser radiation or stroboscopic light.
The system further includes a detector 12 for detecting the intensity of radiation reflected from the objects in the scene. The detected radiation is that portion of the source radiation which impinges upon the objects of the scene and which is reflected back toward detector 12. The location of detector 12 may be any suitable location, for example, as shown in FIG. 1. Detector 12 may also be located closer to, or even substantially coincident with, radiation source 10, if desired. The detector used may be any suitable detector with a suitable resolution and suitable number of gray levels including, but not limited to, a photographic film camera and a video camera, such as a CCD camera.
The system includes a radiation source modulator, depicted schematically as item 16, for modulating radiation source 10 or the source radiation and a detector modulator 18 for modulating the reflected radiation which is headed for detector 12 or detector 12 itself. The word `modulate` as used herein is intended to include any varying of the level of operation or any operating parameters of radiation source 10 or of the source radiation itself and/or of detector 12 or of the reflected radiation itself, as appropriate, including, but not limited to, the alternate blocking and unblocking and the alternate activating and deactivating of radiation source 10 or the source radiation and detector 12 or the reflected radiation.
Various mechanisms may be used to modulate radiation source 10 or the source radiation and detector 12 or the reflected radiation. For example, the source radiation and/or reflected radiation may be physically blocked periodically using a suitable shutter or similar element. For example, a shutter 18 is depicted in FIG. 1 at the entrance of detector 12. The shutter may be in any suitable form, for example, in the form of a rotating disk with an opening such that reflected light can pass through to detector 12 whenever the opening and detector 12 are aligned but is blocked at other times during the rotation of the disk.
Other mechanisms which may be used to modulate radiation source 10 and/or detector 12 include various high frequency electronic modulation means for periodically deactivating radiation source 10 and/or detector 12, including, but not limited to, RF modulators. Depicted in FIG. 1 is a source modulator 16 which is shown as being internal to radiation source 10 and which is intended to convey the concept of electronically activating and deactivating radiation source 10. Similar principles apply for detector 12. In addition, various electro optical modulator may be used. These include KDP, lithium niobate and liquid crystals.
It is to be noted that whenever reference is made in the specification and claims to a radiation source modulator or to the modulation of the radiation source it is to be understood as involving the modulation of the radiation source itself and/or of the source radiation. Similarly, whenever reference is made in the specification and claims to a detector modulator or to the modulation of the detector it is to be understood as involving the modulation of the detector itself and/or of the reflected radiation.
Finally, a system according to the present invention includes mechanisms for controlling source modulator 16 and detector modulator 18. Preferably, the mechanisms for controlling source modulator 16 and detector modulator 18 operate together in a coordinated manner, or, most preferably, are the same mechanism 20, so as to simultaneously control source modulator 16 and detector modulator 18. The simultaneous control may be synchronous so that the operation of both radiation source 10 and detector 12 is affected in the same way at the same time, i.e., synchronously. However, the simultaneous control is not limited to such synchronous control and a wide variety of other controls are possible. For example, and without in any way limiting the scope of the present invention, in the case of blocking and unblocking control, radiation source 10 and detector 12 may be open for different durations during each cycle and/or the unblocking of detector 12 may lag the unblocking of radiation source 10 during each cycle.
A system according to the present invention further includes a suitable processor 22 which analyzes the intensity of radiation detected by detector 12 and determines the distances to various objects and portions of objects in the scene being examined. The operation of processor 22 is explained in more detail below.
In operation, a typical system according to the present invention, using a laser as the radiation source, a CCD sensor as the detector and modulating the source and detector by synchronous switching, would operate as follows. Laser 10 and CCD 12 are activated (or unblocked) and deactivated (or blocked) periodically in a synchronous manner, as depicted in FIG. 2 which shows a type of square wave modulation. Thus during each cycle, both laser 10 and detector 12 are active for a time `a` and are inactive for a time `b`. The times `a` and `b` may be the same or different. The wavelength of laser 10 and the time `a` are selected so that light from laser 10 will be able to travel to the most distant objects of interest in the scene and be reflected back to CCD 12.
The selection of the time `a` can be illustrated with a simple example. Let us assume that the scene to be examined is as in FIG. 1 with the maximum distance to be investigated being approximately 50 meters from the source or detector, i.e., both objects A and B are within about 50 meters from the detector and source. Light traveling from the source to the farthest object and back to the detector would take approximately 0.33 .mu.sec to travel the 100 meters. Thus, the time duration `a` should be approximately 0.33 .mu.sec.
Systems and methods according to the present invention are based on the idea that a near object will reflect light to the detector for a longer period of time during each cycle than a far object. The difference in duration of the detected reflected light during each cycle will translate to a different intensity, or gray level, on the detector. Thus, for example, if we assume that a certain point on object B is a certain number of meters away from the source and/or detector while a certain point on object A is a greater distance away, then reflected light from the point on B will start arriving at the detector relatively early in the active portion of the detector cycle (see FIG. 2) and will continue to be received by the detector until the detector is deactivated at the end of the active portion of the detector cycle. The reflected light from the point on B will continue to proceed toward the detector for a period `a` which corresponds to the period of irradiation (see the dot-dash-dot line in FIG. 2). However, the portion of this reflected radiation which falls beyond the deactivation or blocking of the detector will not be received by the detector and will not contribute toward the intensity sensed by the corresponding pixels of the detector.
By contrast, light reflected from the point on object A will start arriving at the detector later during the active portion of the detector cycle and will also continue to be received by the detector until the detector is deactivated.
The result is that reflected light from a point on object B will have been received for a longer period of time than reflected light from a point on object A (see the shaded areas in FIG. 2). The detector is such that the intensity of gray level of each pixel during each cycle is related to the amount of time in each cycle during which radiation was received by that pixel. Hence, the intensity, or gray level, can be translated to the distance, relative or absolute, of the point on the object.
As stated above, the synchronous on/off operation described in the example and depicted in FIG. 2, is not the only possible mode of operation. Other modulations may be used. For example, the radiation source and/or detector may be modulated harmonically as shown in FIG. 3.
To avoid obtaining false signals from distant objects which are beyond the region of interest, it may be desirable to increase the time duration `b` during which the source/detector are inactive so that the bulk of the reflected radiation from faraway objects which are of no interest reaches the detector when the detector is deactivated and therefore do not contribute to the intensity detected by the corresponding pixel of the detector. A proper choice of the duration `b` thus can be used to ensure that only reflected radiation from objects within the desired examination range are received during each specific cycle, thereby facilitating the interpretation of the intensity image.
As will readily be appreciated, in certain applications, different portions of the various objects in the scene may have different reflectivities. The different reflectivities result from different colors, textures, and angles of the various portions of the objects. Thus, two points which are the same distance from the source/detector will be detected as having different intensities which could lead to false distance readings which are based on intensities, as described above.
It is possible to readily compensate for differences in reflectivities of different objects or portions of objects being examined. As is well known, the intensity detected by a pixel of a detector receiving continuous radiation from a specific portion of a scene is directly proportional to the reflectivity of the portion being viewed and inversely proportional to the square of the distance between the portion of the scene being viewed and the detector.
It can readily be shown that when a pulsed radiation source, such as those described above, is used the intensity detected by a pixel of a detector receiving radiation from a specific portion of a scene is still directly proportional to the reflectivity of the portion of the scene being viewed but is inversely proportional to the distance between the portion of the scene being viewed and the detector raised to the third power.
Thus, to compensate for the effects of different reflectivities, one can use both continuous radiation and pulsed radiation. An example of such a cycle is shown in FIG. 4. Here the radiation source and detector are active for a relatively long period of time to provide the continuous intensity of the objects in the scene. Periodically, the source and detector are deactivated and the source and detector are pulsed, in the same way as described above with reference to the basic embodiment, using one or more, preferably a train, of pulses.
The detection during the pulsing portion of the cycle is used as described above. However, in addition, the continuous detection during the long active period of the cycle is used to correct, or normalize, the distances and compensate for differences in reflectivities. The compensation can be accomplished by any convenient method, for example, by dividing the intensity of each pixel during the continuous period by the intensity of the same pixel during the pulsed period, with the quotient between the two being directly proportional to the distance of the region being viewed by the pixel.
While the invention has been described with respect to a limited number of embodiments, it will be appreciated than many variations, modifications and other applications of the invention may be made.