You are on page 1of 3

6.

Unsharp Masking in the Frequency Domain

(a) Download image FigP4.6(a)(blurry_moon).tif and enhance it using un sharp masking. Your
final result should be of class uint8, which is the same class as the result obtained in Project
3.6. Use a Butterworth high pass filter of order 2 with D0 = 256 to generate the sharp filter
that is added to the original (see Problem 3.6). Vary k in increments of 1 until the absolute
difference between your result and the result from Project 3.6 is as small as you can make
it. Display both results.
Matlab solution for problem 6 (a)

Image sharpened using unsharp masking


Original image in the spatial
domain.
Image sharpened with unsharp masking in the
frequency domain techniques based on
a Butterworth filter and a scaling factor of 5.

(b) Repeat (a) but this time using a frequency domain filter generated from the
spatial mask w = [0 1 0; 1 -4 1; 0 1 0] (see Section 4.4). Convert your final result to class
uint8. The absolute difference should be zero in this case.
Unsharp masking result obtained using
a frequency domain filter generated
from the spatial filter used in (a).

You might also like