The present invention relates to the restoration of image data acquired by electro-optical imaging systems. More specifically, the present invention is a new adaptive Wiener filtering algorithm for image data.
In any imaging system, from desktop scanners to remote sensing systems, the basic process is the same: signals from the object mixed with noises are quantized to form the image of the object. An imaging system may be conceptually viewed as a spatial convolution filter that acts on the true signals of objects and outputs the altered signals stored in an image. This spatial filter is the system Point Spread Function (PSF), which is the combined result of the system electro-optical characteristics and scanner motions. If the noise terms are assumed to be unrelated to the system and the object, then the process of remote sensing can be characterized by a so-called image equation:
I=PSF{circle around (x)}O+N
Where {circle around (x)} is the convolution operator. In this rather simplified image equation, the term I is the quantity directly measured by the imaging system and recorded in an image, O is the quantity to measure and is related to I through the known deterministic PSF and the unknown random noise term N. The process of resolving O from the observation I is often called image restoration or image reconstruction.
If both object and image are represented in the same coordinate system (x, y), this object-image relationship can be further expressed by a spatial integral:
where
f(x, y) is the spatial representation of the true object, or O=f(x, y)
g(x, y) is the spatial representation of the image, or I=g(x,y)
h(x, y) is the PSF of the imaging system
n(x, y) is the noise function of the imaging system
As stated above, the task of restoration is to “invert” the imaging process and restore the original object f(x, y), based on the measurement g(x, y) and knowledge about the system PSF and the noise term. However, f(x, y) is not known and could never be completely restored. Therefore, the practical task has been shifted to finding an estimate {circumflex over (f)}(x,y) for f(x, y), such that it satisfies certain restrictions and optimal criteria.
Restoration of the observed image to the original object truth can be handled by the increasingly popular spatial convolution approaches. The centerpiece of the spatial convolution technique is a spatial filtering kernel, referred to hereafter as a restoration kernel, r(x, y); the estimation {circumflex over (f)}(x,y) of f(x, y) is calculated through the spatial convolution of the image g(x, y) and the kernel r(x, y):
{circumflex over (f)}(x,y)=g(x,y){circle around (x)}r(x,y)
The restoration kernel r(x, y) is often required to satisfy certain restrictions, such as non negativity (r(x,y)≧0), and/or normality (∫∫r(x,y)=1). As the restoration kernel is key to the restoration of an image, there is a need in the art for building a restoration kernel that is particularly suited to specific applications.
The Fourier transform is a powerful tool for handling equations involving convolution and correlation. By applying the Fourier transform on both sides of the image equation, and using the convolution property of the Fourier transform, the following is provided:
F[g(x,y)]=F[h(x,y)]·F[f(x,y)]+F[n(x,y)]
or, the equivalent image equation in the Fourier frequency domain:
G(u,v)=H(u,v)·F(u,v)+N(u,v)
where G(u,v), H(u,v), F(u,v) and N(u,v) are the Fourier transforms of g(x,y), h(x,y), f(x,y) and n(x,y). In principle, both image equations in the spatial and the frequency domains are equivalent, since the solution for one equation can be derived from the solution for the other, either through Fourier transform or Inverse Fourier transform.
Likewise, the spatial convolution restoration equation:
{circumflex over (f)}(x,y)=g(x,y){circle around (x)}r(x,y)
can be written in Fourier frequency domain:
{circumflex over (F)}(u,v)=G(u,v)·R(u,v)
where {circumflex over (F)}(u,v), G(u,v) and R(u,v) are the Fourier transforms of {circumflex over (f)}(x,y), g(x,y) and r(x,y) respectively.
In consideration that H(u,v) may be zero for some frequencies, and N(u,v) can be significantly different from zero, the conventional Wiener approach looks for a filter function w(x,y), and an estimate function {circumflex over (f)}(x,y) such that:
{circumflex over (f)}(x,y)=g(x,y){circle around (x)}w(x,y)
and
where {rs(x,y)} is the set of all possible linear stationary restoration filters. In this expression, the expectation E should be understood as an average over all instances of the random noise field n(x,y) and over the whole (x,y) space where f(x,y) has definition.
Let W(u,v) be the Fourier transform of w(x,y), and assuming that the scene (object), the image, noise and filters are stationary, it can be proven that:
where Sn(u,v)=Snn(u,v) is the noise power spectrum, and Sf(u,v)=Sff(u,v) is the scene (object) power spectrum. The ratio Sn(u,v)/Sf(u,v) can be viewed as a system noise-signal ratio. It can be shown that the modulus and phase of the Wiener filter are such that the Wiener filter is an inverse phase filter and a modified direct inverse modulus filter. It effectively controls the noise enhancement of the inverse filter. Additionally, the Wiener filter is a bounded filter. Because of this property, the Wiener restoration kernel has become more acceptable in image processing.
One prior art approach is by L. Wood for Landsat remote sensing data. In her 1986 dissertation entitled “Restoration for Sampled Imaging System,” incorporated herein by reference, Wood proposed a Wiener kernel construction approach for restoring Landsat Multispectral Scanner (MSS) data. Wood's approach has a number of weaknesses.
(1) A key assumption in Wood's approach is total separability. That is, every single component in the expression of the Wiener kernel is separable for x and y. However, even if all Wiener filter components are separable, it does not necessarily follow that W(u,v) is separable. To overcome this difficulty, the approach assumes that the Wiener filter itself is separable. This total separability assumption results in a suboptimal solution because a kernel defined this way is only an approximation of the true Wiener solution.
(2) Wood requires a number of estimations and assumptions to be made that may not hold true for all applications. For example, Wood's approach replaces the object power spectrum Sf(u,v) using the image power spectrum Sg(u,v). This manipulation may create some problems, because this manipulation implicitly assumes that the system noise-to-scene (or object) ratio is: 1−H2(u,v), which may not always hold true
(3) Wood's approach is strongly model dependent. For instance, the forms of the Optical Transfer Functions (“OTFs”) of the optical, detector, and the electro-filtering systems were assumed to satisfy respective separable mathematical models. The autocorrelation function of the object was assumed to satisfy an exponential function; the noise power spectrum of the noise was assumed to be one. The optimal nature of the derived filter can degenerate because so many specific function forms were hypothesized, especially the auto-correlation function of ground truth.
(4) Wood's approach relied on a particular scene and, therefore, it is not quite adaptive.
Thus, it can be seen that there is a need in the art for a new adaptive Wiener filtering algorithm for image data.
The present invention is a method and device for restoration of general image data collected by electro-optical imaging systems. Image data may include, but not limited to, scanner images, fax images, medical images, and remote sensing images to restore data such as airborne remote sensing data for the detection of small weak anomalies.
The method begins by acquiring image of an object in a common coordinate system. The imaging system is assumed to satisfy the following conditions:
These assumptions are generally acceptable for most imaging systems.
Additionally, it is assumed that the image and the object are referenced using the same x-y coordinate system, and the image data is recorded in the first quadrangle of the x-y coordinate system. The image can be expanded to the other quadrangles on the same coordinate plan through symmetric extensions. Notice that this assumption can always be satisfied through appropriate planar system translation.
The restoration kernel in the Fourier frequency domain is built based on the above assumptions, the Wiener filtering theory, and using the following relationship:
The corresponding restoration kernel in the spatial domain can be calculated from the Fourier inverse of the frequency domain kernel:
w(x,y)=F−1[W(u,v)]
The restoration {circumflex over (f)}(x,y) of the image f(x,y) can be achieved through spatial convolution:
{circumflex over (f)}(x,y)=g(x,y){circle around (x)}w(x,y)
The method of the present invention may be implemented using software, hardware, firmware, or the like. A device implementing a method according to the present invention includes a data processor and a data structure storing instructions executable by the data processor. The data structure may additionally store expressions of system functions.
Reference is now made to the figures wherein like parts are referred to by like numerals throughout. The present invention is a new image restoration process, and device for implementing such a process, that includes the construction of the system Optical Transfer Function (“OTF”) and the precise representation of the Wiener filter using the system OTF and the power spectra of the measured image and the system noise. More specifically, the present invention is a method of creating and implementing a truly adaptive Wiener restoration scheme for electro-optical images. Such a method and device may be applied to many different electro-optical imaging systems, including cameras, scanners, thermal imaging, imaging of visible and/or non-visible light and radiation, medical imaging, and the like, without regard to the platform. The method and device may be implemented into the imaging system in many ways including through software, hardware, firmware, remote processing, or the like.
In constructing the Wiener filter of the present invention, the basic assumptions are: (1) the noise component n(x, y) and the object component f(x, y) are independent of each other; (2) the power spectrum of the noise is stationary; and (3) the power spectrum of the object is stationary. Using these assumptions, it can be proved that:
Sg(u,v)=Sf(u,v)|H(u,v)|2+Sn(u,v)
Therefore,
which reduces to:
The Wiener filter has three components H(u,v), Sn(u,v) and Sf(u,v) or Sg(u,v), where: (1) H(u,v) is directly determined by the electro-optical system of the sensor; (2) Sf(u,v) relies on the object; and (3) Sn(u,v) is related to the system noise. The system noise-to-object ratio Sn(u,v)/Sf(u,v) can be difficult to estimate in the real world, since the object power spectrum Sf(u,v) is not really known. On the other hand, the image power spectrum Sg(u,v) can be computed from the image and Sn(u,v) can be measured in a test or theoretically derived. Therefore, the noise-to-image ratio Sn(u,v)/Sg(u,v) is much easier to calculate, and it is the advantage of using this formula in constructing object-adaptive Wiener filters.
Using the convolution theory:
Sg(u,v)=F[g(x,y)Θg(x,y)]=G(u,v)G* (u,v)
Sn(u,v)=F[n(x,y)Θn(x,y)]=N(u,v)N* (u,v)
the form of the Wiener filter can be directly represented by the Fourier transforms of the object and the noise term:
In a further simplification, certain restrictions on the coordinate system may greatly reduce the burden of complex number handling in calculation. It is assumed, therefore, that the h(x,y), f(x,y), g(x,y) and n(x,y) are functions and random functions defined in the first quadrangle (x≧0 and y≧0) of a Cartesian coordinate system and extended to other quadrangles through real complete symmetry extensions.
That is:
h*(x,y)=h(x,y)=h(−x,y)=h(x,−y)
f*(x,y)=f(x,y)=f(−x,y)=f(x,−y)
g*(x,y)=g(x,y)=g(−x,y)=g(x,−y)
n*(x,y)=n(x,y)=n(−x,y)=n(x,−y)
Using the real complete symmetry property of Fourier transform, we can conclude the real complete symmetry for all H(u,v), F(u,v), G(u,v) and N(u,v). In practice, we only need to assume that h(x,y), f(x,y), g(x,y) and n(x,y) are real and defined for x≧0 and y≧0. The extension work can be completed by a computer program in which memory space need only be allocated for real arrays because H((u, v)), F((u, v)), G((u, v)), and N((u, v)) are all real.
Using the real complete symmetry assumptions and with other known Fourier properties, the above-referenced Wiener filter can be expressed:
This equation has fundamental importance for resolving the Wiener filter. In this equation, G(u,v) can be directly computed from the image g(x,y), H(u,v) is assumed to be known and can be estimated from the system electro-optical and motion Modulation Transfer Functions (“MTFs”), and N(u,v) can be calculated from the appropriate noise model.
The Wiener restoration scheme can be expressed as:
The improvements made by the present Wiener restoration scheme include avoiding the noise enhancement and/or noise introduction found in a true restoration process. This is because even though it is generally assumed that |N(u,v)|≦|G(u,v)|, since N(u,v) may have a different sign from G(u,v), the factor
may actually be greater than 1 (for instance, in the case of N(u,v)=−G(u,v)). A direct inverse restoration does not have any control over the noise, and when H(u,v) approaches zero, the filter goes unbounded.
To implement the Wiener filter in the form:
three components, H((u, v)), G((u, v)), and N((u, v)), are estimated. Suppose the size of the intended restoration kernel is n×n. Then the above equation becomes:
or, written simply:
where Wn(u,v) is the discrete Wiener kernel and n is the size of the discrete Wiener kernel. Subsequently, the construction of Wn(u,v) can be broken down into computations for Hn(u,v), Gn(u,V) and Nn(u,v) respectively.
1. The Computation of Hn(u,v)
Option 1: Individual System Approach
If the Modulation Transfer function (MTF) of the individual imaging system has been measured in either laboratory or field conditions, then the Fourier transform of the optical transfer function, H(u,v), can be reconstructed through the following procedure, using the derivative continuity assumption of H(u,v).
By separability, H(u,v)=Hu(u)Hv(v). The construction for Hu(u) and Hv(v) are similar. The following describes the construction of Hu(u). Since MTFu(0)=1, Hu(0)=MTFu(0)=1. Assume that the set U0={Uk}k=1n contains all frequencies such that 0<u1<u2< . . . <un and MTFu(uk)≡0. For u ∈[0, u1), let Hu(u)=MTFu(u). For u ∈[u1, u2), the present embodiment checks the derivatives (or the slope on the plots) of MTFu(u) at point u1. If:
then let Hu(u)=MTFu(u). Otherwise, let Hu(u)−MTFu(u). This process can be continued as follows:
Let sign(k) be defined as:
where un+1=∞.
This procedure would allow the OTF to be reconstructed with continuous derivatives. There is a simple situation when MTFu(u)≠0. Since MTFu(u) is continuous and MTFu(0)=1, MTFu(u)>0. Consequently, the following relationship is provided: Hu(u)=MTFu(u).
Once Hu(u) and Hv(v) are obtained through the above procedure, they can be resampled using a regular spline technique to match the size and Wiener kernel. Suppose the discrete forms of these two functions are HNn(u) and Hvn(v), then Hn(u,v) can be estimated by simply letting Hn(u,v)=Hun(u)Hvn(v).
For example,
Option 2: Group Approach
The second option is to assume that H(u,v) of the imaging system satisfies a universal mathematical or empirical model for a group of imaging systems. This option is useful when measuring the MTF of the individual imaging system is impossible, such as the home-use desktop scanner or a personal camera situation. However, the manufacturer may assume that all their desktop scanners or cameras of the some model have the same optical transfer function H(u,v). Again, the universal H(u,v) can be derived as described above in option 1 in the laboratory of the manufacturer. Therefore the manufacturer can implement a compensation or restoration procedure in the processing components, such as hardware, software, or firmware, of the scanner, camera, or other imaging system, so that the images produced by the scanners or camera would be crisper or more realistic than the images acquired by scanners or cameras without the restoration chips. For medical imaging systems and military imaging systems, this could potentially enhance the detection of normally undetectable anomalies or targets.
Option 3: Optical Model Approach
In an optional alternate approach to option 1 and option 2, it is assumed that the quality of the image is only affected by the optics of the imaging system. It is assumed that the optical transfer function H(u,v) takes some standard forms, such as those derived from a diffraction-limited system with a specific pupil functions. The key is not the computation of H(u,v) itself, rather it is the procedure that integrating H(u,v), G(u,v) and N(u,v) for the restoration of the image.
2. The computation of Gn(u,v)
Option 1: Global Estimation Approach
The direct approach for computing Gn(u,v) consists of two steps: (1) compute the discrete Fourier transform of the whole image G(u,v); and (2) take the first n frequencies (including both positive and negative frequencies) from G(u,v). This produces exact Gn(u,v). However, this approach may require a great deal of time to compute Gn(u,v) if the image size is big.
Option 2: Local Estimation Approach
The method and system may also compute Gu(u,v) using a sampling approach as follows. Letting the restoration kernel be of size n×n, a number, N, of non-overlapping random sample windows are generated in the scene. A sampled Gn,k(u,v) is computed for each of those sample windows. The averaged
for all those sampled windows can be use to estimate the true Gn(u,v). This method is much faster than the global estimation approach for large images.
3. The computation of Nn(u,v)
Option 1: Instrumental Approach
N(u,v) could be estimated from laboratory measurements. This can be done for example, by manufacturers of scanners or cameras.
Option 2: Minimum Noise Approach
As an alternative to testing the imaging system noise, and if the image is acquired and written as integers, a minimum noise approach may be used in which:
Option 3: Reference Target Approach
If the imaging system is one of a kind, such as an airborne or a satellite-borne remote sensing system, the noise level can be computed using a reference target, or computed from a selected homogeneous region from the whole image.
Option 4: Parametric Approach
Finally, the noise may be assumed to satisfy some mathematics model, such as a Gaussian Noise.
4. The procedure for computing Wn(u,v) and wn(x,y)
The computational procedure for the Wiener restoration, shown in
where wn(x,y) is subject to the constraint:
In particular, the following procedure, shown in
For example, in an optional embodiment the present invention may be implemented for DaedaluS™ DS 1260 thermal data, is shown in
As discussed above, the present method may be implemented in the electro-optical imaging system through software, hardware, firmware, remote processing, or the like. One optional embodiment of a device implementing the method is shown in
The present invention also includes a data structure 42 communicating with the data processor 40. The data structure 42 may take many forms including magnetic storage, optical storage, random access memory, read-only memory, electrically alterable read-only memory, flash memory, electrically programmable read-only memory, or any other form of memory.
The data structure 42 stores instructions for the data processor 40 to be implement a method according to the present invention to create a restored image 44. For example, in one optional embodiment, the data structure 42 stores instructions for the data processor 40 to implement the method shown in
where wn(x,y) is subject to the constraint:
As described above, many options are available for determining the Fourier transforms of a system optical transfer function, a spatial representation of the image, and a system noise function. However, in a further embodiment, the Fourier transforms of a system optical transfer function and a system noise function may be determined beforehand, using one of the options described above or any other method, and stored in the data structure 42. While this method may be used for any implementation, it is contemplated that scanners, cameras, medical imaging devices, and the like could use this further method.
While certain embodiments of the present invention have been shown and described, it is to be understood that the present invention is subject to many modifications and changes without departing from the spirit and scope of the claims presented herein.
The present application claims the priority of U.S. Provisional Application Ser. No. 60/389,650, entitled “Adaptive Wiener Image Restoration Kernel,” filed Jun. 17, 2002 by Applicant herein.
The U.S. Government has a paid-up license in this invention and the right in limited circumstances to require the patent owner to license others on reasonable terms as provided for by the terms of DOE-AC08-96NV11718 awarded by the United States Department of Energy.
Number | Name | Date | Kind |
---|---|---|---|
5414782 | Carasso | May 1995 | A |
5694484 | Cottrell et al. | Dec 1997 | A |
6285799 | Dance et al. | Sep 2001 | B1 |
6819361 | Lee et al. | Nov 2004 | B1 |
6972905 | Ludwig | Dec 2005 | B2 |
Number | Date | Country | |
---|---|---|---|
60389650 | Jun 2002 | US |