This application claims the right of priority under 35 U.S.C. §119 based on Australian Patent Application No. 2008261138, filed Dec. 19, 2008, which is incorporated by reference herein in its entirety as if fully set forth herein.
The present invention relates generally to optical measurement systems and, more particularly, to a method for measuring the spatial frequency response of an imaging system using phase shifting.
An imaging system consists of a device, or a group of devices, that captures or displays an image of a subject or object. Common forms of imaging systems include televisions, computer monitors and digital cameras.
The spatial frequency response (SFR) of an imaging system is a measure of the ability of the system to capture or reproduce the spatial details of an object. This can take a number of specific forms. For a spatially invariant imaging system, one commonly used form of spatial frequency response measure is the ‘optical transfer function’ (OTF). The OTF can be calculated as the Fourier transform of the point spread function (PSF), sometimes known as the impulse response function. The OTF is complex, consisting of a magnitude part (the modulation transfer function) and a phase part (the phase transfer function). The modulus of the OTF, called the modulation transfer function (MTF), is a measure of the effectiveness with which a device captures or represents different spatial frequencies without regard to any phase shifts that the system produces. This is often used instead of the OTF since it is easier to measure.
It is known that the MTF of an imaging system can be measured using a sine wave test pattern. The Fourier transform of the measured sine wave is calculated from a region of the test pattern, and the modulation amplitude is compared to the modulation amplitude of the input sine wave to calculate the modulation transfer function. However this approach relies on the imaging system being spatially invariant since the calculation of the MTF must use information from an extended region of the test pattern.
More commonly, MTF is measured using test patterns consisting of geometric shapes with high contrast sharp edges. This produces a measurement of the edge spread function (ESF). The gradient of the ESF normal to the edge gives the line spread function (LSF). The Fourier transform of the LSF is computed to obtain the MTF. However this approach also relies on the imaging system being spatially invariant since the calculation of the MTF must use information from an extended region of the test pattern.
If a system is not spatially invariant, which is often the case for real systems, then the OTF and MTF are not strictly defined. In the past, this situation has been handled only if the system is approximately spatially invariant over some local region. The OTF is then determined locally assuming spatial invariance over the region analysed, but the analysis requires relatively large regions to achieve accurate results. It is therefore only possible to determine the SFR at a limited number of locations and it is likely to be affected by any deviation from the assumed spatial invariance. What is desired is a spatially variable measure of SFR and a method whereby measurements can be made locally at a single point.
The presently disclosed arrangements address the disadvantages of the prior art by providing a method that measures the spatial frequency response of an imaging system using data taken from a single location in the imaging system. Furthermore the arrangements can recover both the magnitude and the phase of the SFR. If the imaging system is approximately spatially invariant, then the presently disclosed arrangements can take advantage of this to use data from an extended region, so as to reduce sensitivity to noise in the imaging system.
The present arrangements use a display device to display test patterns and an image capture device to capture the displayed patterns. These can be consumer grade devices. The SFR is measured of either the camera or display device or the combination of a camera and a display device. A group of test patterns with pre-determined or otherwise known properties are shown on a display device. The test patterns on the display device are captured by an image capture device and compared to the raw test patterns or the pre-determined properties of the raw test patterns to calculate the SFR of the system at one or more locations in the imaging system. The predetermined properties of the raw test patterns are comprised of the amplitudes, phase shifts and frequencies of the significant spatial frequency components in the raw test pattern.
In accordance with one aspect of the present disclosure, there is provided a method for measuring the spatial frequency response (SFR) of an imaging system including a display device and an image capture device, said method comprising the steps of:
displaying a sequence of displayable test pattern images on the display device, the sequence comprising a first test pattern image and at least two subsequent test pattern images, each of the displayable test pattern images including a test pattern having at least one sinusoidal pattern at one or more spatial frequencies such that a phase shift of the sinusoidal pattern has a plurality of pre-determined values;
capturing the displayed images with the image capture device to generate a corresponding sequence of captured test pattern images; and
comparing the captured test pattern images with the displayable test pattern images to calculate the SFR at a plurality of image locations in said imaging system at the one or more spatial frequencies.
Other aspects are disclosed.
At least one embodiment of the present invention will now be described with reference to the following drawings, in which:
A system 299 for the SFR measurements is shown in
As seen in
The computer module 201 typically includes at least one processor unit 205, and a memory unit 206 for example formed from semiconductor random access memory (RAM) and read only memory (ROM). The module 201 also includes a number of input/output (I/O) interfaces including an audio-video interface 207 that couples to the video display 214 and loudspeakers 217, an I/O interface 213 for the keyboard 202 and mouse 203 and optionally a joystick (not illustrated), and an interface 208 for the printer 215, and by which the connections 260 and 270 couple to the test pattern display device 280 and the imaging device 290 respectively. The computer module 201 also has a local network interface 211 which, via the connection 223, permits coupling of the computer system 200 to the network 220. The connection 223 may a telephone line, in which case the interface may be may be a traditional “dial-up” modem. Alternatively, where the connection 223 is a high capacity (e.g.: cable) connection, the interface 211 may be a broadband modem. A wireless modem may also be used for wireless connection to the network 220. The interface 211 may be formed by an Ethernet™ circuit card, a wireless Bluetooth™ or an IEEE 802.11 wireless arrangement.
The interfaces 208 and 213 may afford both serial and parallel connectivity, the former typically being implemented according to the Universal Serial Bus (USB) standards and having corresponding USB connectors (not illustrated). Storage devices 209 are provided and typically include a hard disk drive (HDD) 210. Other devices such as a floppy disk drive and a magnetic tape drive (not illustrated) may also be used. An optical disk drive 212 is typically provided to act as a non-volatile source of data. Portable memory devices, such optical disks (e.g.: CD-ROM, DVD), USB-RAM, and floppy disks for example may then be used as appropriate sources of data to the system 200.
The components 205 to 213 of the computer module 201 typically communicate via an interconnected bus 204 and in a manner which results in a conventional mode of operation of the computer system 200 known to those in the relevant art. Examples of computers on which the described arrangements can be practised include IBM-PC's and compatibles, Sun Sparcstations, Apple Mac™ or alike computer systems evolved therefrom.
Typically, the application programs discussed above are resident on the hard disk drive 210 and read and controlled in execution by the processor 205. Intermediate storage of such programs and any data fetched from the network 220 may be accomplished using the semiconductor memory 206, possibly in concert with the hard disk drive 210. In some instances, the application programs may be supplied to the user encoded on one or more CD-ROM and read via the corresponding drive 212, or alternatively may be read by the user from the networks 220 or 222. Still further, the software can also be loaded into the computer system 200 from other computer readable media. Computer readable storage media refers to any storage medium that participates in providing instructions and/or data to the computer system 200 for execution and/or processing. Examples of such media include floppy disks, magnetic tape, CD-ROM, a hard disk drive, a ROM or integrated circuit, a magneto-optical disk, or a computer readable card such as a PCMCIA card and the like, whether or not such devices are internal or external of the computer module 201. Examples of computer readable transmission media that may also participate in the provision of instructions and/or data include radio or infra-red transmission channels as well as a network connection to another computer or networked device, and the Internet or Intranets including e-mail transmissions and information recorded on Websites and the like.
The second part of the application programs and the corresponding code modules mentioned above may be executed to implement one or more graphical user interfaces (GUIs) to be rendered or otherwise represented upon the display 214. Through manipulation of the keyboard 202 and the mouse 203, a user of the computer system 200 and the applications may manipulate the interface to provide controlling commands and/or input to the applications associated with the GUI(s).
In general, both the test pattern display device 280 and the image capture device 290 can affect the SFR of the system 299. However if the SFR of one of the devices 280, 290 is known, then the presently disclosed arrangements can be used to measure the SFR of the whole system and then the effect of the SFR of the known device can be removed from the whole system SFR to reveal the SFR of the unknown device. In the system 299, the display 214 is that typically upon which any GUI is displayed for control of SFR measurements of the test pattern display device 280. This may be the case in a manufacturing plant where the display 280 forms a “device-under-test”, and the imaging device (camera) 290 has known parameters, including SFR values and the display 280 is conveyed in a production line scenario. Alternatively, where the imaging device 290 is the device under test and the display device 280 is fixed with known, SFR parameters, the display 214 could be omitted and any GUIs display on the device 280.
In general, both the test pattern display device 280 and the test pattern image capture device 290 will have gain defects that could interfere with the SFR measurement, and thus should be measured and corrected. These defects can be measured and corrected independently of the SFR measurement using well known methods. For the purposes of the present disclosure, it is possible to simply assume that the gain defects in the test pattern display device 280 and the image capture device 290 have been independently measured and corrected. However, in practice, real devices will not have been corrected and it is instructive to those seeking to implement the present method of SFR measurement to understand how this can be achieved without having a significant impact on the SFR measurement. To limit the complexity of the description, it is assumed that the image capture device 290 has been independently measured and incorporates corrections to effectively remove the effects of the gain defects in that device.
In correcting the gain defects in the test pattern display device 280 it is important to have a model of how those defects affect the displayed image, so that they may be properly measured and corrected. For the purpose of illustrating the general approach we assume that the test pattern display device 280 is well modelled by the display behaviour model 300 illustrated in
It should be understood in the following description that the flow chart 300 represents a model of what is understood to be happening in the display device to produce the gain defects and SFR of the device. It may not be under the control of the engineer testing the device. The purpose of the model is twofold: (i) to enable the engineer to measure the gain defects of the device independent of the SFR; and (ii) to allow the engineer to construct a suitable pre-correction to the raw test patterns so as to remove the effects of the gain defects while leaving the SFR of the device largely unchanged, enabling the SFR to be measured in subsequent measurement steps and processing steps (120, 130, 140, 150).
The model 300 accepts the test pattern to be displayed as input 305, and in step 310 applies a non-linear gain uniformly to all spatial locations. The model 300 then in step 320 applies a multiplicative spatially variable gain factor to the image. This represents a vignetting function, where “vignetting” is a term used to describe the reduction in intensity (amplitude) near the edges of an image. In step 330, the model 300 applies a spatially variable channel gain factor to each colour channel of the image. The model 300 then imposes the spatial frequency response (SFR) at step 340 before displaying the test pattern image on the display device 280.
Guided by this model of the internal behaviour of the display device 280, measurement of the gain defects first proceeds by measuring the vignetting and channel gain (illustrated in
The vignetting and channel gain are measured by a method 400 in which one or more spatially uniform white test patterns are displayed at step 405 on the display device 280, and which are captured at step 410 by the image capture device 290. The method 400 is desirably implement as an application program stored as software in the HDD 210 and executable by the processor 205 to output displayable pixel data for reproduction by the display 280 of the system 299. In step 415, the input images are registered to the captured images so that the effect of the vignetting and the channel gain can be identified with a particular position on the display 280. The recorded intensity at each pixel, averaged over all channels and normalised by the input intensity, is then calculated at step 420 by the processor 205 as a spatially variable vignette factor map which is output for storage, in the HDD 210, at step 430 for later use. The processor 205 then determines at step 440 the ratio of the recorded intensity for each channel of each pixel, normalised by the input intensity and divided by the vignette factor at each pixel, which is then also output for saving at step 450, in the HDD 210 for example, for later use.
For most electronic or optical systems, the relationship between input and output signals is not perfectly linear. This is called system non-linearity or system Gamma, where the name ‘Gamma’ comes from the exponential variable in the voltage-current relationship in a cathode ray tube display. System Gamma is important because it causes a linear input signal to become non-linear. For a sine input, system Gamma can deform the sine wave and create harmonics, which change the frequency components of the signal.
In the display 280 the effect of the non-linearity can be understood from its effect on simple spatially variable test patterns.
There are many different methods for measuring system Gamma. They mainly differ in the test patterns shown on the display devices. For example, patches with different gray levels may be used to step through all display intensity levels needed. Also, full screen images can also be used to avoid the vignetting error that might occur in the patch test pattern. Alternatively, ramps or other intensity varying patterns can also be applied to achieve the measurements with fewer test patterns. Regardless of the testing methods, the result is always a transfer function describing the relationship between the output and the input of the system.
In a preferred method, system gamma is measured using test patterns which contain linear ramps. Linear ramps provide a straightforward and fast way to measure the mapping of input gray level intensity to captured grey level intensity, but since the mapping is measured at different locations on the screen for different grey scale levels, this approach necessarily assumes that the non-linearity does not vary across the screen. The method also requires registration of the input image to the captured image and compensation for the measured gain defects of the display.
The measurement of the display non-linearity requires the camera and display to be set up in a physical configuration like that illustrated in
The measured gain defect data, arising from the processes of
The intensity distribution in the raw test patterns will depend on the details of the particular implementation. Some examples of sets of the intensity distributions in test pattern images are given in
The captured test patterns, acquired at step 120, by the image capture device 290, are used to determine the SFR in accordance with step 150 and detailed in
Firstly described is a general implementation of the method and the associated raw test pattern construction and analysis of the captured test pattern sequences. This is followed by a description of some more specialized implementations and the associated raw test pattern construction and captured test pattern analysis. In the general description and in the specialized implementations, the method returns a measure of the SFR for a single spatially localized region of the test patterns and for one or more spatial frequencies. The complete SFR is determined by repeating the process for a range of spatial locations, ρm, sufficient to capture the spatial variation in the SFR. If more spatial frequencies are required to fully characterise the spectral variation of the SFR of the display device the process is repeated for one or more further spatial frequencies.
The image capture process 120 produces a sequence of captured test patterns which are registered in the computer 200 at step 130 through a geometric transformation so that sample points in the raw test patterns correspond to sample points in the captured test patterns. This registration process may be as simple as aligning the camera 290 so that the image of the display 280 falls approximately in the centre of the field of the camera 290 and approximately fills the camera's field. The boundaries of the display captured test pattern can be used as reference points for the registration process. Provided changes in the SFR occur over a distance on the display 280 larger than the registration error resulting from this alignment process, a reliable and accurate SFR determination can be made. If the distance over which the SFR of the display 280 changes is smaller than the registration error, or the parameters of the input test pattern vary over distances smaller than the registration error then it may be necessary to incorporate some form of alignment features in the test patterns to improve registration between the input raw test patterns and captured test patterns.
The images of the displayed test patterns, captured by the camera 290, are stored in the computer 200 and then processed, according to an application, typically stored in the HDD 210, executed by the processor 205. This may involve using the local memory 206 as intermediate storage. The processing is typically performed on one or more intensity values of the displayed and captured pixels. That value may be a single color channel (Red, Green, or Blue), a combined value (e.g. R+G+B), or a luminance value. The description provided below is applicable to the independent processing of each color channel or to the processing of some combined signal drawn from a combination of the color channels after appropriate correction for channel gain defects.
In all implementations, the components in each raw test pattern are drawn from a set of pure sinusoidal components labelled n=1 . . . N, having spatial frequencies V, with each test pattern containing one or more of these pure sinusoidal components. For the analysis, each captured test pattern in the sequence is considered as a set of spatially local regions each centred around one of a number of locations ρm (m=1 . . . M). Since the analysis proceeds independently for each spatially local region, all of the parameters in the analysis can vary from one spatially local region to another and as such should be understood to have an implicit subscript index m. For the sake of readability, this index is omitted. Analysis proceeds by sampling the intensity at a set of spatial locations, rk (k=1 . . . K) distributed across the spatially local area centred at a selected location ρm. Samples from the same set of spatial locations are taken in each of the test patterns in the sequence labelled j=1 . . . J.
Over the spatially local region containing the K spatial locations, the background intensity in the raw test patterns is known and within some tolerance is the same for each of the K spatial locations but may be different for each of the J test patterns in the sequence. Similarly, over the spatial region containing the K spatial locations, the modulation amplitude of each sinusoidal component has a value which is known and, within some tolerance, is the same for each of the K spatial locations but may be different for each of the J test patterns in the sequence and may be different for each of the N spatial frequency components.
Since each spatially local region, the constructed intensity qj,k at the location in local region m test pattern j in the raw test pattern sequence will have the general form
in which the phase term
φj,k,n=2πvn·rk+ψj,n
contains a contribution 2πvn·rk, which is the spatially induced phase shift of the nth frequency component having spatial frequency vn and is the same in each test pattern in the test pattern sequence. The phase term also contains a contribution ψj,n, which is the imposed phase shift of the nth frequency component in the jth raw test pattern. The additive intensity Bj is the background intensity in the jth test pattern in the sequence and the factor Aj,n is the amplitude of the nth frequency component of the jth test pattern.
The effect of the SFR is to modify the observed intensity pj,k at the kth location of the jth image of the captured test pattern sequence by changing the phase and amplitude of each of the sinusoidal components and changing the additive intensity. These changes can be modelled as
in which C is constant additive intensity, (arising, for example, from ambient light or additive offsets in the electronics of the display), b is a constant factor by which the raw background intensity Bj is scaled as a result of the SFR of the display 280, αn is the constant factor by which the nth frequency component in the raw test pattern is scaled due to the SFR of the display 280, φn is the phase shift relative to the phase of the nth frequency component in the raw test pattern due to the SFR of the display 280 and εj,k is an additive noise term at the kth location in the jth captured test pattern. In all of the above the parameters pertain to the spatially local region but may vary from one spatially local region to another.
We can expand this as
If we consider the full set of intensity measurements for all images j=1 . . . J and for all locations k=1 . . . K, then we can model the selected local region in the captured test pattern sequence as
p=Ma+ε (4)
where
Because the input background intensities Bj and the amplitude modulations Aj,n are known and invariant within a given test image over the local region defined by the locations of the intensity samples in the set being analysed, these values will not be affected by the SFR of the display. All of the effect of the SFR will be contained in the vector a.
If JK>=2N+2, and the chosen phase shifts, φj,n, amplitudes, Aj,n, and background intensities, Bj, result in a non-singular, well-conditioned matrix, then the resulting set of linear equations for αn, βn and b can be solved. The choice of phase shifts, φj,n, is important in this process. There are many ways of choosing these phase shifts. Desirably, the phase shift of each component is chosen such that the sequence of phase shifts for each component form a linear sequence of the form
If JK>2N+1, a solution to Eqn. (4) can be achieved by the method of least squares. The least squares solution is obtained by solving a linear matrix equation for the vector a of the form
MTMa=MTp (6)
If JK=2N+1, the Matrix M will be square and if it is invertible, then the solution to Eqn. (6) can be calculated from
a=M−1p (7)
In either case the solution returns estimates of the parameters αn, βn and b and c.
The complex modulation amplitude μm, for the selected local region centred on ρm for each of the N spatial frequencies vn has the form:
noting that the parameters αn, βn, αn,b are specific to the local region centred on ρm.
The complex modulation in the raw test patterns can be calculated, either from the raw test patterns or from the parameters used to create the raw test patterns, as:
where, again, the parameters βn0, αn0, b0, are specific to the local region centred on ρm.
The Spatial Frequency Response Rm(vn), can then be determined from
This general method can be simplified by restricting the parameters J, N, K to form the basis of a number of more specialized implementations of the method which we will now describe. Each of these specialised implementation can be implemented using computer software code recorded on the HDD 210 and executable by the processor 205 operating on captured image data from the camera 290.
In one such specialised implementation of the method, the SFR is measured independently for each spatial frequency v with an independent sequence of test patterns created using only a single spatial frequency in the test pattern sequence (N=1) while the analysis of the captured test patterns uses the image intensity at a single location ρm (K=1). For this implementation, there must be no significant additive background term (c in Eqn. (4)) in the captured test patterns and the background term in the raw test patterns must be Bj=1 and the amplitude of each of the spatial frequency components in the raw test patterns must be set to Aj,n=1. The intensities at the same set of spatial locations from each of the phase shifted images are used to perform the data analysis. The present inventors have called this implementation “single-frequency single-pixel phase shifting”.
In this specialised implementation of the method, Eqn. (2) simplifies so that the local intensity, pj, at a given spatial location in the jth captured test pattern, is modelled as:
p
j=b+a sin(φ+ψj)+εj (11)
where φ is the unknown part of the phase, ψj is the imposed phase shift in the jth raw test pattern, a is the amplitude of the sinusoidal component in the captured test patterns, b is the intensity offset in the captured test patterns and εj is the additive noise in the jth image. Because we are considering only one location and using only one spatial frequency in the raw test patterns, the unknown part of the phase, φ, contains both the contribution due to the spatial frequency of the single frequency component in the raw test pattern and the phase shift due to the effects of the SFR.
The full system of equations for the spatially local region under consideration and for all test patterns in the sequence will have the same form as Eqn. (4) but now
Provided J>=3 and the chosen phase shifts ψj (preferably chosen using phase shifts defined by Eqn. (5)) result in a non-singular, well conditioned matrix, the resulting set of linear equations can be solved for α, β and b. The complex modulation is again defined in a similar manner to Eqn. (8)
except that now the phase φ now contains the phase due to the linear spatial phase variation of the single frequency component. However, the SFR calculates the ratio of the complex modulation in the captured test patterns sequence and the complex modulation in the captured test patterns sequence according to Eqn. (10). Provided the registration process accurately relates the coordinates in the captured test pattern sequence to the coordinates in the raw test pattern sequence, this will eliminate the phase due to the linear spatial phase variation of the single frequency component.
There is considerable freedom in the choice of both the number of test patterns in the sequence, and the set of phase shifts ψj to be applied to each image in the sequence to be displayed, and implementations may comprise a wide range of permutations and combinations of these features. At least three images are required (i.e. J>=3) for the system of equations defined by Eqns. (4) and (12) to be solvable.
With three test patterns in the sequence (J=3), and evenly spaced incremental pre-determined phase shifts of 0, 2π/3, 4π/3 from the preceding image, Eqn. (4), neglecting the noise term, becomes
which can be solved exactly to give
From this and Eqn. (13), it is possible to calculate the complex modulation in terms of the measured pixel intensities as
and the complex modulation in the raw test patterns can be calculated with either the values of α, β,b used in creating the raw test patterns or corresponding pixel intensity values from the raw test pattern sequence for the selected spatial frequency and spatial location. The ratio of the complex modulation in the captured test patterns and the complex modulation in the raw test patterns for the selected spatial frequency spatial location can then be used to calculate the SFR using Eqn. (10) as
Other choices of sequences of phase shifts are also possible. For example, four evenly spaced phase shifted test patterns (J=4), with phase shifts of 0, π/2, π, 3π/2 can be used for each spatial frequency, so that Eqn. (4) becomes
which can be solved in a least squares sense using Eqn. (6) to give
The complex modulation can then be calculated in terms of the measured pixel intensities as:
and the, complex modulation in the raw test patterns can be calculated with either the values of α, β,b used in creating the raw test patterns or pixel intensity values from the raw test pattern sequence for the selected spatial frequency and spatial location. The SFR will again be of the form in Eqn. (17)
In another specialised implementation of the method, the SFR is measured independently for each spatial frequency v with an independent sequence of test patterns created using only a spatial frequency for each test pattern sequence (N=1) but the analysis of the captured test patterns at a given spatially local area centred at a selected location ρm uses the image intensities at multiple spatial locations (K>1) within the spatially local region over which the SFR could be considered constant. This could actually be the same sequence used in the single frequency single pixel methods described above. For this implementation, there must be no significant additive background term (c in Eqn. (4)) in the captured test patterns and the background term in the raw test patterns must be Bj=1 and the amplitude of each of the spatial frequency components in the raw test patterns must be set to Aj,n=1. The intensity is sampled at the same set of spatial locations from each of the test patterns in the sequence. The present inventors have called this implementation “single-frequency multi-pixel phase shifting”.
Using multiple spatial locations has the advantage of reducing the noise in the measured SFR. However, because the phase of the sinusoids will vary with position in the image, it is necessary to determine the spatial frequency in order to account for the spatially induced phase shift at each location. This can be achieved by any of a number of standard means of frequency estimation. One preferred method to estimate the spatial frequency is to first measure the phase at each location using one of the single pixel implementations described above, and then to use this measurement of the phase as a function of pixel location to estimate the spatial frequency. Once the spatial frequency is known, a more accurate determination of the SFR using the intensities at multiple spatial locations is possible.
In this specialised implementation of the method, Eqn. (2) simplifies so that the captured pixel intensity pj,k for the kth pixel in the jth image is modelled as
p
j,k=b+α sin(φj,k+φ)+εj,k (21)
where φ is the unknown part of the phase and φj,k=2πv·rk+ψj is the pre-determined part of the phase consisting of the imposed phase shift ψj in the jth image and the spatially induced phase shift at location rk; a is the amplitude of the nth spatial frequency component; b is an intensity offset, and εj,k is the additive noise at the kth pixel in the jth image. This can be expanded to give
p
j,k
=b+α sin(φ)cos(φj,k)+α cos(φ)sin(φj,k)+εj,k (22)
The full system of equations for the spatially local region under consideration and for all test patterns in the sequence will have the same form as Eqn. (4) but now
If JK>=3 and the chosen phase shifts ψj (preferably chosen using phase shifts defined by Eqn. (5)) result in a non-singular, well conditioned matrix, then the resulting set of linear equations can be solved for α, β and b.
If JK>3, a least squares solution for a can again be obtained by solving Eqn. (6), and if JK=3, then the linear system can be solved using Eqn. (7). The complex modulation in the captured test patterns sequence is then determined in terms of the recovered parameters α, β, b using Eqn. (13). The resulting complex modulation is interpreted as corresponding to the location ρm around which the K intensity samples are obtained. The, complex modulation in the raw test patterns can be calculated with either the values of α, β,b used in creating the raw test patterns or pixel intensity values from the raw test pattern sequence for the selected spatial frequency and spatial location. The SFR for the selected location at the chosen spatial frequency will again be the ratio of the complex modulation in the captured and raw test pattern sequences of the form in Eqn. (10).
In another specialised implementation of the method, the SFR is measured for multiple spatial frequencies vn (n=1 . . . N, N>1) in a single set of raw test patterns, while the analysis of the captured test patterns uses the image intensity at a single location ρm (K=1). For this implementation, there must be no significant additive background term (c in Eqn. (4)) in the captured test patterns and the background term in the raw test patterns must be Bj=1 and the amplitude of each of the spatial frequency components in the raw test patterns must be set to Aj,n=1. The intensities at the same set of spatial locations from each of the phase shifted images are used to perform the data analysis. The present inventors have called this implementation “multi-frequency single-pixel phase shifting”.
In this specialised implementation of the method, Eqn. (2) simplifies so that the captured pixel intensity p3 at the selected location ρm in test pattern j is modelled as:
where φn is the unknown part of the phase of the nth spatial frequency component; ψj,n is the pre-determined imposed phase shift of the nth frequency component in the jth test pattern; b is the intensity offset; an is the amplitude of the nth spatial frequency component and εj is the additive noise at selected location in the jth image. This can be expanded to give
The full system of equations for the spatially local region under consideration and for all test patterns in the sequence will have the same form as Eqn. (4) but now
If J>=2N+1 and the chosen phase shifts ψj,n (preferably chosen using phase shifts defined by Eqn. (5)) result in a non-singular, well conditioned matrix, then the resulting set of linear equations can be solved for {αn, βn}, b (n=1 . . . N).
If J>2N+1, a least squares solution for a can again be obtained by solving Eqn. (6), and if J=2N+1, then the linear system can be solved using Eqn. (7). The complex modulation in the captured test patterns sequence is then determined in terms of the recovered parameters {αn, βn}, b (n=1 . . . N) using Eqn. (13). The resulting complex modulation is interpreted as corresponding to the location ρm around which the K intensity samples are obtained. The, complex modulation in the raw test patterns can be calculated with either the values of {αn, βn}, b used in creating the raw test patterns or pixel intensity values from the raw test pattern sequence for the selected spatial frequency and spatial location. The SFR for the selected location at the chosen spatial frequencies will again be the ratio of the complex modulation in the captured and raw test pattern sequences of the form in Eqn. (10).
In another specialised implementation of the method, the SFR is measured for multiple spatial frequencies vn (n=1 . . . N, N>1) in a single set of raw test patterns, but the analysis of the captured test patterns at a given spatially local area centred at a selected location ρm uses the image intensities at multiple spatial locations (K>1) within the spatially local region over which the SFR could be considered constant. This could actually be the same sequence used in the “multi-frequency single-pixel” method described above. For this implementation, there must be no significant additive background term (c in Eqn. (4)) in the captured test patterns and the background term in the raw test patterns must be set to Bj=1 and the amplitude of each of the spatial frequency components in the raw test patterns must be set to Aj,n=1. The intensity is sampled at the same set of spatial locations from each of the test patterns in the sequence. The present inventors have called this implementation “multi-frequency multi-pixel phase shifting”.
Using multiple spatial locations has the advantage of reducing the noise in the measured SFR. However, as with the “single-frequency multi pixel” implementation, the local spatial frequency must be determined in order to account for the spatially induced phase shift at each location, which will now be different for each spatial frequency component. This can be achieved by a number of standard means of frequency estimation. One preferred method to estimate the spatial frequency is to first measure the phase at each location using the “multi-frequency single pixel” implementation described above, which will return a measurement of the phase of each of the components as a function of pixel location. These measurements can then be used to estimate the spatial frequency. Once the spatial frequency is known, a more accurate determination of the SFR using the intensities at multiple spatial locations is possible.
In this specialised implementation of the method, Eqn. (2) simplifies so that the captured pixel intensity for the kth spatial location in the jth image is modelled as
where φn is the unknown part of the phase of the nth spatial frequency component and φj,k,n=2πvn·rk+φj,n is the pre-determined part of the phase shift consisting of the imposed phase shift ψj,n for the nth spatial frequency vn in the jth image and the phase due to the spatially induced phase shift of that frequency component at location rk; an is the amplitude of the nth spatial frequency component; b is an intensity offset, and εj,k is the additive noise at the kth pixel in the jth image.
This can be expanded to give
The full system of equations for the single location under consideration and for all test patterns in the sequence will have the same form as Eqn. (4), but now
If JK>=2N+1 and the chosen phase shifts ψj,n (preferably chosen using phase shifts defined by Eqn. (5)) result in a non-singular, well conditioned matrix, then the resulting set of linear equations can be solved for {αn, βn}, b (n=1 . . . N).
If JK>2N+1, a least squares solution for a can again be obtained by solving Eqn. (6), and if JK=2N+1, then the linear system can be solved using Eqn. (7). The complex modulation in the captured test patterns sequence is then determined in terms of the recovered parameters {αn, βn}, b (n=1 . . . N) using Eqn. (13). The resulting complex modulation is interpreted as corresponding to the location ρm around which the K intensity samples are obtained. The, complex modulation in the raw test patterns can be calculated with either the values of {αn, βn}, b used in creating the raw test patterns or pixel intensity values from the raw test pattern sequence for the selected spatial frequency and spatial location. The SFR for the selected location at the chosen spatial frequencies will again be the ratio of the complex modulation in the captured and raw test pattern sequences of the form in Eqn. (10).
In another specialised implementation of the method, the SFR is measured for multiple spatial frequencies vn (n=1 . . . N, N>1) in a set of raw test patterns, while the analysis of the captured test patterns uses the image intensity at a single location ρm (K=1). This implementation allows for the effects of ambient light and it allows the background intensity term and the amplitude modulation of each sinusoidal component in the raw test patterns to be independently scaled in the captured test patterns by the effects of the SFR. The intensities at the same spatial location from each of the phase shifted images are used in the data analysis. The present inventors have called this implementation “multi-frequency, single-pixel phase and amplitude shifting”.
The local intensity at location ρm in the captured image j is modelled as:
where c is an additive background intensity term (such as ambient background light or electronic offset in the image sensor), Bj is an imposed background amplitude added to each image in the sequence, b is the multiplicative intensity scaling, Aj,n is the input amplitude of the nth frequency component in the jth image, an is the amplitude modulation factor for the nth spatial frequency component, φn is the unknown part of the phase for the nth spatial frequency vn and ψj,n is the pre-determined phase shift for the nth spatial frequency component in the jth image. This can be expanded as
The full system of equations for the single location under consideration and for all test patterns in the sequence will have the same form as Eqn. (4), but now
If J>=2N+2, and the chosen values of the phase shifts ψj,n, the amplitudes Aj,n and the offsets Bj result in a non-singular, well-conditioned matrix, then the resulting set of linear equations can be solved for αn, βn and b and c.
If J>2N+2, a least squares solution for a can again be obtained by solving Eqn. (6), and if J=2N+2, then the linear system can be solved using Eqn. (7). The complex modulation in the captured test patterns sequence is then determined in terms of the recovered parameters {αn, βn},b (n=1 . . . N) using Eqn. (13). The resulting complex modulation is interpreted as corresponding to the location ρm around which the K intensity samples are obtained. The, complex modulation in the raw test patterns can be calculated with either the values of {αn, βn}, b used in creating the raw test patterns or pixel intensity values from the raw test pattern sequence for the selected spatial frequency and spatial location. The SFR for the selected location at the chosen spatial frequencies will again be the ratio of the complex modulation in the captured and raw test pattern sequences of the form in Eqn. (10).
The process used in generating the raw test patterns in step 800 (
For single-frequency test patterns, a process 800A for generating the raw test patterns is described in detail in
For multi-frequency test patterns, a process 800B is described in detail in
The test patterns may be stored in a buffer (e.g. HDD 210) prior to output for reproduction on the display 280. Alternatively, the test patterns may be generated on-the-fly by the processor 205 and output on a pixel by pixel basis in raster scan order for display.
Detail of the data processing procedure of step 150 is described in
R(v,r)=A(v,r)ei(P(v,r)) (29)
The Phase Response of the display screen 280, calculated at step 1120 is saved step 1130, in the HDD 210 for example, for later use. The Amplitude Response of the display screen 280, calculated at step 1140 is saved at step 1150, in the HDD 210 for example, for later use.
For single-frequency test patterns, the analysis follows a process 1110A detailed in
The intensity profile over a small subregion of the test patterns from phase shifted single frequency sequences for two spatial frequencies are shown in
For multi-frequency test patterns, the analysis follows a process 1110B detailed in
The intensity profile over a small subregion of the test patterns from a typical phase shifted multi-frequency sequence are shown in
Some of the implementations discussed above allow measurements of the SFR for a single pixel location (the single-pixel implementations), while others allow multiple spatial locations within a small region around the location to be used in calculating the SFR for a given location on the screen (the multi-pixel implementations). The single pixel implementations require more phase shifted images to be compared to achieve a given error variance in SFR for a given noise variance in the test pattern images, but offer higher spatial resolution of the SFR. The multi-pixel implementations require comparing of fewer phase shifted images to achieve the error variance in SFR for a given noise variance in the test pattern images, but do so at the cost of reducing the spatial resolution of the SFR. This ability to trade off the spatial resolution of the SFR against error variance in the SFR during the data processing stage is seen as a significant advantage of the presently disclosed arrangements over the existing art.
Ambient light falling on the display 280 can have an adverse effect on measurements. It is most desirable to remove the source of ambient light and take all measurement in a darkened environment with blackened walls. However this may not always be possible. When this is not possible, a measurement should be made of the ambient light levels by, for example, taking a image of the display 280 when it is turned off. This “ambient” test pattern image could then be subtracted from any captured test patterns to remove the effects of ambient light. It is also possible to estimate the ambient light by allowing for it in the system of equations, as is the case in the “multi-frequency, single-pixel phase and amplitude shifting” implementation described above.
In all of the arrangements and implementations described, the Spatial Frequency Response is calculated by taking the ratio of the Complex Modulation in the captured test pattern sequence to the Complex Modulation in the raw test pattern sequence. It is not intended that the present disclosure be limited to this particular measure of SFR and any other measures of the SFR based on the measured phase and amplitude of spatial frequency components in the test patterns sequence could be used.
The arrangements described are applicable to the computer and data processing industries and particularly for obtaining measures for the performance of optical systems including displays and imaging devices to thereby determine the performance of at least one of a display or an imaging device.
The foregoing describes only some embodiments of the present invention, and modifications and/or changes can be made thereto without departing from the scope and spirit of the invention, the embodiments being illustrative and not restrictive.
Number | Date | Country | Kind |
---|---|---|---|
2008261138 | Dec 2008 | AU | national |