This application claims the benefit under 35 U.S.C. §119 of the filing date of Australian Patent Application No. 2014259516, filed Nov. 6, 2014, hereby incorporated by reference in its entirety as if fully set forth herein.
The present invention relates generally to the field of spatial demodulation for fringe analysis, where two or more fringe frequencies or orientations are used within an image. In particular, described are methods to assist with the demodulation of two-dimensional sets of fringes associated with an X-ray moiré device, and in which undesirable off-axis frequencies appear in conjunction with the desirable frequencies containing signal content.
Currently there are two main approaches to the demodulation of X-ray Talbot moiré interferograms. The first approach is by (temporal) phase-shifting algorithms (also known as multi-shot algorithms). The second approach is by one-shot demodulation algorithms. This description considers demodulation from single (one-shot) fringe patterns produced by an X-ray Talbot interferometer of the type schematically shown in
The field of fringe analysis is concerned with the demodulation of one or more images of fringe patterns, where each image includes a summation of at least one sinusoidal fringes, with each fringe having a different phase in each image. Such images take the form:
where Ii is a captured two-dimensional image indexed by the coordinate vector r=(x,y) containing intensity values obtained from a summation of sinusoidal fringes, with i representing an image number, 1≦i≦n, Si represents a non-sinusoidal noise image, A represents a positive intensity image, and j represents a fringe number, 1≦j≦k. Each fringe is represented by a usually-positive modulation amplitude image mj, a phase image Φi, and a real number φij, being a phase offset for a fringe j in the image i.
The images Ii can be assumed to be two-dimensional for explanatory purposes, but there is no reason to limit the dimensionality, and this specification is applicable for two or more dimensions.
The fringes can be created through a variety of means, such as projected sinusoids, imaged test patterns, interference patterns of coherent sources, or moiré patterns. The images can be composed of visible light, X-rays, audio waves or any other source of information that can be imaged in two or more dimensions.
The demodulation process is the recovery, from the set of images Ii, of the amplitude A, the modulation amplitudes mj and the phases ωj. The amplitude image has units representing the intensity of the illumination, where ωj is usually a positive, real, unitless amplitude function, with value smaller than 1.0, and ωi is the phase of a complex value (mj can in some circumstances be negative). The function ωi can usually be determined as only the fractional part of the total number of wavelengths, i.e. modulo 2π radians, and a phase unwrapping algorithm is used to reconstruct the total phase, which has excursions beyond this range, as a continuous function.
Using a phase-stepping algorithm it is possible to calculate these quantities directly by capturing multiple images in which the fringes contain different phase offsets φij and by using various techniques to, firstly, separate the k different fringe patterns from each other, and, secondly, to demodulate the real-valued fringe patterns to obtain the amplitude image mj and phase image ωj for all k fringes and for the two-dimentional coordinate values that are present in all images.
Capturing the required number of images to separate and demodulate the fringes can, in some applications, require excessive processing time and therefore not practicable. Furthermore, capturing many images can make the imaging system more sensitive to problems, such as subject motion. Thus it is desirable to perform demodulation using a smaller number of images, or even a single image. In these cases it is possible to take only a single image, or fewer than is required to directly separate the fringes, and use alternative means to extract the amplitude and phase images.
In the cases where the phase steps are not known at the time an image is taken, or the specific frequencies of the fringes are not known, those parameters can be measured by analyzing the images using the Fourier Transform, or by other techniques. Assuming that the fringe patterns are properly band-limited, i.e. the image of each fringe pattern in the Fourier transform is localized to non-overlapping regions of the Fourier transform, the fringe patterns can be separated by any of a number of techniques which isolates the fringes based upon their frequencies. However, there are several effects which can cause ambiguity in the solution and limit the effectiveness of such methods:
Firstly, a signal is generally modulated onto a carrier frequency by amplitude and phase modulation. This modulation causes a spreading of the signal in the Fourier domain, and it is usually not possible to limit the bandwidth of the resulting fringe pattern. If the bandwidth of a signal is larger than the spacing between that signal and neighbouring signals in the Fourier domain, the signal will overlap with the other, neighbouring, signals. When two signals overlap in the spatial domain and the Fourier domain, only their sum is detectable and it is usually not possible to separate fringes using Fourier or spatial techniques without knowledge of further constraints related to the signal generation process.
Secondly, the signal generation process itself might lead to the creation of more frequencies than is desirable. For example, where an imaging system generates fringes by a moiré pattern resulting from the combination of two crossed gratings, the spectrum of the resulting image matches that of the spectrum of the grating, which can be significantly broader than an ideal sinusoidal fringe.
Thirdly, where a modulating frequency does not produce an exact number of wavelengths across the area of the imaging sensor, the corresponding Fourier transform produces a sinc function which drops relatively slowly away from the centre (carrier) frequency, and hence covers the full spectrum to some extent.
Fourthly, a real cosine function produces two images (called a “Hermitian pair”) in the Fourier domain, symmetrical about the origin and with Hermitian symmetry. However, again, if the bandwidth of the phase function is too large, then the two Hermitian pairs will overlap, resulting in further ambiguity.
The combination of all of these effects can result in different signals overlapping in the Fourier domain, which is cross-talk. A failure to properly separate these overlapping signals results in signals becoming intermixed during demodulation, which results in distortion.
Naïve demodulation methods separate different signals in the frequency spectrum by a combination of filtering in the spectral domain and in the spatial domain, and demodulation of a carrier frequency by multiplication with a complex frequency in the spatial domain or equivalently the shifting of a window in the spectral domain from the carrier frequency to the origin.
However, these methods cannot account for overlapping signals, and thus do not remove the distortion due to cross-talk.
Presently disclosed are methods directed towards using a nonlinear function on a fringe image to suppress off-axis terms, in order to allow on-axis fringes to be separated. Another nonlinear function can be used to remove the harmonics which result from the first nonlinear function.
According to one aspect of the present disclosure, there is provided a method of demodulating an image captured from an imaging system having at least one two-dimensional grating, the captured image comprising a phase modulated fringe pattern comprising cross-term phase components resulting from presence of the at least one two-dimensional grating, the method comprising:
determining parameters of at least a first non-linear transformation for attenuating the cross-term phase components, wherein the parameters of the first non-linear transformation are determined for the imaging system to reduce artefacts in a demodulated image introduced by the cross-term phase components; and
demodulating the captured image by applying at least the first non-linear transformation with the determined parameters to the captured image to attenuate the cross-term phase components.
Desirably the determining of parameters of the first non-linear transformation comprises:
determining a ratio between a magnitude of the cross-term and a magnitude of on-axis phase components for a calibration image captured using the imaging system; and
determining parameters of the non-linear transformations using the determined ratio.
The determining of parameters may further comprise:
establishing a parameterised non-linear transformation to reduce impact of the cross-term phase components for further demodulation;
receiving a plurality of reference images captured with the imaging system of a phase modulated fringe pattern comprising cross-term phase components;
first demodulating the reference images using a multi-shot demodulation method to produce a reference demodulated image;
identifying initial parameters for the established parameterised non-linear transformation to form an initial non-linear transformation;
forming a candidate demodulated image by second demodulating one of the reference images using a single-shot demodulation method applied to the reference image transformed in accordance with the initial non-linear transformation; and
comparing the candidate demodulated image with the reference demodulated image to adjust parameters of the non-linear transformation.
In a specific implementation, the method repeats the second demodulating with the adjusted parameters to form a revised candidate demodulated image to reduce an error between the candidate demodulated image and the reference demodulated image. Preferably the second demodulating is repeated until the error falls below a predetermined limit.
Desirably, the adjusted parameters are utilised to reduce impact of cross-term phase components in demodulation of further images captured by the imaging system.
Advantageously, the demodulating of the captured image further comprises:
applying the first non-linear transformation to the captured image to produce a first image with attenuated the cross-term phase components; and
producing an x-phase image and a y-phase image by filtering from the first image, in Fourier domain, y and x terms of the first image respectively.
Preferably, this may further comprise:
establishing a second non-linear transformation configured for attenuating harmonics introduced by application of the first non-linear transformation to the captured image, wherein the second non-linear transformation is established by inverting the first non-linear transformation; and
applying the second non-linear transformation to each of the x-phase image and the y-phase image to attenuate harmonics introduced by operation of the first non-linear transform.
In another implementation, the filtering comprises:
transforming the first image into the Fourier domain;
applying at least one mask to the transformed first image; and
transforming the masked image into the spatial domain.
Desirably the applying comprises multiplying the transformed first image by a first mask to produce the x-phase image and by a second mask to produce the y-phase image. Preferably the at least one mask is adapted to remove predetermined frequency spectra from the image.
The method may further comprise subtracting a low frequency spectrum from the phase images to for separated fringe patterns.
Preferably the first non-linear transformation comprises an offset-logarithmic function. Advantageously the second non-linear transformation comprises an exponential transform.
Alternatively the first and second non-linear transformations comprise respective power functions.
Typically the imaging system comprises an X-ray interferometer system.
Other aspects are also disclosed.
At least one embodiment of the present invention will now be described with reference to the following drawings, in which:
The present disclosure relates to the demodulation of fringe patterns containing two or more groups of fringes, provided as one or more images. In the situation that the number of images captured is not sufficient to properly separate distinct fringe patterns, and where the frequency bands of the fringe patterns overlap, the demodulation problem becomes ambiguous. Therefore, the demodulated images can become distorted by cross-talk.
Many imaging systems can produce fringe images. One example is a two-dimensional X-ray Talbot (XT) image system.
Neglecting the complications of the Talbot effect, this pattern of dots in
The normal spectra of a grid-like grating is itself a grid, but due to filtering effects around each grid element, the moiré spectrum is substantially composed of only the DC component and the fundamental, with subsequent harmonics being of very low amplitude.
Thus, the moiré image is substantially composed of the summation of four phase- and amplitude-modulated cosine intensity functions, with one varying along the x axis, one varying along the y axis, and one each varying along the line (x+y) and (x−y) respectively, i.e. varying at angles of 0°, 90°, 45° and 135° respectively. Each of these cosine functions is attenuated by an absorption function.
The Fourier Transform is a change of basis which expresses a function or vector as the integration, or sum, of complex exponentials. The fringe patterns are constructed from the summation of real, as opposed to complex, functions, but each fringe pattern can also be expressed as the sum of two complex exponentials, thus (where i=√{square root over (−1)}):
The Fourier transform is easily extended to more than one dimension simply by computing the transform over any other dimensions separably, i.e. the Fourier transform of a 2D image is simply the Fourier transform of the columns of the Fourier transform of the rows.
If a real 2D fringe pattern is transformed to the Fourier domain, it can be expressed as the summation of two complex exponentials and will thus appear as two lobes, with Hermitian symmetry. If the two lobes do not overlap, then the frequencies representing either one of the complex exponentials can be extracted by zeroing the other lobe, and the inverse Fourier transform of this extracted lobe will give the fringe demodulated in quadrature with the phase extracted by means of a complex logarithm.
If the phase ω of the fringes is substantially a linear function and the amplitude is approximately constant, with w being the width of the image, h being the height of the image, and u, v being the number of wavelengths in the x, y directions respectively, then it is possible to define the two-dimensional (2D) frequency of the fringes as:
From the above, it will be appreciated that the phase function φ is linear and therefore close to a single frequency. The above function can be approximately expressed:
If each fringe frequency in the set of fringes is constant, a Fourier transform of the sum of the fringes will contain two delta functions at each position (u,v) and (−u,−v), with a phase of φ0 and −φ0 respectively.
By measuring the position of each peak of the Fourier transform, the carrier frequency of each fringe pattern can be estimated, and by measuring the phase of each peak, the phase offset of each fringe pattern can be estimated. By comparing the ratio of the amplitude of each peak to the amplitude of the DC position of the Fourier transform, then m can be estimated, i.e. m≈|a|/|A|.
Returning to
The axis along which the phase derivative is measured, and the axis along which fringes encoding this derivative vary, may be independently varied by changing the positions of the gratings in the interferometer system 100. The orientation of the gratings as shown is chosen to keep both positive and negative derivatives symmetrical with respect to the spectral properties of the system 100.
The unlabelled spectral components in
It should also be noted that the terms “on-axis” and “off-axis” refer respectively to the axes of the gratings 101, 110, 130, not the sensor 140, and hence the image generation process does not actually require that the “on-axis” terms appear on the u and v axes of the Fourier transform. If these terms are not aligned to the u and v axis, then their position can be found by finding two spectral peaks in the Fourier transform of a calibration moiré image containing no object in the presence of undesirable terms at a position corresponding to the sum and difference of these detected frequencies. However, for simplicity, it will henceforth be assumed that this is so.
The spectrum of the image can be described as a special case of the fringe model described earlier, and takes the form:
where Si is the 2D noise signal, A is the 2D absorption image of the object, mx and my are 2D images containing the amplitude modulation of the on-axis carriers, mu and mv are 2D images containing the amplitude modulation of the off-axis carriers, ωx and ωy the frequencies of the on-axis carriers, and Φx and Φy are the phase images. Each Φ contains a single arbitrary phase offset which defines the phase at the origin, and a phase modulation function representing the derivative of the optical path length. The optical path length varies where the X-rays intersect an object, as different materials have different refractive indices.
A major source of corruption in the single-shot method is spectral overlap, or crosstalk, between cross-terms of the gradients. This is a problem with high-bandwidth signals and can be seen in the Fourier space image 220 where the off-axis (diagonally modulated) signals 260 and 270 overlap the x and y modulated signals. These off-axis signals are not desired, because they will cause distortion of the on-axis signals due to cross-talk, and do not provide any extra phase information beyond that in the on-axis signals 240 and 250. The amplitude of the off-axis signals is as a result of the spectrum of the cells in the grating elements. If the off-axis signals were to correspond to a direct product of the on-axis fringes, then homomorphic processing using a logarithmic function can remove these off-axis fringes. This has the effect of reducing cross-term artefacts, increasing both bandwidth and quality.
The main objective of homomorphic processing is to separate multiplicative processes into additive processes, apply linear filtering, and then transform the processed image back to the original domain. The linear filtering is typically performed in the Fourier transform domain.
Assuming a multiplicative model of the 2D intensity moiré pattern, modelled as the product of three components: the X-ray absorption factor A, the x-direction fringe term, and the y-direction fringe term, the spectral image resolves into a specific form of Equation 2, being:
I(r)=A(r){1+mx(r)cos [ωxx+Φx(r)]}×{1+my(r)cos [ωyy+Φy(r)]}. [3]
Next the signal or image intensity of Equation 2 is logarithmically mapped, to get the following:
The original product of the three components has now been converted to an addition of the three components. Because there is no longer a product of the x and y fringe terms, the off-axis cross-terms are now removed and are not observable in the Fourier domain. With the removal of the off-axis cross-terms, the x and y fringe patterns are cleanly separated in the Fourier domain and can be isolated by a simple spectral filter.
After filtering, the two images can be transformed back to the spatial domain and analysed separately. It is an important point, and one that is considered later in this document, that the harmonics generated in the carrier frequencies by the logarithm can be exactly removed by calculating the inverse logarithm, namely the exponential, of the resulting filtered image in the spatial domain. If there is no overlap in the Fourier domain of the original carrier frequencies, this process will successfully reconstruct the fringes for the x and y carriers separately.
After the harmonics have been removed by exponentiation, it is possible to separate the modulation and phase terms by calculating the corresponding analytic signal. The analytic signal of a real cosine function is a complex exponential and from this it is possible to calculate the magnitude and the phase term of this complex signal, to give estimates of the modulation terms, mx and my, and the phase terms, Φx and Φy, of the x and y fringe patterns respectively.
Unfortunately, the product model does not match the physical properties of the X-ray Talbot system and is not effective when dealing with real data.
Physical Implementation
As seen in
The computer module 1801 typically includes at least one processor unit 1805, and a memory unit 1806. For example, the memory unit 1806 may have semiconductor random access memory (RAM) and semiconductor read only memory (ROM). The computer module 1801 also includes an number of input/output (I/O) interfaces including: an audio-video interface 1807 that couples to the video display 1814, loudspeakers 1817 and microphone 1880; an I/O interface 1813 that couples to the keyboard 1802, mouse 1803, scanner 1826, and optionally a joystick or other human interface device (not illustrated); and an interface 1808 for the external modem 1816 and printer 1815. In some implementations, the modem 1816 may be incorporated within the computer module 1801, for example within the interface 1808. The computer module 1801 also has a local interface 1811, which permits coupling of the computer system 1800 via a connection 1823 to an X-ray Talbot imaging apparatus 1899, implementing an imaging arrangement akin to that shown in
The I/O interfaces 1808 and 1813 may afford either or both of 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 1809 are provided and typically include a hard disk drive (HDD) 1810. Other storage devices such as a floppy disk drive and a magnetic tape drive (not illustrated) may also be used. An optical disk drive 1812 is typically provided to act as a non-volatile source of data. Portable memory devices, such optical disks (e.g., CD-ROM, DVD, Blu ray Disc™), USB-RAM, portable, external hard drives, and floppy disks, for example, may be used as appropriate sources of data to the system 1800.
The components 1805 to 1813 of the computer module 1801 typically communicate via an interconnected bus 1804 and in a manner that results in a conventional mode of operation of the computer system 1800 known to those in the relevant art. For example, the processor 1805 is coupled to the system bus 1804 using a connection 1818. Likewise, the memory 1806 and optical disk drive 1812 are coupled to the system bus 1804 by connections 1819. Examples of computers on which the described arrangements can be practised include IBM-PC's and compatibles, Sun Sparcstations, Apple Mac™ or a like computer systems.
The methods of image demodulation described herein may be implemented using the computer system 1800 wherein the processes of
The software may be stored in a computer readable storage medium, including the storage devices described below, for example. The software is loaded into the computer system 1800 from the computer readable medium, and then executed by the computer system 1800, and more particularly by the processor 1805. A computer readable storage medium having such software or computer program recorded on the computer readable storage medium is a computer program product. The use of the computer program product in the computer system 1800 preferably effects an advantageous apparatus for image demodulation.
The software 1833 is typically stored in the HDD 1810 or the memory 1806. The software is loaded into the computer system 1800 from a computer readable medium, and executed by the computer system 1800. Thus, for example, the software 1833 may be stored on an optically readable disk storage medium (e.g., CD-ROM) 1825 that is read by the optical disk drive 1812. A computer readable storage medium having such software or computer program recorded on it is a computer program product.
In some instances, the application programs 1833 may be supplied to the user encoded on one or more CD-ROMs 1825 and read via the corresponding drive 1812, or alternatively may be read by the user from the network 1820. Still further, the software can also be loaded into the computer system 1800 from other computer readable media. Computer readable storage media refers to any non-transitory tangible storage medium that provides recorded instructions and/or data to the computer system 1800 for execution and/or processing. Examples of such storage media include floppy disks, magnetic tape, CD-ROM, DVD, Blu-ray Disc™, a hard disk drive, a ROM or integrated circuit, USB memory, 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 1801. Examples of transitory or non-tangible computer readable transmission media that may also participate in the provision of software, application programs, instructions and/or data to the computer module 1801 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 1833 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 1814. Through manipulation of typically the keyboard 1802 and the mouse 1803, a user of the computer system 1800 and the application may manipulate the interface in a functionally adaptable manner to provide controlling commands and/or input to the applications associated with the GUI(s). Other forms of functionally adaptable user interfaces may also be implemented, such as an audio interface utilizing speech prompts output via the loudspeakers 1817 and user voice commands input via the microphone 1880.
When the computer module 1801 is initially powered up, a power-on self-test (POST) program 1850 executes. The POST program 1850 is typically stored in a ROM 1849 of the semiconductor memory 1806 of
The operating system 1853 manages the memory 1834 (1809, 1806) to ensure that each process or application running on the computer module 1801 has sufficient memory in which to execute without colliding with memory allocated to another process. Furthermore, the different types of memory available in the system 1800 of
As shown in
The application program 1833 includes a sequence of instructions 1831 that may include conditional branch and loop instructions. The program 1833 may also include data 1832 which is used in execution of the program 1833. The instructions 1831 and the data 1832 are stored in memory locations 1828, 1829, 1830 and 1835, 1836, 1837, respectively. Depending upon the relative size of the instructions 1831 and the memory locations 1828-1830, a particular instruction may be stored in a single memory location as depicted by the instruction shown in the memory location 1830. Alternately, an instruction may be segmented into a number of parts each of which is stored in a separate memory location, as depicted by the instruction segments shown in the memory locations 1828 and 1829.
In general, the processor 1805 is given a set of instructions which are executed therein. The processor 1805 waits for a subsequent input, to which the processor 1805 reacts to by executing another set of instructions. Each input may be provided from one or more of a number of sources, including data generated by one or more of the input devices 1802, 1803, data received from an external source across one of the networks 1820, 1822, data retrieved from one of the storage devices 1806, 1809 or data retrieved from a storage medium 1825 inserted into the corresponding reader 1812, all depicted in
The disclosed image demodulation arrangements use input variables 1854, which are stored in the memory 1834 in corresponding memory locations 1855, 1856, 1857. The arrangements produce output variables 1861, which are stored in the memory 1834 in corresponding memory locations 1862, 1863, 1864. Intermediate variables 1858 may be stored in memory locations 1859, 1860, 1866 and 1867.
Referring to the processor 1805 of
(i) a fetch operation, which fetches or reads an instruction 1831 from a memory location 1828, 1829, 1830;
(ii) a decode operation in which the control unit 1839 determines which instruction has been fetched; and
(iii) an execute operation in which the control unit 1839 and/or the ALU 1840 execute the instruction.
Thereafter, a further fetch, decode, and execute cycle for the next instruction may be executed. Similarly, a store cycle may be performed by which the control unit 1839 stores or writes a value to a memory location 1832.
Each step or sub-process in the processes of
The methods of image demodulation may alternatively or additionally be implemented in dedicated hardware such as one or more integrated circuits performing the functions or sub functions of image demodulation. Such dedicated hardware may for example include digital signal processors, or one or more ASICs, FPGAs, microprocessors and associated memories, for example specifically configured to perform special demodulation processing functions, such as Fourier transforms.
Overview
The presence of off-axis terms in the spectrum causes cross-talk during demodulation and hence degrades the quality of the demodulated image. Unfortunately, in real X-ray Talbot systems the output of the system is not a good match to the modulation model given by Equation 2. The consequences of this are that the logarithmic mapping explained above does not work well in practice. Disclosed in this section is a more general model of the modulation process that fits better with the experimental data from an X-ray Talbot system.
It is desired to find a transformation that removes the cross-terms from the fringe pattern while allowing separation of the x and y modulation fringes without corruption from the overlap between them and the cross-terms. To achieve this it is appropriate to first investigate the simpler problem of removing a single cross-term in the upper quadrant of the Fourier transform. Consider the simplified model of the first quadrant:
Q(x,y)=A[1+aeiΦ
Now consider a general non-linear function that can remove the cross-term ei(Φ
h(Q)=Σj=0∞hj(Q−Q0)j, [6]
where the coefficients hj specify the function completely.
By expanding h(Q) about Q=A the following expansion in the harmonics of the phase images Φx and Φy is obtained:
where Ck,l is the element of the cross-coefficient matrix C at the position (k,l). Assuming, without loss of generality, that A=1; then, the coefficient matrix for the function defined in Equation 5 with entries up to k≦3, and l≦3 is given by:
It can be seen in this case that it is possible to solve for the coefficients of the function h iteratively by setting each cross term to zero. Also note that the matrix has a symmetric relationship about the main diagonal such that:
a
k-1
C
k,l
=b
k-l
C
l,k, [7]
Accordingly, where Ck,l=0 then Cl,k=0, in order to zero the off-axis terms only requires the coefficients in the upper triangle of the matrix to be solved. However, it is not obvious that all off-axis terms can be solved uniquely as there are more terms in any finite upper triangle of the matrix than there are coefficients. However, in the special case of Equation 5, series coefficients for the function h(Q) can be obtained which set to zero the coefficients of all off-axis terms:
where by definition, h0=0. This corresponds to the expected logarithmic relationship that is derived in a more direct manner later:
The logarithmic relationship of Equation 9 typically cannot be applied directly to Equation 2 as usually the off-axis term amplitudes are not known. Additionally, in Equation 2 the two off-axis terms can be of different amplitudes and in this case it is not possible to factorize the x and y dependent parts of the equation exactly.
However, the existence of a nonlinear function that reduces off-axis spectra suggests an algorithm for demodulating a single-shot image using this function to improve quality of the demodulated image. An example algorithm is shown in a demodulation process 400 of
In
After off-axis terms have been attenuated by step 420, any appropriate approach may be used for demodulating the image in a demodulate step 430. One example is the windowed Fourier transform method. Note that demodulation of an image containing multiple sets of fringes will result in multiple demodulated images, and that it is not necessary to demodulate any except the desired on-axis fringes.
The output of the process 400 is a demodulated image 440.
A preferred process 500 of applying a nonlinear transformation of step 420 is shown in
In step 520, an unprocessed pixel pi from the image is selected with value vi.
In step 530, the pixel pi is replaced by an evaluation of the nonlinear transformation, (vi,S).
In step 540, if there are more pixels to be processed, control is returned to step 520, otherwise the process 500 completes at step 550, leaving an image processed by a nonlinear transformation.
Although the method 500 attenuates the off-axis terms and hence reduces cross-talk, the use of a nonlinear function will also generate harmonics of the on-axis terms, resulting in extraneous signal which might also reduce image quality.
A variation on the process of
In step 1720 the input image 1700 is processed to yield multiple real images, with each image containing separated fringe patterns. Note that it is not necessary to produce any image other than images of the on-axis fringes. Step 1720 desirably should incorporate processing to suppress off-axis spectra and generated harmonics. Methods for doing this processing are discussed later.
In step 1730, each separated fringe image is demodulated to yield a demodulated image for each of the desired on-axis frequencies. Again, appropriate known demodulation approaches may be used. In step 1740, the demodulated images are output.
A preferred single-shot process 600 to separate on-axis terms and to suppress both off-axis terms and harmonics, as used in step 1720, is described in
The input 610 to the process 600 is a single fringe image and two parameterized non-linear transforms, a first transform h and a second transform g. The Fourier transform of the input image will appear similar to the diagram 710 of
In step 620 the first nonlinear transform h is applied to the input image using the process described in
In step 630, a real Fast Fourier Transform (FFT) is applied to the image to transform the image from the spatial domain to the Fourier (frequency) domain. The result is a complex image with Hermitian symmetry.
In step 640, the result of the Fast Fourier Transform is multiplied by the sum of the two spectral masks, Sx (810) and i Sy (820), where i=√{square root over (−1)}. This multiplication separates the spectrum of the Fourier transform into regions containing substantially x and y carriers.
In step 650, the inverse complex Fast Fourier Transform is applied to produce two fringe patterns, separated with the x carrier in the real part of the image, and the y carrier in the imaginary part of the image. This is shown diagrammatically, with the spectrum 730 of
In step 660, the second non-linear transformation g is applied to each fringe pattern 730, 740 independently so as to attenuate the harmonics, and in step 670 a low-frequency spectrum is computed and subtracted from each fringe pattern to produce zero-mean separated fringes. Such a low-frequency spectrum can be computed by fitting 25 terms computed separably from one-dimensional Legendre polynomials of degree 5. This fit is then subtracted from each fringe image 730, 740.
The spectrum of the resulting two fringes 750 and 760 is represented in
With the off-axis terms, harmonics and absorption spectrum removed, these two fringe images are output in step 680, ready for demodulation.
In step 930 each Fourier transform is multiplied by the corresponding Hilbert and filter mask 1270 and 1280. The filters remove the lowest frequencies, residual off-axis spectra, and have a low-pass effect to remove noise and aliasing from the demodulation process. The Hilbert mask removes the Hermitian pairs in the Fourier transform, leaving only positive frequencies, and thus restores the quadrature phase part of the fringes.
In step 940, the inverse Fourier transform is applied to the masked fringes thereby returning the demodulated images to the spatial domain,
A pair of demodulated images is the output at step 950 of the process 900, and these images contain both real and imaginary parts in quadrature, from which the amplitude and wrapped phase can be computed directly.
Given a model for the images produced by the imaging system 100, a matched pair of parameterized nonlinear functions as shown in steps 620 and 660 in
The first approach is to generate a pair of nonlinear functions to minimize the amplitudes of off-axis terms and harmonics, given the values of the coefficients mx, my, mu, mv. If these coefficients have constant values across the input image, then a pair of nonlinear functions can be derived to minimize the amplitude of the off-axis terms and the harmonics resulting from the process 600 of
The second approach is to gather image samples to demodulate along with the measured ground truth. This can give highly accurate estimates of the modulation artifacts A, mx, my, mu, mv, ωx and ωy. An optimisation process may then be used to derive a pair of nonlinear functions which minimise the error in an image demodulated using the methods in
In step 1010, an input fringe image containing four fringe patterns is captured or otherwise obtained, from storage for example. In step 1010, there is no need for an object 102 to be present. In step 1020, the fringe image is analysed to estimate the values for the modulation coefficients mx, my, mu, mv for the fringe image, either globally in aggregate, or locally at each pixel position. These values can be estimated globally by computing the amplitudes A, Fx, Fy, Fu, Fv of the DC and corresponding carrier frequency peaks in the Fourier transform of a calibration image captured using the imaging system 100 including relevant ones of the gratings 101, 110, 130, but containing no object 102, and then computing mx=Fx/A, my=Fy/A, and so on. The estimated modulation coefficients mx, my, mu, mv represent properties of the X-ray Talbot interferometer 100. These values can be computed locally by the processor 1805 performing a trial demodulation of the image using another demodulation algorithm. Example of such algorithms include a traditional Fourier method, and a Windowed Fourier Transform (WFT). In step 1030, the parameters for the nonlinear transforms are calculated from the modulation coefficients mx, my, mu, mv estimated in step 1020 to reduce the off-axis terms and harmonics, and in step 1040 the image is demodulated, preferably using the method described in
In real X-ray Talbot imaging systems, the modulation process is complex and does not match simple theoretical models. Therefore, it is difficult to use measured modulation and amplitude parameters to choose the parameters of the nonlinear functions used to reduce off-axis terms. In particular, the amplitudes of the modulation coefficients are not constant, with their values at a maximum in the case that X-rays are undeviated and the bandwidth of the spectra are small, and with their values decreasing towards zero where the X-rays are deflected by the object, for example at the interface between different materials. In these positions the bandwidth of the modulated carriers is at a maximum. In extreme cases, the modulation coefficients can become negative.
The values of mx, my, mu, mv will drop locally in the presence of steep phase gradients. For example, where the magnitude of the phase gradient in the x direction is large, the value of mx will drop, and drop towards zero with extremely steep gradients, and the same for the other modulation values, with the off-axis terms mu and mv being associated with phase gradients at 135° and 45° respectively.
The pair of nonlinear functions can be chosen either globally or locally. If the functions are chosen globally, they should be selected to reduce the off-axis terms for the modulation coefficients which would be expected to contribute most to cross-talk distortion in the image. The selection of these terms is non-obvious, because the bandwidth of a signal associated with no phase gradient is extremely small, yet the amplitude of the high-bandwidth signal associated with a steep phase gradient is also extremely small. Accordingly, based on this understanding, it would be expected that the nonlinear functions should be chosen to reduce off-axis terms for middle-range modulation values.
If the nonlinear functions are chosen based upon local modulation values, these modulation values are not available prior to demodulation and hence must be estimated by a simpler method. Furthermore, if using locally changing nonlinear functions, the inversion of these functions to recover the fringe is non-trival and must be considered carefully.
Because it is difficult to accurately measure modulation values, an alternative approach is described to choose the nonlinear functions used for demodulation, using an optimization process.
The first step in such an approach is to generate one or more modulated images with known ground truth. All of the relevant parameters of a candidate image can be obtained by taking multiple, phase-shifted images, such as 16 images resulting from phase-shifting in the x and y direction with all multiples 90°, and then using a known demodulation method to produce a reference demodulated image. The demodulation parameters can be independently measured on a per pixel basis and are A, mx, my, mu, mv, ωx and ωy. Noise is neglected in this analysis, so the images should have sufficient exposure time so that noise is not a significant component of the signal.
Two approaches can be used to obtain a single-shot image for evaluation of the single-shot demodulation process. Firstly, a single input image can be taken from the multiple phase-shifted input images. Secondly, a single input image can be simulated by remodulation of the reference demodulated image. This single-shot demodulated image, demodulated using either approach, is called the candidate demodulated image, and can be compared with the reference demodulated image to evaluate demodulation quality.
This first approach to obtain the candidate demodulated image has the disadvantage that although the demodulation of genuine data is tested, the sources of error in this demodulation will be demodulation error plus signal noise, and any errors in the modulation model. The second approach allows the creation of an image with zero noise and which is described perfectly by the demodulation model, so the sources of error in demodulation can be totally ascribed to the demodulation algorithm.
If the obtained image is demodulated using the single-shot algorithm with candidate parameters for the non-linear functions being used, the quality of the candidate demodulated image, and hence the quality of the parameters, can be evaluated by means of an image quality metric, such as the root-mean-square (RMS) error of the phase.
After executing this process once, the parameters can be modified, and the process repeated. In this way optimal parameters of the parametrised transforms may be found that provide minimal root-mean-square (RMS) error.
An example 1100 of such a process is shown in
In step 1140, the processor 1805 operates to identify candidate parameters for the single-shot demodulation process. These parameters include, but are not limited to, the parameters describing the nonlinear functions used in the demodulation process. Typically, the parameters comprise initial estimates that are recorded in memory, such as the HDD 1810. The initial estimates may be predetermined as factory setting or alternatively or additionally retained in memory from previous instantiations of the process 1100.
In step 1160, the selected one image 1105 is demodulated using the parameters identified in step 1140 according to the single-shot demodulation process 600, as described in
In step 1170, the candidated demodulated image 1150 is compared to the reference demodulated image 1130, to form an error estimate 1175.
The final step 1180 of the process 1100 is where the processor 1805 uses the error estimate 1175 to adjust the parameters of the demodulation process, including the nonlinear transforms identified at step 1140, thereby provided adjusted demodulation parameters and nonlinear transforms.
Using any of a number of optimization procedures, such as the Simplex method, brute-force search, or gradient-descent methods, the process in
First Specific Implementation
The use of nonlinear functions to reduce off-axis terms depends critically on the relative amplitude of the modulation parameters mx, my, mu, and mv. In the specific case that the off-axis terms have an amplitude identical to that of the product of the on-axis term amplitudes when formed from a product, i.e.,
where we have ignored the noise Si from Equation 2. In this case the off-axis terms correspond directly to the multiplicative cross-terms, and can be removed with a first non-linear function being f(I)=log I, and the harmonics removed with a second non-linear function being g(I)=exp I. This gives the theoretical response after the first nonlinear function as:
g(I)=log A+log [1+mx cos(ωxx+Φx(r))]+log [1+my cos(ωyy+Φy(r))]
This special case corresponds to the use of homomorphic filtering. However, the signal being a perfect product of x and y modulations is unlikely to arise in practice. This is because the physical processes giving rise to the off-axis terms do not correspond to the product of two one-dimensional cosine functions.
The X-ray Talbot imaging system does not produce images which fit this model. Instead the off-axis modulations are typically different from the product of on-axis factors, as given by Equation 2. Assuming that the major axes of the modulation are known, or can be determined, it is therefore possible to consider the problem of where to map the coordinates so that the major axes are in the x and y directions. Furthermore, two further diagonal cross-terms, denoted with subscripts u and v, can be considered and that the frequency and phase of the cross-terms are simply the sum and difference of the on-axis phase terms, φx, φy, such that:
ωu·r=ωxx+ωyy,ωv·r=ωxx−ωyy, [11]
Φu=Φx+Φy,Φv=Φx−Φy. [12]
In this case, an image can be factored as follows:
where the notation φx=ωxx+Φx(r) and φy=ωyy+Φy(r) is used for convenience, and the factorizing coefficient is estimated according to the relation:
Calculation of Equation 13 requires knowledge of the spatially-varying absorption, A(r), and an estimate of the parameter γ. In the ideal case that the off-axis terms are an exact product of the on-axis terms, γ=1. However, typically the cross-terms are larger than expected, and therefore γ<1. Further in this case, A(1−γ) is being subtracted from the image I, and therefore there is a potential for this term to become negative due to image noise and the estimations of A and γ. As the real log function is undefined for zero or negative values, the relevant terms should be clipped below to a small positive value. Also note that in the case that the cross-terms are smaller than expected, γ>1 and a positive value will be added to the signal I and the result will therefore always be greater than zero.
The estimate of the absorption can be made using a low-pass filter having a stop band which removes the modulated carrier frequencies from the image. In most cases, even a band-limited approximation to the absorption is useful, as the higher frequencies are typically at edges where the modulation is low and the assumption that mu=my breaks down.
The factorizing coefficient γ also needs to be estimated before an offset-log function can be calculated. This requires estimates of all modulation amplitudes mx, my, mu, and mv. A constant estimate of these factors can be formed by calculating the peak signal amplitudes in the Fourier domain near the respective central frequency of each carrier. Alternatively, a low frequency estimate of these quantities can be calculated by filtering the original signal in the Fourier domain and demodulating the resulting signals.
In the case of the experimental system the cross-term modulation amplitudes are typically twice the magnitude of the product of the on-axis modulations. This is a result of the shape of the cells of which the gratings 101, 110 and 130 are composed. There is in fact no multiplicative relationship between the cross-terms and the on-axis terms.
It is also important to note that the modulation functions mx, my, mu and mv do not have constant values across the image. The absorption of the object 102 simply reduces the amount of light (specifically, X-ray electromagnetic energy) reaching the image sensor 140 and is taken into account by the absorption term A that multiplied all terms in Equation 4. However, the modulation amplitude drops by a larger fraction than the absorption. In addition, the modulation values also drop at the edges of structures being imaged, and some materials, such as a paper and wood, cause a drop in modulation disproportionate to their relative small absorption values. This is because of the convolution of the Talbot image by the set of pinholes in the G0 grating 101, and an initial one-dimensional modelling of this source convolution has reproduced many of the same effects that are observed in real data. The result of this convolution is that the modulation drops, sometimes by as much as 90%, where the second derivative of the optical path length is high. This occurs at boundaries between materials, and in structures such as wood and paper with highly-scattering structure. This property is useful, and can be used to determine the position of sharp edges in the images.
Furthermore, the modulation drop occurs in proportion to the inner product between the modulation direction and the direction of the gradient in the optical path length. This means that the cross-term modulation mu is high when the optical path length gradient is at an angle of π/4, and mv is high when the optical path length gradient is at an angle of −π/4. Therefore, these terms can significantly depart from being the product of mx and my.
Some typical mean values of these parameters in real systems are as follows:
Ā=500;
where
In this form the off-axis terms can be removed by use of an offset-log function:
After the offset-log function of Equation 15 is applied, the off-axis cross terms are found to have been significantly reduced and the on-axis terms are therefore separated in the Fourier domain. Separation of the x and y modulated terms in the Fourier domain can then be performed using a filter that accepts the on-axis terms along one axis preferentially. An example of such a filter in the Fourier domain is shown graphically in in
After this filter has been applied the remaining signal consists of the on-axis terms of one axis preferentially as well as the DC component of the total signal. Note that the DC components of the signal include a component from the other axis modulation signal that cannot be filtered out in the Fourier domain. An estimate of the contribution of this other axis component can be made by taking a series expansion of the logarithm terms about γ, according to the relation:
where w=(x,y) and the coefficients of the terms are given by:
Therefore, after the application of the x-separation filter 820 of
Note that this sum converges for my/γ<1. Assuming the cross-terms are small relative to the on-axis terms, it is possible to consider only the first term in the expansion. Taking the exponential of the filtered logarithm gives:
Equation 19 shows that it is possible to successfully separate the x-modulated signal from the y-modulated signal except for the presence of the absorption and the effect of the y-modulation amplitude.
To remove the absorption, the expression can be divided by the regularized estimated absorption as previously calculated. An estimate of the x-modulated signal can be arrived at by assuming my/γ is small, so that
A similar formula for the y-modulated signal is:
To retrieve the phase and amplitude components of the modulated signals it is possible to form the analytic signal by removing the negative frequency components. The analytic signal can be calculated for a either using the FFT or a one-dimensional (1D) spatial filter. A low-pass filter can be additionally applied to remove the residual Fourier components at the cross-term frequencies. This can be achieved by use of the Fourier domain filters shown in
T
x[ƒx]≃mxexp(iφx)
T
y[ƒy]≃myexp(iφy). [22]
From these filtered signals Tx and Ty, an estimate of the modulation amplitudes mx and my can be determined from the modulus, a wrapped phase (modulo 2π) using an arctangent with the real and imaginary components of the complex signal.
To obtain an estimate of the true differential phases Φx and Φy of Equation 3, the wrapped phases in the images Tx and Ty must be unwrapped using some kind of phase unwrapping algorithm.
In X-ray phase contrast imaging there can be extremely large phase transitions that occur at the boundaries between different structures. In regions of an image where the apparent phase gradient in a region is larger than the Nyquist sampling limit of π radians per pixel, an ambiguity is created between a positive and a negative phase gradient is created. Thus, phase unwrapping is difficult in these boundary regions. Due to this problem, the true magnitude and sign of the measured phase can be very difficult to estimate from the wrapped phase value. To reduce this problem, additional information, such as the modulation amplitude or absorption values (e.g. the absorption image A), can be used to guide phase unwrapping.
For example, due to optical effects related to the gratings used in the system, the modulation amplitude drops substantially in regions of the image where the phase gradient is large. Thus, this modulation amplitude can be used as a guide to determine regions of the image in which the phase changes at a rate greater than the Nyquist sampling limit of it radians per pixel. Examining the modulation value and surrounding phase values, this allows the exact position at which the phase gradient attains a maximum or minimum value, and an estimate of the value, and hence allows correct phase unwrapping in an edge region containing large phase gradients.
In other implementations, the absorption image A can be used. For example, where there is a boundary between different structures causing a large phase transition, there is also often an edge in the absorption image. By examining the derivative of the absorption image in the direction of the phase derivative being unwrapped, the sign of the phase gradient can be estimated, thus assisting in the phase unwrapping process.
To improve the estimation of the modulation amplitudes, an iterative procedure can be used to correct for the influence of the opposing axis modulation amplitudes in Equation 19, where separated fringes for the (j+1)th estimate are calculated using the previous estimate of the x and y modulation amplitudes, mx(j) and my(j), thereby replacing Equations 20 and 21 with:
The updated modulation amplitudes can then be calculated using the demodulation process as previously explained.
Turning now to
In
In step 1411, an absorption image A is estimated for the fringe image 1410. This is preferably performed according to the method 1600 as described in
The absorption image A can have pixel values ranging from 0.0 at the low end of the range (representing no detected light) to hundreds or thousands of counts at the high end of the range. In step 1412 the absorption image A is clipped so that values below 1.0 are replaced by 1.0 to avoid divide-by-zero errors during later division.
In step 1412, the fringe image I is also divided by the clipped absorption image A to produce an image with a mean value of 1.0 and modulation values as calculated, e.g.
From these modulation values, in step 1413 an offset value is calculated,
The offset value γ allows a log-offset transformation image 1425 of the input image 1410 to be calculated by the processor 1805 in step 1420, such that,
I←log(I+A(γ−1))
Before the log function is calculated, the argument to the log is desirably clipped to some minimum value, for example 0.01, to prevent extreme negative values resulting from the computation of the log operation.
In step 1430 the Fourier transform is calculated by the processor 1805 to transform the log-offset transformed image 1425 to the spectral domain. In the resulting spectral image 1435 the off-axis terms are substantially reduced, however harmonics are introduced to the on-axis terms by the nonlinearity of the log function.
In step 1440 the Fourier transform image 1435 is multiplied by the complex separation mask as previously described in
In step 1450, the Inverse Fourier Transform is calculated by the processor 1805 to transform the image 1445 back to the spatial domain, giving a spatial image 1455 having real and imaginary parts. The parts can be separated to be treated as separate images. Specifically, upon inverse transformation, the fringe patterns will separate into x-carrier fringes (x-phase) from the real part of the image 1445, and y-carrier fringes (y-phase) from the imaginary part of the image 1445, to be of the form
I
x=log(γ+mx cos φx)
and
I
y=log(γ+my cos φy).
In step 1460 each of these phase images is transformed by the second nonlinear function, such that
I
x←expIx=γ+mx cos(φx),
I
y←expIy=γ+my cos(φy).
This results in two images 1465 each containing only the on-axis carriers and a constant offset term.
In step 1470 the low-frequency spectrum of each image 1465 is removed by subtracting a low-degree polynomial fit of each image, for example a 2D polynomial of degree 5, which makes the signal zero mean.
The process 1400 thereby produces an output 1480 comprising a pair of zero-mean separated fringe patterns, ready for demodulation.
The demodulation is performed as previously described in
Second Specific Implementation
While the log-offset transformation can in principle eliminate cross talk due to the off-axis terms, the inventors note that there are several limitations with this approach that can limit the demodulation quality. Firstly, the log function is unbounded as normalized image values tend towards zero, so it is necessary to clip image data below before the log function is calculated. Clipping inherently introduces errors. Secondly, the modulation values of the off-axis terms are often not the same throughout the image, and thus the estimation of the modulation values typically introduces errors. Thirdly, the absorption cannot be estimated exactly. These problems can result in unwanted artefacts in demodulated images.
A more general processing scheme that does not use a logarithmic function to remove cross-terms is now considered. This processing uses two general nonlinear functions, H and G, that reduce off-axis terms of the original signal and restore the on-axis terms respectively.
A first nonlinear transform used is capable of reducing the cross-terms to a minimum value. Other desirable properties of this function are that it can accept a wide range of potential off-axis and on-axis amplitudes, that it can be invariant to a global multiplicative scaling, and that it is unambiguous to invert. While there is not a known nonlinear function which exactly cancels all off-axis terms other than the offset-log transform, it is possible to derive nonlinear functions which substantially reduce these terms.
In particular, the model case of Equation 5 can be considered and represented as,
Q(x,y)=1+a(eiφ
A general non-linear function h(v) specified by a finite polynomial series analytic at v=1 is given by:
where the coefficients hj specify the function completely.
By expanding h(v) about v=1 the following expansion in the harmonics of the phase images Φx and Φy is obtained:
where Ck,l is the element of the cross-coefficient matrix C at the position (k,l). In this case the terms of an infinite power expansion cannot be solved iteratively as all coefficients in the series expansion of Equation 6 are involved in each term of the coefficient matrix. Note that due to the fact that Q(x,y) is real, the matrix has the symmetry, Ck,l=C−k,−l.
The problem of minimizing the cross terms for a general nonlinear function can now be considered. Considering the fundamental off-axis terms at Φx+Φy and Φx−Φy, it is desirable to minimize Roa which measures the power in these off-axis terms, measured by the squared magnitude of the amplitudes C1,12 and C−1,12, relative to the power in both on-axis terms, measured by the squared magnitude of the amplitudes C0,12 and C1,02. Such measure is given by:
Seeking the parameters of the nonlinear function hk that minimize the power ratio of Equation 27 gives a potential nonlinear function to use for off-axis term suppression. Alternatively, a function that minimizes higher order off-axis terms may be suitable,
For example, considering the simplest case of a second order nonlinear function, N=2, it is possible to find the minimum of Equation 27 as a function of the parameters h1 and h2 and arbitrarily set the constant h0=0. To simplify presentation, assume a=b and then find that
When c=d it is possible to exactly cancel the cross term with h2=−ch1/(2 a2). Considering a cubic function, it is possible to exactly set the first off-axis harmonics to zero. However, where this is done the higher order off-axis terms will be larger than the quadratic nonlinear function. It may therefore be preferable to reduce the total off-axis power using Equation 28. Additionally the analysis can be extended to higher orders than cubic and progressively reduce the cross-terms to optimal levels.
The preceding analysis allows construction of a forward transform for the reduction of off-axis cross-terms. To construct the second backward transform it is possible to either directly invert the first transform or alternatively to construct a function that is separately optimized for a different metric relating to image quality. As an example, the calculation of the backwards transform can be derived as the inverse of the on-axis terms alone. Note that in both cases the backward function g(v) may not be equal to the inverse of the forward function h(x).
The backward function g(v) of the x on-axis terms can be calculated as a formal power series defined by:
where the coefficients gm can be calculated from the on-axis coefficients Cm,0 and C0,m respectively using an iterative algorithm, of which there are many well-known such algorithms. The function to restore the y on-axis terms can be derived similarly.
In the case of the quadratic transform, the inverse nonlinear function can be directly computed in this instance as,
However, this quadratic function has a number of disadvantages. The inverse function requires that h2 be small enough so that the branch of the square root function can be correctly determined. This required the parameters of the original model, specifically the on-axis and off-axis powers, to be monitored to ensure that they do not go outside the limits required by the model.
A more desirable function would possess the properties that it can accept a wide range of potential off-axis and on-axis amplitudes, that it can be invariant to a global multiplicative scaling, and that it is unambiguous to invert. For these reasons consideration of other classes of nonlinear functions with these properties is appropriate. One example is a power function
h(Q)=Qα [32]
where α is a non-integer. A good inverse function to use is
g(h)=hβ [33]
where β may be different from 1/α.
The parameter α of the first nonlinear transform is determined prior to using the function on a real image. After processing with the first nonlinear function, the on-axis terms are filtered using the filters in the Fourier domain, as described previously for the log-offset transform.
While the first nonlinear transform reduces the off-axis terms, it introduces harmonics to the on-axis terms. Therefore, an aim of the second nonlinear function is to reduce these harmonics so that the image can be demodulated with minimal artefacts. The parameter β of the second nonlinear transform is again determined prior to the actual demodulation, based on minimize the reconstruction error of the process. Finally, the images are filtered and demodulated.
The use of two general nonlinear functions, h and g, that reduce off-axis terms of the original signal and minimize the RMS reconstruction error, to demodulate a received fringe pattern is shown in
In step 1520 the first nonlinear power transform is applied to the input image 1510, where the application of a nonlinear transform (h) to an image is shown in
In step 1530 the discrete (Fast) Fourier transform of the image 1525 is calculated by the processor 1805, forming a spectral image 1535. In the spectral image 1535 the off-axis terms are substantially reduced, however harmonics are introduced to the on-axis terms by the nonlinearity of the first nonlinear function.
In step 1540, the Fourier transformed image 1535 is multiplied by the complex separation mask as previously described in
In step 1550 the processor 1805 calculates an Inverse Fourier Transform to transform the masked image 1545 back to the spatial domain to form an image 1555 in which the fringe patterns are, as in step 1450, separated into x-carrier fringes in the real part of the image, and y-carrier fringes in the imaginary part of the image.
In step 1560 each of the separated images, being parts of the image 1555 is transformed by the second nonlinear power function (g), where the application of a nonlinear transform to an image is shown in
In step 1570 the low-frequency spectrum is removed from the image 1555 by subtracting a low-degree polynomial fit of each part image, for example a 2D polynomial of degree 5, which makes the signal zero mean.
The output of the method 1500 is a pair of zero-mean separated fringe patterns 1580 ready for demodulation.
The demodulation is preferably performed as previously described in
The two nonlinear functions take parameters that have been optimized previously.
The arrangements described are applicable to the computer and data processing industries and particularly for the demodulation of fringe images to obtain details from biological and other structures.
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 |
---|---|---|---|
2014259516 | Nov 2014 | AU | national |