F(k) and G(k) are the Fourier transforms of the extended sequences fe(x) and ge(x), respectively.

The diagonal elements of D in eq. (4.30) are the eigenvalues of H. Following eq. (4.23),

D(k,k)=λ(k)=i=0M1he(i)exp(j2πMki)=MH(k)k=0,1,...,M1(4.33)

where H(k) is the Fourier transforms of the extended sequences he(x).

Combining eq. (4.31) to eq. (4.33) yields

G(k)=M×H(k)F(k)k=0,1,...,M1(4.34)

The right side of eq. (4.34) is the convolution of fe(x) and he(x) in the frequency domain. It can be calculated with the help of FFT.

Now, consider the 2-D cases (with noise). Taking eq. (4.28) into eq. (4.20), and multiplying both sides by W–1,

W1g=DW1f+W1n(4.35)

where W–1 is an MN × MN matrix and D is an MN × MN diagonal matrix. The left side of eq. (4.35) is an MN × 1 vector, whose elements can be written as G(0, 0), G(0, 1), . . ., G(0, N– 1); G(1, 0), G(1, 1), . . ., G(1, N– 1);. . .; G(M– 1, 0), G(M– 1, 1), . . ., G(M– 1, N– 1). For u = 0, 1, . . ., M – 1 and v = 0, 1,. . ., N– 1, the following formulas exist

G(u,v)=1MNx=0M1y=0N1ge(x,y)exp[j2π(uxM+vyN)](4.36)

F(u,v)=1MNx=0M1y=0N1fe(x,y)exp[j2π(uxM+vyN)](4.37)

N(u,v)=1MNx=0M1y=0N1ne(x,y)exp[j2π(uxM+vyN)](4.38)

H(u,v)=1MNx=0M1y=0N1he(x,y)exp[j2π(uxM+vyN)](4.39)

The MN diagonal elements of D can be represented by

D(k,i)={MN×H(kN),kmodNifi=k0ifik(4.40)

where is a flooring function (see Section 3.2).

Combining eq. (4.36) to eq. (4.40) and merging MN into H(u, v) gives

G(u,v)=H(u,v)F(u,v)+N(u,v)u=0,1,...,M1v=0,1,...,N1(4.41)

To solve eq. (4.20), only a few discrete Fourier transforms of size M × N are needed.

4.3Techniques for Unconstrained Restoration

Image restoration can be classified into unconstrained restoration and constrained restoration categories.

4.3.1Unconstrained Restoration

From eq. (4.20), it can obtain

n=gHf(4.42)

When there is no a priori knowledge of n, an estimation of f, f^ is to be found to assure that H approximates g in a least squares sense. In other words, it makes the norm of n as small as possible

n2=nTn=gHf^2=(gHf^)T(gHf^)(4.43)

According to eq. (4.43), the problem of image restoration can be considered a problem of minimizing the following function

L(f^)=gHf^2(4.44)

To solve eq. (4.44), differentiation of L with respect to is needed, and the result should equal the zero vector. Assuming that H–1 exists and letting M = N, the unconstrained restoration can be represented as

f^=(HTH)1HTg=H1(HT)1HTg=H1g(4.45)

4.3.1.1Inverse Filtering

Taking eq. (4.28) into eq. (4.45) yields

f^=H1g=(WDW1)1g=WD1W1g(4.46)

Pre-multiplying both sides of eq. (4.46) by W–1 yields

W1f^=D1W1g(4.47)

According to the discussion about diagonalization in Section 4.2, the elements comprising eq. (4.47) may be written as

F^(u,v)=G(u,v)H(u,v)u,v=0,1,...,M1(4.48)

Equation (4.48) provides a restoration approach often called inverse filtering. When considering H(u, v) as a filter function that multiplies F(u, v) to produce the transform of the degraded image g(x, y), the division of G(u, v) by H(u, v) as shown in eq. (4.48) is just an inverse filtering operation. The final restored image can be obtained using the inverse Fourier transform

f^(x,y)=F1[F^(u,v)]=F1[G(u,v)H(u,v)]x,y=0,1,...,M1(4.49)

The division of G(u, v) by H(u, v) may encounter problems when H(u, v) approaches 0 in the UV plane. On the other hand, noise can cause more serious problems. Substituting eq. (4.41) into eq. (4.48) yields

F^(u,v)=F(u,v)+N(u,v)H(u,v)u,v=0,1,...,M1(4.50)

Equation (4.50) indicates that if H(u, v) is zero or very small in the UV plane, the term N(u, v)/H(u, v) could dominate the restoration result and make the result quite different from the expected result. In practice, H(u, v) often drops off rapidly as a function of the distance from the origin of the UV plane, while the noise usually drops at a much slower speed. In such situations, a reasonable restoration is possible to a small region around the origin point.

4.3.1.2Restoration Transfer Function

For real applications, the inverse filter is not taken as 1/H(u, v), but as a function of the coordinates u and v. This function is often called the restoration transfer function and is denoted M(u, v). The image degradation and restoration models are jointly represented in Figure 4.6.

Figure 4.6: Image degradation and restoration models.

A commonly used M(u, v) is given by

M(u,v)={1/H(u,v)ifu2+v2w021ifu2+v2w02(4.51)

where w0 is selected to eliminate the points at which H(u, v) equals zero. However, the restoration results obtained by this method often have a visible “ring effect.” An improved method is to take M(u, v) as

M(u,v)={kifH(u,v)d1/H(u,v)otherwise(4.52)

where k and d are both constants that are less than 1.

Example 4.1 Blurring a point image to obtain the transfer function and restore the image

The transfer function H(u, v) of a degraded image can be approximated using the Fourier transform of the degraded image. One full image can be considered a combined set of point images. If a point image is taken as the approximation of a unit impulse function (F[δ(x,y)]=1),thenG(u,v)=H(u,v)F(u,v)H(u,v).

Figure 4.7 illustrates the results of the restoration. Figure 4.7(a) is a simulated degradation image, which is obtained by applying a low-pass filter to an ideal image. The Fourier transform of the used low-pass filter is shown in Figure 4.7(b). The restoration results obtained using eq. (4.51) and eq. (4.52) are shown in Figures 4.7(c) and (d), respectively. Comparing these two results, the “ring effect” in Figure 4.7(d) is less visible.

Figure 4.7: Examples of restoration.

4.3.2Removal of Blur Caused by Uniform Linear Motion

In some applications, H(u, v) can be obtained analytically. One example is the application used to restore blurred images, which is caused by uniform linear motion.

First, consider the continuous case. Suppose that an image f(x, y) is captured for a uniform moving object on the plane and the moving components of the object in X and Y directions are denoted x0(t) and y0(t), respectively. The duration for image capturing is T. The real blurred image g(x, y), which is caused by the motion is

g(x,y)=0Tf[xx0(t),yy0(t)dt](4.53)

The Fourier transform of g(x, y) is

G(u,v)=g(x,y)exp[j2π(ux+vy)]dxdy=0T[f[xx0(t),yy0(t)]exp[j2π(ux+vy)]dxdy]dt(4.54)=F(u,v)0Texp{j2π[ux0(t)+vy0(t)]}dt

By defining

H(u,v)=0Texp{j2π[ux0(t)+vy0(t)]}dt(4.55)

Equation (4.54) can be written as

G(u,v)=H(u,v)F(u,v)(4.56)

If the motion components are given, the transfer function H(u, v) can be obtained from eq. (4.55).

A simple example is discussed below. Suppose that there is only motion along the X direction; that is, t = T and y0(t) = 0. When x0(t) = ct/T, the distance moved by f(x, y) is c,

H(u,v)=0Texp[j2πuctT]dt=Tπucsin(πuc)exp[jπuc](4.57)

when n takes an integer value, then H is zero at u = n/c.

When f(x, y) is zero or is known to be outside of the region 0 ≤ xL, the problem caused by H = 0 can be avoided and the image can be completely reconstructed from the knowledge of g(x, y) in this region.

Substituting x0(t) = ct/T into eq. (4.53), suppressing the time invariant variable y, and ignoring the scale parameters give

g(x)=0Tf[xctT]dt=xcxf(τ)dτ0xL(4.58)

Taking the differentiation with respect to x can provide an iterative formula

f(x)=g'(x)+f(xc)0xL(4.59)

Assuming that L = Kc, K is an integer, and p(z) is the part of scene moved in 0 ≤ z < c during the capturing period,

p(z)=f(zc)0zc(4.60)

It can be proven that eq. (4.59) can be written as

f(x)=k=0mg'(xkc)+p(xmc)0xL(4.61)

where m is the integer part of x/c. Since g′(x) is known, only p(x) is estimated to obtain f(x). A method to directly estimate p(x) from the blurred image is presented in the following.

First, define

f˜(x)=j=0mg'(xjc)(4.62)

Substituting eq. (4.62) into eq. (4.63), eq. (4.64) becomes

p(xmc)=f(x)f˜(x)(4.63)

Note that m ranges from 0 to K – 1 as x varies from 0 to L. Thus, p is repeated K times during the evaluation of f(x) from 0 to L. For each kcx < (k + 1)c, eq. (4.62) is calculated. Adding the results for k = 0, 1, ..., K − 2 gives

p(x)=1Kk=0K1f(x+kc)1Kk=0K1f˜(x+kc)(4.64)

The first sum on the right-hand side of eq. (4.64) is unknown, but it approaches the mean value of f(·) for large values of K. Suppose that the sum is taken as a constant A. Substitute eq. (4.62) into eq. (4.64), then

p(xmc)A1Kk=0K1f˜(x+kcmc)(4.65)A1Kk=0K1j=0kg'(x+kcmcjc)0xL

Combined with eq. (4.62) and eq. (4.63),

f(x)A1Kk=0K1j=0kg'[xmc+(kj)c]+j=0mg'(xjc)(4.66)

Reintroducing the suppressed variable y yields the final result

f(x,y)A1Kk=0K1j=0kg'[mmc+(kj)c,y]+j=0mg'(xjc,y)(4.67)

Example 4.2 Removing the blur caused by uniform linear motion

A restoration example for removing the blur caused by uniform linear motion is presented in Figure 4.8. Figure 4.8(a) is a 256 × 256 image, which is captured when there is uniform linear motion between the camera and the object in a scene. Suppose that the moving distance along the horizontal direction is 1/8 of the image size, which is 32 pixels. This image can be restored using eq. (4.66). When the moving distance is 32, the result is very good as shown in Figure 4.8(b). When the moving distance is 24 and 40, the results are rather poor as shown in Figures 4.8(c) and (d). The poor results are due to the inaccurate estimation of the moving speed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.47.253