Technical Field of the Invention
The technical field of the present invention is that of optical pattern recognition systems using joint transform image correlation, and in particular joint transform image correlation systems which employ nonlinear optics at the Fourier plane to quantize the Fourier transform interference intensity.
Background of the Invention
Optical pattern recognition based on image correlation is highly useful in automatic inspection, testing, surveillance and robotic vision. Image correlation involves the detailed comparison of an input image with a reference image. This detailed comparison can yield information regarding the similarity of the input image and the reference image. This technique may be useful for identification of radar or sonar images or for identification of parts via a machine vision system.
Coherent optical systems can provide high speed processing of images with large space-bandwidth products. It would be highly useful to develop optical correlator systems that produce correlation signals with large peak intensity, narrow correlation bandwidth, small auto-correlation sidelobes and good discrimination sensitivity.
Summary of the Invention
The present invention is a nonlinear joint transform image correlator which employs a spatial modulator operating in a binary mode in the Fourier plane. The reference and input images are illuminated by a coherent light at the object plane of a Fourier transform lens system. A image detection device, such as a charge coupled device, is disposed at the Fourier plane of this Fourier transform lens system to detect the intensity of the Fourier transform interference between the input images. A thresholding network detects the median intensity level of the imaging cells of the charge coupled device at the Fourier plane. The thresholding network then generates a binary output for each pixel of the Fourier transform interference intensity indicating whether the image intensity of that pixel is greater than the median intensity.
The correlation output of the device is provided by an inverse Fourier transform of the binarized Fourier transform interference intensity. In the preferred embodiment of the present invention this binary data corresponding to the image on the Fourier plane is then applied to a spatial light modulator device operating in a binary mode having an array of pixels similar to the imaging device. This spatial light modulator device operating in a binary mode is located at the object plane of a second Fourier transform lens system. This spatial light modulator device operating in a binary mode is illuminated by coherent light which causes an image to form at the Fourier plane of the second Fourier transform lens system. The output of the joint transform image correlator is read at this Fourier plane. In an alternative embodiment, the inverse Fourier transform is performed electrically via a computer.
This technique results in the quantization and binarization of the interference intensity at the Fourier plane of the first Fourier transform lens system. It has been found that, far from causing deterioration of the quality of the correlation signals at the output plane, the performance of the binary mode joint transform correlation is greatly enhanced and the correlation peak value is significantly increased. Compared to conventional optical correlator systems, the nonlinear optical correlator of this invention provides substantially better performance in terms of the auto-correlation peak intensity, bandwidth and sidelobe intensity. Furthermore, the system of this invention out performs conventional optical correlators in terms of discrimination sensitivity.
Brief Description of the Drawings
These and other objects and aspects of the present invention will become clear from the following description of the invention take in conjunction with the drawings, in which:
FIG. 1 illustrates schematically the structure of the nonlinear joint transform image correlator of the present invention;
FIG. 2 illustrates in flow chart form the process of the thresholding network illustrated in FIG. 1;
FIG. 3 illustrates the auto-correlation intensity obtained from images of the characters "F" in the case of the prior art;
FIG. 4 illustrates the auto-correlation intensity obtained from images of the characters "F" in the case of the nonlinear joint transform image correlator of the present invention;
FIG. 5 illustrates the cross-correlation intensity obtained from images of the characters "F" and "L" in the case of the prior art;
FIG. 6 illustrates the cross-correlation intensity obtained from images of the characters "F" and "L" in the case of the joint transform image correlator of the present invention;
FIG. 7 illustrates an alternative embodiment of the thresholding network illustrated in FIG. 1.
FIG. 8 illustrates schematically the structure of the nonlinear joint transform image correlator in accordance with an alternative embodiment of the present invention; and
FIG. 9 illustrates schematically the structure of the nonlinear joint transform image correlator in accordance with a still further embodiment of the present invention;
Detailed Description of the Preferred Embodiment
FIG. 1 illustrates the nonlinear joint transform image correlator of the present invention in schematic form. A light source 110 generates coherent light for illumination of a pair of spatial light modulators 120 and 125. Spatial light modulators 120 and 125 provide the reference and input images, respectively, to the correlation system. Light source 110 would typically include a laser light source and suitable optical elements to produce a collimated beam of the size necessary to illuminate both spatial light modulators 120 and 125. Although two spatial light modulators are illustrated in FIG. 1, those skilled in the art would realize it is equally feasible to employ suitably controlled separate sections of a single spatial light modulator to provide the necessary images.
The image inputs to the apparatus are provided by spatial light modulators 120 and 125 located at an input plane. Spatial light modulator 120 provides the reference image. In the example illustrated in FIG. 1 this reference image corresponds to the character "F". Spatial light modulator 125 provides the input image. In the example illustrated in FIG. 1 this input image corresponds to the character "L". These images are controlled by reference image source 122 and input image source 127, respectively. The specification of the reference and input images is in accordance with the prior art and is beyond the scope of this invention. It is expected that either optically addressed or electrically addressed spatial light modulators can be employed at the input plane as spatial light modulators 120 and 125. The essential feature is that spatial light modulators 120 and 125 provide coherent images displayed at the same plane. As noted above it is equally feasible to provide a single spatial light modulator having separately controlled sections for the reference and input images.
The plane of spatial light modulators 120 and 125 is the object plane of Fourier transform lens system 130. Fourier transform lens system receives the coherent light from the spatial light modulators 120 and 125 and produces an interference of these two images at its Fourier plane.
An imaging device 135 is located at this Fourier plane to convert the interference intensity into an electrical signal. In accordance with the preferred embodiment imaging device 135 is a charge coupled device. A charge coupled device generates a charge on each cell of a plurality of imaging cells which is proportional to light intensity. After a timed exposure the charge coupled device can be read by transferring the accumulated charge by rows to an output. This produces an analog electrical signal proportional to the light intensity during the exposure. In the preferred embodiment, this analog electrical signal is read out in a raster scan fashion to produce an indication of the interference intensity at each imaging cell of the charge coupled device.
The output of the imaging device 135 is applied to a thresholding network 140. Thresholding network 140 is preferably a computer circuit which quantizes and binarizes the output of the imaging device. This process occurs in accordance with the flow chart illustrated in FIG. 2. Firstly, the analog output from the imaging device 135 is input into the thresholding network (block 200) and digitized via an analog-to-digital converter (block 201). This provides a digital signals for each imaging cell which can be manipulated via computer circuits. The set of digital signals is stored in a memory array, with one location of the memory array provided to store the digital signal of a corresponding one of the imaging cells (block 202).
The thresholding network then forms a histogram of the intensity values on the imaging cells represented by the digital signals stored in the memory array (block 203). This histogram is formed by counting the number of digital signals within the memory array of each permissible digital value. Next the median of these digital signals is computed (block 204). The median is the digital value which is above the value of half the digital signals and below the value of half the digital signals.
A new memory array is formed from the original memory array by binarizing the original digital signals (block 205). If the value of the digital signal of a particular memory location of the memory array is above the computed median value, then the corresponding memory location of the new memory array is given a first binary value. Otherwise that memory location of the new array is give the opposite binary value. This process could occur by the formation of a second, similar sized memory array or by replacement of the digital values in the original memory array. Lastly, data in the new memory array is output (block 206).
The process described above could be performed in a number of ways. It is feasible to construct special purpose computer circuits to perform these tasks. Alternatively, a general purpose computer could be programmed to perform these functions as a subset of other tasks. In any event, thresholding network 140 produces a set of binary values corresponding to the thresholded interference intensity measured by imaging device 130.
The correlation output of the nonlinear joint transform image correlator of the present invention is formed by an inverse Fourier transform of the thresholded interference intensity. This inverse Fourier transform may be achieved in a number of ways. Below is described an optical system for achieving this inverse Fourier transform. Such an optic system has the advantage of providing high speed processing of images of large space-bandwidth products.
Computer interface 145 serves to connect thresholding network 140 and spatial light modulator device in the binary mode 160. Spatial light modulator device in the binary mode 160 is a spatial light modulator operating in a binary mode which has an array of spatial light modulation cells corresponding to the array of imaging cells of the imaging device 135. Computer interface 145 couples the binary values of the new memory array to the corresponding spatial light modulation cells of spatial light modulator device in the binary mode 160.
There are several alternatives to embody spatial light modulator in the binary mode 160. Spatial light modulator in the binary mode 160 can be embodied by a magneto-optic device, a deformable mirror device or a liquid crystal device.
In accordance with one embodiment of the present invention spatial light modulator device in the binary mode 160 is a magneto-optic device. A magneto-optic device provides controlled rotation of the polarization of light transmitted through individual spatial light modulation cells dependent upon the electrical signal applied to the that cell. Provided that the light from second light source 150 is linearly polarized, and linear polarizer 165 is provided, a binary drive to the cells of a magneto-optic device can provide binary spatial light modulation. Light transmitted through the magneto-optic device will have a polarization parallel to or perpendicular to the direction of polarization of polarizer 165 dependent upon the electrical signal applied to that cell. The light from light source 150 is thereby either transmitted or blocked, respectively. Thus each cell is substantially transparent or substantially opaque in accordance with the binary value of the corresponding memory location of the new memory array.
In accordance with another embodiment of the present invention spatial light modulator device in the binary mode 160 is a deformable mirror device. Such deformable mirror devices have a an array of cells including thin reflective membranes which are deformed in proportion to the charge on that particular cell. Light reflected from such cells undergoes a phase shift which is proportional to the deformation controlled light path length and hence to the electrical drive signal applied to that cell. These deformable mirror devices can be employed using linearly polarized light and a linear polarizer in the manner discussed above with regard to magneto-optic devices to provide spatial light modulation in a binary mode. Such deformable mirror devices operate in reflection rather than transmission as in the case of magneto-optic devices, and as illustrated in FIG. 1. However, the change from operating in transmission to operating in reflection is well known in the optical art.
In accordance with a further embodiment of the present invention spatial light modulator device in the binary mode 160 is a liquid crystal device. Such liquid crystal devices are of the same type used in pocket size television receivers. These liquid crystal devices are generally employed in a gray scale mode, however with the proper drive signals they can provide spatial light modulation in the binary mode by operation at the extremes of their gray scale range.
The output of the nonlinear joint transform image correlator of the present invention is provided using a second light source 150, which produces coherent light in the same manner as light source 110. This coherent light is employed to illuminate spatial light modulator device in the binary mode 160. Spatial light modulator device in the binary mode 160 is disposed at the object plane of a second Fourier transform lens system 170. A linear polarizer 165 is disposed between the spatial light modulator device in the binary mode 160 and Fourier transform lens system 170 to enhance the spatial light modulation contrast. The correlation output of the nonlinear joint transform image correlator is read at the Fourier plane 175 of second Fourier transform lens system 170. A second imaging device 180, similar to imaging device 135, may be disposed at this Fourier plane 175 to capture the correlation output.
The nonlinear joint transform image correlator of the present invention operates as follows. Let r(x+x.sub.0,y) be the reference image and let s(x-x.sub.0, y) be the input image for the coordinates (x,y). The light distribution at the Fourier plane of Fourier transform lens system 130 (that is, at the imaging device 135) is the interference of the Fourier transforms of the two images: ##EQU1## where .alpha. and .beta. are the spatial frequency coordinates, R(*) is the Fourier transform of the input image r(x,y), S(*) is the Fourier transform of the input image s(x,y), f is the focal length of Fourier transform lens system 130, and x is the wavelength of the light produced by light source 110. The Fourier transform intensity distribution at the imaging device 135 is given by: ##EQU2##
The correlation of the input images can be formed by taking the inverse Fourier transform of this interference intensity. The inverse Fourier transform of this interference intensity is produced in the preferred embodiment of the present invention using a spatial light modulation operating in a binary mode and a second coherent light source. The light of the second coherent light source is spatially modulated in accordance with this interference intensity distribution and supplied to a second Fourier transform lens system. The image resulting at the Fourier plane of this second Fourier transform lens system is the correlation output.
The present invention employs a thresholding network at the Fourier plane that binarizes the Fourier transform interference intensity. Thus a spatial light modulator operating in a binary mode can be used to read out the thresholded Fourier transform interference intensity in the inverse Fourier transform operation. In the prior art, gray scale spatial light modulation of the Fourier transform interference intensity was believed necessary to provide the correlation output. Thus it was not believed feasible to employ a spatial light modulator operating in a binary mode in such a system. In accordance with the present invention, however, the Fourier transform interference intensity is binarized and used to control a spatial light modulator operating in a binary mode. The Fourier transform interference intensity is binarized to: ##EQU3## where v is the threshold value.
FIGS. 3, 4, 5 and 6 illustrate a computer simulation of the nonlinear joint transform image correlator of the present invention. FIG. 3 illustrates the auto-correlation of the character "F" in accordance with the prior art. FIG. 4 illustrates a similar auto-correlation in accordance with the binarized joint Fourier transform of the present invention. FIG. 5 illustrates the cross-correlation of the characters "F" and "L" in accordance with the prior art. FIG. 6 illustrates the cross-correlation of the characters "F" and "L" in accordance with the binarized joint Fourier transform of the present invention as illustrated in FIG. 1.
FIGS. 3 and 4 illustrate a comparison of the auto-correlation for the prior art and the present invention, respectively. These figures have been scaled to show identical peak correlation. Note that the present invention yields lower auto-correlation sidelobes than the prior art.
Further advantages of the present invention over the prior art are shown in Table 1. Not evident from the scaled FIGS. 3 and 4 is the fact that the binarized joint Fourier transform correlator of the present invention provides increased intensity of the peak auto-correlation.
In Table 1, Ro.sup.2 is the auto-correlation peak intensity, SL.sup.2 is the largest sidelobe intensity, DC is the maximum intensity value for the zero order term in the correlation plane, and BW is the full correlation bandwidth determined in the x and y directions.
It can be seen from Table 1 that the thresholding of the Fourier transform interference intensity has improved the figures of merit for the auto-correlation case. The correlation peak intensity is considerably increased in the present invention. The ratio of the peak correlation intensity to the largest sidelobe intensity is increased from 3.62 to 11.6 in the present invention. The ratio of the the maximum zero order intensity to the peak interference intensity is decreased from 4 to 1.43 in the present invention. The x-y bandwidth of the auto-correlation function is likewise improved from a 7 by 7 pixel bandwidth in the prior art to a 1 by 1 pixel bandwidth in accordance with the present invention.
FIGS. 5 and 6 illustrate a computer simulation of the nonlinear joint transform image correlator of the present invention. FIG. 5 illustrates the cross-correlation between the characters "F" and "L" as illustrated in FIG. 1 in accordance with the prior art. FIG. 6 illustrates a similar cross-correlation in accordance with the binarized joint Fourier transform of the present invention. These figures have been scaled to show identical peak correlation.
Further advantages of the present invention over the prior art in the cross-correlation case are shown in Table 2. Not evident from the scaled FIGS. 5 and 6 is the fact that the binarized joint Fourier transform correlator of the present invention provides increased intensity of the peak cross-correlation.
In Table 2, Rc.sup.2 is the maximum intensity of the cross-correlation, Ro.sup.2 /Rc.sup.2 is ratio of the maximum intensity of the auto-correlation (Ro.sup.2) to the maximum intensity of the cross-correlation, and (1-Rc.sup.2 /Ro.sup.2)*100 is the percentage difference between the peaks of the auto-correlation and the cross-correlation. It can be seen that each of these measures of correlation merit is improved in the present invention over the prior art.
FIG. 7 illustrates a alternative embodiment of the thresholding network 140 illustrated in FIG. 1. This thresholding network 500 includes a comparator 510. This comparator is preferably of the type designated LM106. The output from the imaging device 135 is applied to the inverting input through a time constant network consisting of resistor 501 and capacitor 502. This time constant network is optional and is employed to control the response time of the thresholding network 500. The voltage from a voltage divider potentiometer 505 is applied to the noninverting input of the comparator 510. The setting of the potentiometer determines the threshold of the thresholding network 500. This thresholding network 500 is very simple and easy to implement.
FIG. 8 illustrates an alternative embodiment of the present invention. Parts which correspond to parts previously illustrated in FIG. 1 have like reference numbers in FIG. 8. In this alternative embodiment an optically addressed spatial light modulator operating in the binary mode 190 is disposed at the Fourier plane of Fourier transform lens system 130. In conjunction with linear polarizer 195, optically addressed spatial light modulator operating in the binary mode 190 replaces the imaging device 135, the thresholding network 140, the computer interface 145 and the spatial light modulator operating in the binary mode 160 of FIG. 1. Optically addressed spatial light modulator operating in the binary mode 190 is a nonlinear optical material, such as an optical crystal, with a very high contrast. Light from Fourier transform lens system 130 forms the Fourier transform interference intensity at plane of optically addressed spatial light modulator operating in the binary mode 190. In accordance with this embodiment of the present invention, the thresholding operation takes place in optically addressed spatial light modulator operating in the binary mode 190. Light is passed or substantially blocked in accordance with the received light intensity due to the nonlinear, high contrast character of optically addressed spatial light modulator operating in the binary mode 190. The light emerging from optically addressed spatial light modulator operating in the binary mode 190 is the equivalent of the light emerging from spatial light modulator in the binary mode 160 illustrated in FIG. 1. This emergent light is then processed in the same manner as illustrated in FIG. 1 with the correlation results appearing at correlation plane 175.
A yet further embodiment of the present invention is illustrated in FIG. 9. In the embodiment illustrated the inverse Fourier transform of the Fourier transform interference intensity is formed via a computer. The output from thresholding network 140 is applied to an inverse Fourier transform circuit 210. This is a computer circuit constructed to produce the inverse Fourier transform of the thresholded Fourier transform interference intensity received from thresholding network 140. The output of inverse Fourier transform circuit 210 is supplied to display driver 220 and hence to visual display 225. This causes visual display 225 to display the computed correlation of the reference and input images.
In a further embodiment of the present invention, the thresholded light intensity values are selected from one of three ranges rather than from one of two ranges as previously described. Any of the previously illustrated structures could be employed with the addition of a three range thresholding means and driving the spatial light modulator at the Fourier plane in a trinary mode rather that in the previously described binary mode.
Multiple input objects and multiple reference objects can be processed simultaneously with this invention.
The spatial light modulators 120 and 125 can operate in the binary mode. In this case, the reference and input images are thresholded according to a predetermined threshold value.