Optical encryption and decryption method and system6907124Abstract The invention relates to securing of information utilising optical imaging technologies and more specifically to phase encryption and decryption of images. An image is encrypted into a mask having a plurality of mask resolution elements (Xm, Ym) by encoding the image using e.g. a phase mask with an encoded phase value φ (Xm, Ym) and an encoded amplitude value a (Xm, Ym), and by further encrypting the mask (using e.g. a spatial light modulator) by addition of an encrypting phase value φc (Xm, Ym) to the encoded phase value φ (Xm, Ym) and by multiplication of an encrypting amplitude value ac (Xm, Ym) with the encoded phase value a (Xm, Ym). The method of decrypting comprises the steps of decrypting the mask by radiating electromagnetic radiation towards the mask and inserting into the path of the electromagnetic radiation a complex spatial electromagnetic radiation modulator comprising modulator resolution elements, the decrypting phase value φd (Xd, Yd) and the decrypting amplitude value ad (Xd, Yd) respectively, of a modulator resolution element (Xd, Yd) being substantially equal to -φc (Xm, Ym) and ac-1 (Xm, Ym). Claims 1. A method of decryption of an encrypted image having a non-encrypted image intensity pattern I(x′,y′) and Description FIELD OF THE INVENTION Spatial phase filtering of electromagnetic radiation with a spatial phase filter for phase shifting of a part of the electromagnetic radiation, and Generating the intensity pattern I(x′,y′) by interference in the image plane of an imaging system between the part of the electromagnetic radiation that has been phase shifted by the phase filter and the remaining part of the electromagnetic radiation. Preferably, the method of decryption further comprises the steps of, and the decryption system further comprises means for Fourier or Fresnel transforming electromagnetic radiation modulated by the mask and the complex spatial electromagnetic radiation modulator, Filtering the Fourier or Fresnel transformed electromagnetic radiation by, in a region of spatial frequencies comprising DC in the Fourier or Fresnel plane, phase shifting with a predetermined phase shift value θ the modulated electromagnetic radiation in relation to the remaining part of the electromagnetic radiation, and multiplying the amplitude of the modulated electromagnetic radiation with a constant B, and in a region of remaining spatial frequencies in the Fourier or Fresnel plane, multiplying the amplitude of the modulated electromagnetic radiation with a constant A, forming the intensity pattern by Fourier or Fresnel transforming, respectively, the phase shifted Fourier or Fresnel transformed modulated electromagnetic radiation, whereby each resolution element (xm,ym) of the mask is imaged on a corresponding resolution element (x′,y′) of the image, the filtering parameters A, B, θ substantially fulfilling the equation {overscore (α)} being the average of the complex phasors a(x,y)eiφ(x,y) of the encoder. It should be noted that, in each resolution element of the encoder, one of two phasor values which represent a particular grey level of the intensity pattern I(x′,y′) may be selected. It is further preferred that the filtering parameters A and B substantially fulfil that A=1 and B=1. Preferably, the absorption of the mask is substantially uniform. It is also preferred that the phase shift value θ substantially fulfils the equation ##EQU1## and in this case ##EQU2## For selected phase shift values φ, φ{overscore (α)} being the phase of {overscore (α)}. In a preferred embodiment of the present invention, the phase shift θ is substantially equal to π. According the previous equation θ=π leads to |{overscore (α)}|=½, and then the phasor values eiφ(x,y) of the encoder may be calculated in accordance with ##EQU3## Although, the present methods of encryption and decryption are related to encoding in two spatial dimensions (planar encoding), the principles of the methods may be utilised for encoding in one to three spatial dimensions and/or in the temporal dimension. The electromagnetic radiation may be of any frequency range of the electromagnetic spectrum, i.e. the gamma frequency range, the ultraviolet range, the visible range, the infrared range, the far infrared range, the X-ray range, the microwave range, the HF (high frequency) range, etc. The present invention is also applicable to particle radiation, such as electron radiation, neutron radiation, etc. Preferably, the electromagnetic radiation is monochromatic or quasi-monochromatic so that the energy of the electromagnetic radiation is concentrated in a narrow frequency bandwidth. Since the intensity pattern is reconstructed by interference of two electromagnetic waves emitted from a common source of electromagnetic radiation, the phases of which have been changed differently, it is required that the frequency range of the emitted electromagnetic radiation is sufficiently narrow to ensure that the two waves of electromagnetic radiation are coherent so that their superposition generates the desired intensity pattern. If the frequency range is too broad, the two waves will be incoherent and the phase information will be lost as superposition of non-coherent waves results in a summation of the intensities of the two waves. It is required that the difference between individual delays of electromagnetic radiation to be superpositioned is less than the wavelength of the radiation. This is a relaxed requirement that allows the electromagnetic radiation to be relatively broad-banded. For example in the visible range a Xe-lamp or a Hg-lamp can be used as a light source in a system according to the present invention with the advantage compared to a laser light source that speckle noise is reduced. The requirements of the spatial coherence of the electromagnetic radiation depend upon the space bandwidth product of the corresponding system and how close the required system performance is to the theoretically obtainable performance of the system. Preferably, the electromagnetic radiation is generated by a coherent source of electromagnetic radiation, such as a laser, a maser, a phaselocked laser diode array, etc. However a high pressure arc lamp, such as a Hg lamp, a Xe lamp, etc, may also be used and even an incandescent lamp may be used as a source of electromagnetic radiation in a low performance system. The encoder changes the phase of an electromagnetic wave incident upon it. The encoder may transmit or reflect the incident electromagnetic wave. The encoder is divided into a number of resolution elements, each of which modulates the incident electromagnetic wave by changing its phase by a specific predetermined value. The predetermined values are assigned to each resolution element in different ways depending upon the technology applied in the component. For example in spatial light modulators, each resolution element may be addressed either optically or electrically. The electrical addressing technique resembles the addressing technique of solid-state memories in that each resolution element can be addressed through electronic circuitry to receive a control signal corresponding to the phase change to be generated by the addressed resolution element. The optical addressing technique addresses each resolution element by pointing a light beam on it, the intensity of the light beam corresponding to the phase change to be generated by the resolution element illuminated by the light beam. Spatial phase modulation may be realised utilising fixed phase masks, devices comprising liquid crystals and being based on liquid crystal display technology, dynamic mirror devices, digital micro-mirror arrays, deformable mirror devices, membrane spatial light modulators, laser diode arrays (integrated light source and phase modulator), smart pixel arrays, etc. A spatial phase filter is typically a fixed phase mask, such as an optically flat glass plate coated with a dielectric layer at specific positions of the glass plate. However, the spatial phase modulators mentioned in the previous section may also be used for spatial phase filters. The imaging system maps the phase modulating resolution elements of the encoder on the target surface of the reconstructed intensity patter. It may comprise a 4f-lens configuration (two Fourier transforming lenses utilising transmission of light or one Fourier transforming lens utilising reflection of light) or a single imaging lens. However, any optical imaging system providing a filtering plane for the spatial phase filter may be applied in a phase contrast imaging system. In the method of decryption according to the present invention, the reconstructed intensity pattern is generated by superposition of two electromagnetic waves in the image plane of the imaging system. The encoder changes the phase values of an electromagnetic wave incident upon it and the imaging system directs the electromagnetic wave with changed phases reflected from or transmitted through the encoder towards the spatial phase filter. The phase filter phase shifts a part of the electromagnetic radiation and the imaging system is adapted to superimpose in the image plane the phase shifted part of the electromagnetic radiation with the part of the electromagnetic radiation that is not phase shifted by the spatial phase filter. According to a preferred embodiment of the invention, the encoder is positioned at the front focal plane of a lens while the spatial phase filter is positioned in the back focal plane of the lens, whereby a first electromagnetic field at the encoder is Fourier transformed by the lens into a second electromagnetic field at the phase filter. Thus, specific spatial frequencies of the first electromagnetic field will be transmitted through the spatial phase filter at specific positions of the phase filter. For instance, the energy of the electromagnetic radiation at zero frequency (DC) is transmitted through the phase filter at the intersecting point of the Fourier plane and the optical axis of the lens also denoted the zero-order diffraction region. It is presently preferred that the spatial phase filter is adapted to phase shift the DC-part of the electromagnetic radiation and to leave the remaining part of the electromagnetic radiation unchanged or, alternatively, to leave the DC-part of the electromagnetic radiation unchanged and to phase shift the remaining part of the electromagnetic radiation. The last alternative is preferred when the energy level of the DC-part of the electromagnetic radiation is so high that the phase shifting part of the phase filter will be destroyed by it. For example in laser cutting, the DC level of the laser beam can be so high that a phase shifting dot positioned at the intersecting point of the DC part of the laser beam at the phase filter would evaporate. It is also possible to block the electromagnetic radiation (no transmittance) in the zero-order diffraction region, however, the DC energy of the radiation is then lost. Below, an expression that is valid for phase modulation of the intensity of the reconstructed intensity pattern as a function of the phasor values eiφ(x,y) of the encoder, when the DC-part of the electromagnetic radiation is phase shifted, is deduced. Electromagnetic radiation incident on the encoder can be described by a function A(x,y), where A(x,y) is a complex number (amplitude and phase) of the incident field on the resolution element (x,y) of the encoder. At the resolution element (x,y), the encoder modulates the phase of the incident radiation with a value φ(x,y) so that the field after reflection by or transmission through the encoder may be described by the function A(x,y)* eiφ(x,y), eiφ(x,y) being the phasor value of the resolution element (x,y) of the encoder. As A(x,y) preferably is a constant value over the entire surface of the encoder, the term is left out of the following equations for simplicity. The expression of the electromagnetic radiation incident on the spatial phase filter may now be separated into an AC-term and a DC-term. If the DC-term of the field is denoted {overscore (α)}, the AC-term of the field is given by the term ei{overscore (α)}(x,y)-{overscore (α)}. Since the spatial phase filter changes the phase of the DC-part of the electromagnetic radiation by θ, the intensity of the reconstructed intensity pattern at the image plane of the imaging system is given by: wherein (x′,y′) is the co-ordinates of the image of the resolution element (x,y) of the encoder formed by the imaging system in the image plane. It should be noted that the second term of the equation is a complex number that adds to the phasors eiφ(x,y) of the encoder and may be interpreted as a contrast control parameter or the reconstructed intensity pattern I(x′,y′). According to a preferred embodiment of the invention, the average value of the phasors is adjusted in order to control the range of intensity levels. Instead of phase shifting the DC-part of the electromagnetic radiation, it is also possible to synthesise a prescribed intensity pattern by phase shifting other parts of the electromagnetic radiation by adapting the spatial phase filter to phase shift electromagnetic radiation incident upon one or more arbitrary regions of the phase filter and leaving the phase of the remaining part of the electromagnetic radiation unchanged and then superimposing the two parts of the electromagnetic radiation. The corresponding mathematics and the corresponding design procedures for the encoder and spatial phase filter will of course be more complicated than for the method described in the previous section. A simple example of phase shifting a part of the electromagnetic radiation of a spatial frequency different from the zero frequency is provided by moving the DC-part of the electromagnetic radiation to another spatial frequency in the Fourier plane (identical to the plane of the spatial phase filter) utilising an optical component with an appropriate carrier frequency (i.e. a grating or a prism) or, preferably, encoding the function of a grating or a prism into the encoder, and adapting the spatial phase filter to change the phase of the electromagnetic radiation at this spatial frequency and to leave the phase of the remaining part of the electromagnetic radiation unchanged. According to another preferred embodiment of the invention, the encoder is not positioned in the back focal plane of the lens but in the Fresnel region of the lens instead. In this case, the electromagnetic field at the phase filter will be given by a Fresnel transformation of the electromagnetic field at the encoder. This further complicates the mathematics and the design procedures, for example the term in equation (7) below has to be substituted by the value of the Fresnel transformation at the point(s) of phase changes of the phase filter. However, the Fresnel transformation may be calculated from a Fourier transformation by multiplication of the phasor values of the encoder by a quadratic phase factor followed by a Fourier transformation. It is an important aspect of the present invention that each intensity level of the reconstructed intensity pattern for each resolution element may be generated by at least two different phasor values of a resolution element of the encoder. For example, when the spatial phase filter phase shifts the DC-part of the electromagnetic radiation, it will be shown later that, advantageously, the average {overscore (α)} of the phasors of the resolution elements of the encoder should be equal to ½ and the value of the phase shift θ should be equal to π. In this case, the intensity of the reconstructed image pattern at the image (x′,y′) of the resolution element (x,y) will be given by: It is seen that complex conjugate phasors (values of φ of opposite sign) result in identical intensity levels I(x′,y′). It can be shown that for any value of the modulus of the average of the phasors |{overscore (α)}| two phasors exist that will generate identical intensity levels of the reconstructed intensity pattern. Further, if the spatial phase filter phase shifts parts of the electromagnetic radiation different from the DC-part, the phasor value that generates a specific intensity level will depend on the position of the resolution element in question, i.e. the phasor value and the position of the resolution element with that phasor value together define the intensity level at the image of the resolution element in the reconstructed intensity pattern. Still, it is true that for each resolution element of the encoder, each intensity level of the reconstructed intensity pattern may be represented by one of two different phasors of complementary phase values. This freedom of being able to select, for each intensity level to be generated and for each resolution element of the encoder, one of two phasors is used to control the phase of the Fourier transform of the phasors at specific spatial frequencies by selection of phasors with appropriate phase values to ensure two intervals of biunique functional dependence between phasor values and corresponding intensity values. This freedom of choice of phasors may be utilised to select phasors of neighbouring resolution elements of the encoder with a maximum difference between them, thereby generating an electromagnetic radiation emitted from the encoder with a maximum content of high spatial frequencies which will generate a good separation of the DC part of the electromagnetic radiation from its AC part. However, any other strategy of selecting between two possible phasor values of each resolution element may be chosen to generate a desired spatial frequency content of the electromagnetic radiation. Preferably, the phase of the Fourier transform of the phasors at specific spatial frequencies is adjusted in order to control whether the relation between each phasor and the corresponding intensity level is a monotonic increasing or a monotonic decreasing function. Below, a set of different steps that may be incorporated—either alone or in combination—into the method of encryption is described. They are provided according to the present a invention for adjustment of the modulus of the Fourier transform of the phasors at specific spatial frequencies to attain a prescribed value. According to one of the steps, the individual phasors of the resolution elements of the encoder are adjusted by a constant value until the desired value of the modulus of the Fourier transform of the phasors at specific spatial frequencies is attained while maintaining prescribed relative intensity levels between intensities of resolution elements of the intensity pattern, i.e. iteratively. According to another step, the individual phasors of the resolution elements of the encoder are adjusted utilising histogram techniques known from image processing. A histogram is a bar chart showing the number of resolution elements of the reconstructed intensity pattern with a specific intensity value as a function of the intensity value. Any histogram technique, such as histogram equalisation, adapting the histogram to a predetermined distribution, etc., may be used iteratively until the modulus of the Fourier transform of the phasors at specific spatial frequencies attain the prescribed value. According to yet another step, the phasor pattern of the encoder is spatially scaled in order to adjust the modulus of the Fourier transform of the phasors at specific spatial frequencies. According to still another step, the modulus of the Fourier transform of the phasors at specific spatial frequencies is adjusted utilising half tone coding techniques, such as raster techniques, area ratio modulation, spot diameter modulation, etc. Each complex phasor a(x,y)eiφ(x,y) of the encoder may be selected from a set of two determined phasors with complementary complex phasor values a(x,y)eiφ1(x,y) and a(x,y)eiφ2(x,y) in such a way that a specific spatial frequency distribution of the intensity of the electromagnetic radiation in the Fourier or Fresnel plane is attained. The phase φ(x,y) of complex phasors a(x,y)eiφ(x,y) of adjacent resolution elements may alternate between the two possible complementary complex phasor values a(x,y)eiφ1(x,y) and a(x,y)eiφ2(x,y). The complex phasors a(x,y)eiφ1(x,y) and a(x,y)eiφ2(x,y) may be complex conjugated. It is seen from the description above that the intensity levels may differ from one reconstructed intensity pattern to the next as a consequence of the adjustments of the modulus of the Fourier transform of the phasors at specific spatial frequencies. Thus, it is preferred to control the power of the radiation source in dependence of the intensity range of the intensity pattern so that a sequence of different intensity patterns shows uniform intensity levels. According to a preferred embodiment of the invention, the shape of the phase filter is adapted to match the spatial frequency content of the phasors of the encoder, e.g. to optimise the desired separation of the part of the electromagnetic radiation to be phase filtered from the remaining part of the electromagnetic radiation. It is within the scope of the present invention that the imaging system further comprises zooming means for variable scaling of the reconstructed intensity pattern. The zooming of the imaging system may be dynamically controllable, e.g. in response to the scaling of the pattern of phasor values of the encoder. According to the present invention, the power of the radiation source may be controllable in response to the spatial scaling of the pattern in the encoder and/or the zooming of the focusing system. In order to provide a compact and integrated system according to the present invention, the optical function of a Fourier-transforming lens is encoded into the phasors of the encoder. The Fourier transforming lens may be refractively or diffractively encoded. Similarly, the optical function of an output lens may be encoded into the phase filter either refractively or diffractively. Further, compensation may be encoded into the phasor values of the encoder so that part of the electromagnetic radiation modulated by the encoder has a substantially flat intensity profile in the image plane. Without this compensation, part of the electromagnetic radiation modulated by the encoder will have a flat profile with perturbations resulting from the phase filtering superpositioned upon it. This may cause "ringings" (oscillations) at the edges of the reconstructed intensity pattern. According to another preferred embodiment of the invention, the source of electromagnetic radiation comprises one or more light sources of different wavelengths corresponding to three different colours, such as red, green and blue, for generation of intensity patterns of arbitrary colours. Further, several independent systems each one illuminated by its own wavelength can be combined into a single multi-wavelength system. According to yet another preferred embodiment of the present invention, the phasor values of the resolution elements of the mask and the electromagnetic radiation modulator are binary, i.e. each phasor value is selected from a set constituted by two values, for example 1 and -1 (corresponding to phase values 0 and π, respectively). It is further preferred that the random distribution of the decrypting binary phasor values is uniform. It is also preferred that the binary values are selected so that encryption and decryption correspond to a binary XOR logical operation since the XOR operation provides maximum ambiguity as to which inputs generate a specific output. It is even more preferred that there is no spatial correlation between resolution elements in the encoded, non-encrypted phase pattern. The reconstructed intensity pattern I(x′,y′) may be detected by a camera, such as a CCD camera, and the recorded image may be transmitted to a computer for recognition of the image I(x′,y′) and thus, authentication of the encrypted mask. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 shows a 4f common path interferometer, FIG. 2 shows a 2f common path interferometer, FIG. 3 shows a 1f common path interferometer, FIG. 4 shows (A) off-axis read-out of reflective SLM and (B) on-axis read-out of reflective SLM, FIG. 5 shows schematically an example of a prescribed intensity pattern in 1D, FIG. 6 shows schematically the resulting phase encoding corresponding to FIG. 5, FIG. 7 illustrates a binary phase image encryption method according to the present invention, FIG. 8 illustrates a binary phase image decryption method according to the present invention, and FIG. 9 illustrates alignment of an encrypted phase mask and a decrypting phase mask. DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS FIG. 1 shows a 4f common path interferometer 1. A laser 2 emits a light beam which is expanded by a beam expander 3 into a plane light wave of uniform intensity and directs it towards an encoder 4, i.e. a combination of an encrypted mask 4a and a decrypting complex spatial electromagnetic radiation modulator 4b. The light beam is transmitted through the encoder 4 and a Fourier transforming lens 5. The encoder 4 is positioned in the front focal plane of the lens 5 and a spatial filter 6 is positioned in the back focal plane of the lens 5 that is also the front focal plane of a lens 7. The Fourier transforming lenses 5, 7 need not have identical focal lengths. Different focal lengths lead to a magnification ratio different from one. The filter 6 phase shifts by θ and optionally attenuates (by a factor B) the zero order diffraction part 8 of the light modulated by the encoder 4. Optionally, the remaining diffraction part of the light modulated by the encoder 4 may be attenuated by a factor A. The reconstructed intensity pattern is generated in the back focal plane 9 of the lens 7 and a dynamic focusing system 10 images the reconstructed intensity pattern I(x′,y′) onto a focusing plane 11. The reconstructed intensity pattern I(x′,y′) may be detected by a camera, such as a CCD camera, and the recorded image may be transmitted to a computer 12 for recognition of the image I(x′,y′) and thus, authentication of the encrypted mask 4a. The computer 12 controls the optical system. The computer 12 comprises interface means for addressing each of the resolution elements of the complex spatial electromagnetic radiation modulator 4b and transmitting a decrypting value to the addressed resolution element Alternatively, the complex spatial electromagnetic radiation modulator 4b may be a fixed mask i.e. a mask manufactured with fixed modulating values of the resolution elements. Optionally, the phase shift θ and attenuation factors (A, B) of the filter 6 is adjustable and controllable by optional phase control means of the computer 12 which may be further adapted to adjust the phase shift, e.g. utilising equation 18. FIG. 2 shows a 2f common path interferometer 20. A laser 21 emits a light beam which is expanded by a beam expander 22 into a plane light wave of uniform intensity and directs it towards an encoder 23, i.e. a combination of an encrypted mask 23a and a complex spatial electromagnetic radiation modulator 23b and a polarisation beam splitter 24 and a quarter-wave plate 25. The polarisation beam splitter 24 and the quarter-wave plate 25 allows beam-splitting of light of a specific linear polarisation without the power loss associated with conventional beam-splitters due to splitting of the beam in both directions of transmission through the beam-splitter. After transmission through the polarisation beam splitter 24 and the quarter-wave plate 25, the light beam is transmitted through a Fourier transforming lens 26 and is reflected from a spatial filter 27. The encoder 23 is positioned in the front focal plane of the lens 26 and the spatial filter 27 is positioned in the back focal plane of the lens 26. The filter 27 phase shifts by θ and optionally attenuates (by a factor B) the zero order diffraction part 28 of the light modulated by the encoder 23. Optionally, the remaining diffraction part of the light modulated by the encoder 23 may be attenuated by a factor A. The reconstructed intensity pattern I(x′,y′) is generated in the back focal plane 29 of the lens 26 and a dynamic focusing system 30 images the reconstructed intensity pattern I(x′,y′) onto a focusing plane 31. As described for the system shown in FIG. 1, the image I(x′,y′) may be detected with a camera and transmitted to a computer 32 for processing and authentication and the system 20 may also be controlled by the computer 32. FIG. 3 shows a 1f common path interferometer 40. A laser 41 emits a light beam which is expanded by a beam expander 42 into a plane light wave of uniform intensity and directs it towards an encoder 43, i.e. a combination of an encrypted mask 43a and a complex spatial electromagnetic radiation modulator 43b. The light beam is transmitted through the encoder 43 and an image forming lens 44. The filter 45 phase shifts by θ and optionally attenuates (by a factor B) the zero order diffraction part of the light modulated by the encoder 43. Optionally, the remaining diffraction part of the light modulated by the encoder 43 may be attenuated by a factor A. The reconstructed intensity pattern is generated in the image plane 46 of the lens 44 and a dynamic focusing system 47 images the reconstructed intensity pattern I(x′,y′) onto a focusing plane 48. As described for the system shown in FIG. 1, the image I(x′,y′) may be detected with a camera and transmitted to a computer 49 for processing and authentication and the system 40 may also be controlled by the computer 49. FIG. 4 shows details of (FIG. 4A) an off-axis read-out of an encoder 50 comprising a combination of a reflective mask 50a and a complex spatial electromagnetic radiation modulator 50b and of (FIG. 4B) an on-axis read-out of an encoder 51 comprising a combination of a reflective mask 51a and a complex spatial electromagnetic radiation modulator 51b with a beam splitter 52. Both configurations (FIG. 4A, FIG. 4B) may be utilised in the systems shown in FIGS. 1-3. Phase Encoding for Dc Phase Filtering In the following an example of encoding an encoder and a spatial phase filter will be given based on a system filtering in the DC-frequency range. The exemplified system is based on a 4-f lens configuration as shown in FIG. 1 and illuminated by electromagnetic radiation in the visible frequency domain, hereafter simply denoted as fight radiation. Assuming that the illuminating light is monochromatic and has a substantially flat amplitude profile we obtain the following spatial amplitude distribution emitted from the encoder ##EQU4## where α(x, y)=exp(iφ(x, y)) represent the spatially encoded phasor values and ΔxΔy is the area of the input phase modulating spatial light modulator. It turns out to be convenient to separate α(x, y) into two terms describing a spatially invariant DC-value, {overscore (α)}, and a spatially varying AC-contribution Δα(x, y). The DC-value can be found as: ##EQU5## Subsequently the AC-term is expressed by: ##EQU6## The separation of α(x, y) into a spatially invariant DC-term and a spatially varying AC-term is an important point and will be used throughout the remaining part of this example, specially in the description of the spatial filtering procedure. The spatial filter utilised in this example is chosen as a circular phase contrast filter (different transverse shapes can also be used) centred around origo in the spatial frequency domain, denoted by co-ordinates (fx, fy): ##EQU7## where fr=√{square root over (fx2+fy2)} denotes radial spatial frequency and Δfr, describes the size of the circular (circ) phase filter. In the spatial frequency domain (the filtering plane) the Fourier transformation (ℑ) of the spatially modulated light radiation from the encoder is present. The filtering operation on the Fourier transformed light radiation performed by the spatial phase contrast filter can be expressed as a simple point-by-point multiplication procedure. Subsequently the spatially filtered light is inverse Fourier transformed (ℑ-1) by the second Fourier lens (Fourier transformation and reflected output co-ordinates) and the resulting spatial amplitude distribution in the image plane (with co-ordinates (x′, y′)) can accordingly be written as: ##EQU8## Within the illumination-region, (x′,y′)ε outlined by ##EQU9## one obtains: ##EQU10## Requiring that |ο(xο′, yο′)|2≡0 corresponding to complete darkness as the lowest intensity level in regions (xο′, yο′)εο′ implies: ##EQU11## where the abbreviation φο=φ(xο′, yο′) has been used. The solutions to Eq. (7) are given by: ##EQU12## The requirement ο<|{overscore (α)}|<1 implies that: ##EQU13## leading to ##EQU14## where the +sign is for θ-values in the interval: ##EQU15## and the -sign is for θ-values: ##EQU16## The corresponding interval for (φ{overscore (α)}-φο) is: ##EQU17## Inserting the expression for |{overscore (α)}|, one obtains the simple intensity expression: ##EQU18## where ##EQU19## The phase-only transformations imply that energy is conserved: ##EQU20## A Special Case: The most convenient choice for {overscore (α)} is ##EQU21## implying that θ=π+peven2π), so that the output intensity can be described as: In this case the phase→intensity mapping is described by the intervals [0; π]→[0;4]. By setting ##EQU22## one obtains the following requirements to the phase function φ(x, y): ##EQU23## Inserting the expression for |ο(x′, y′)|2 in Eq. (16) yields: ##EQU24## in accordance with the first of the integral expressions in Eq. (18). Encoding Procedure:
EXAMPLE 1 A very simple example illustrating the individual steps in the above procedure will be given below. To simplify the example it will be considered in one dimension only. The starting point for encoding the encoder in this example is based on the following parameters: ##EQU28## Consider the pixellated 3-step function shown in FIG. 5 to be reconstructed in the image plane as an intensity distribution. From the above choices of parameters one obtains the simple relation between phase values in the encoder and the image intensity values: To proceed from here it necessary to calculate the accumulated intensity ##EQU29## in the image to be reconstructed. The accumulated intensity is easily calculated from an image histogram where the x-axis represents grey level value and the y-axis represents the amount of pixels in the image at a given grey level value. By use of a histogram ##EQU30## is simply found as the weighted sum of all grey level values x-axis) multiplied by their pixel counting (y-axis). This describes, so to speak, the "weight" of the image. In this simple example histogram calculations are not needed since we only have 3 grey levels with well-defined separations. The value for the accumulated intensity has to obey the equality: ##EQU31## From FIG. 5 we obtain: ##EQU32## So that the value for max can be estimated to be: ##EQU33## The corresponding adjusted intensity levels, |ο(i)|adj2, are therefore: 7/4, 7/8 and 0. These values can now be utilised to calculate the phase values of the encoder from the relation: ##EQU34## where from we obtain the three phase values: 1.45 rad. 0.97 rad and 0 rad. The last step needed in order to encode the encoder is that the following equality is fulfilled: ##EQU35## Since we have the choice to use complex conjugate phasor values (two phasors giving the same intensity level) many approaches can be taken from here. A simple approach is to flip every second phasor with its complex conjugate value as shown in FIG. 6. The final phase values used in the encoder are accordingly: ±1.45 rad. ±0.97 rad and 0 rad. As the last step we can check whether the criteria: {overscore (α)}=½, is actually fulfilled with the chosen phasor encoding: ##EQU36## General Phase Correction Procedure Integrated with the Phase Encoding In Eq. (6) we obtained an analytic relation between the phase values in the encoder and the resulting intensity distribution, within the region (x′, y′)ε′: ##EQU37## The analysis leading to the above relation was based on the assumption that |{overscore (α)}| is a constant value within the ′-domain. In other words, the following approximation was applied: ##EQU38## However, for certain spatial filter parameters the left-hand side of this expression will not be a space invariant constant value throughout the whole ′-domain but will instead manifest slowly variations/oscillations. This will introduce small errors in the final superposition between the phase filtered DC-value and the direct propagated AC-signal. In order to circumvent this problem a technique is needed that can counteract the distortions by use of phase-only encoding in the components already present in the system. In what follows a procedure for integrating pre-distortion that counteracts the above mentioned distortions will be described that is purely based on modifying the phasor values in the encoder at the input side of the system. The method can also counteract other types of distortions inherent in a practical implementation of the system. Furthermore, the method can be applied in systems filtering at other spatial frequencies than DC. Procedure: When encoding the input phase function it is helpful to have a ‘reverse’ equation, expressing the input phase distribution as a function of an adjusted (electronic) image grey-level distribution, Islm, addressing the input spatial light modulator: ##EQU39## where it has been taken into account that {overscore (α)}(x′, y′) is not considered as a constant but manifests a smooth oscillating behaviour within the optical image domain. The maximum value of Islm is denoted gmax. Now, one can derive a formula for the ‘grey-level correction’ ΔIslm(x′, y′) that one needs to apply in order to encode a phase function that compensates for the spatial variation of the average phase value {overscore (α)}(x′, y′): ##EQU40## where the second relation has been derived from the first by setting {overscore (α)}=½ and θ=π. By inserting the second relation in the first expression one gets: ##EQU41## This formula is however not directly useful because it is related to the histogram adjusted grey-level distribution denoted by Islm. One needs a formula that relates the above correction term to the ‘original’ input grey-level distribution I(x, y) that has not been modified by histogram adjustments. This is important since the effect of the grey-level corrections also have to be incorporated in the procedure of histogram adjustments. The histogram scaling gives: ##EQU42## where Imax and Islm,max are the maximum grey-level values occurring in the original and the adjusted electronic grey-level distributions respectively. Similarly, one can apply this relation to the intensity correction term ΔIslm and obtain: ##EQU43## resulting in: ##EQU44## In order to have ‘enough dynamic range’ in grey-levels for the correction tern one can derive an inequality from the above relation by using the fact that Ĩmax≦gmax: ##EQU45## Since the first term is the dominating term in the expression for the intensity correction it will in practice be sufficient just to have the much simpler corrections: ##EQU46## Binary Phase Image Encryption and Decryption Method FIG. 7 illustrates a binary phase image encryption method and FIG. 8 illustrates a binary phase image decryption method according to the present invention. In the illustrated example the modulating phase values are 0 or π. In FIGS. 7 and 8 bright resolution elements 100 have the phase shift value 0 and the dark resolution elements 101 have the phase shift value π. The encryption method comprises the steps of the decryption method comprises the step of reconstructing the image 103 by The decrypting step 4) may be performed by aligning the encrypted phase mask 105 and the decrypting phase mask 109 in one of the optical systems illustrated in FIGS. 1-3, whereby the original image 103 is reconstructed, e.g. for detection by a camera and recognition by a computer. It should be noted that in the above example, encrypting and decrypting phase values of corresponding resolution elements are identical. Utilisation of 0 and π as the binary phase values provides a particular robust encryption and decryption approach with a low sensitivity to perturbations of the masks because of the relatively large phase difference between the binary values of the mask. In the common path interferometer illustrated in FIG. 9, the decrypting mask 120b is a spatial light modulator with a modulating region that is larger than the encrypted phase mask 120a. Thus, the encrypted phase mask 120a and the decrypting mask 120b can be aligned electronically by appropriate control of the spatial light modulator 120b. For example, the encrypted mask may contain regions with non-encrypted patterns that are imaged onto the CCD detector array 121 for the purpose of alignment. The positions of the imaged alignment patterns are detected and the spatial light modulator 120b is subsequently controlled accordingly whereby the decrypting resolution elements of the light modulator 120b are aligned with the resolution elements of the encrypted phase mask 120a.
|
Same subclass
Same class |
||||||||||||||||||
