Line 24: Line 24:
 
[[Image:Filter1_image.png|thumbnail|left|800px]]
 
[[Image:Filter1_image.png|thumbnail|left|800px]]
 
Can you tell that the filtered image is "smoothed"? Let's look at the images as 3-dimensional projections for easier visualization (via MATLAB's mesh command):
 
Can you tell that the filtered image is "smoothed"? Let's look at the images as 3-dimensional projections for easier visualization (via MATLAB's mesh command):
[[Image:MeshOriginal.png|thumbnail|left|4800px]][[Image:MeshFiltered.png|thumbnail|left|400px]]
+
[[Image:MeshOriginal.png|thumbnail|left|400px]][[Image:MeshFiltered.png|thumbnail|left|400px]]
  
 
[[Image:Filter2_image.png|thumbnail|left|800px]]
 
[[Image:Filter2_image.png|thumbnail|left|800px]]

Revision as of 17:21, 25 November 2009


Spectral Analysis of 2D Signals (December 1, 2009)


Here, I will describe and explain the basics behind analyzing the spectrum of 2-D signals - principally images! - Ryan Scheidt



The following image, commonly referred to as "Lena" (sometimes also "Lenna"), is a famous image utilized in standard image processing algorithms and testing. The background behind this image is quite interesting. Here are some links for the interested reader: [1], [2]

Lena.gif



Spectral analysis of two-dimensional signals is not much different than the familiar one-dimensional FFT that we are (more) accustomed to. The only difference is that our signals are now represented in one more plane. We can think of this difference (1D vs. 2D) as the difference between, say, a one-dimensional longitudinal wave in a slinky (like this: [3]), versus a two-dimensional wave from a trampoline (e.g. drop a baseball in the center (or given any other excitation), and the wave will propagate in both x and y-directions ([4]).

Let's look at what the 2-D FFT of Lena looks like. We will look at some simple 3X3 filters that are then convolved with the original image to create a filtered image. The following pictures show the original image (Lena), the image of the filter, and the filtered image (done with conv2). MATLAB m-files available upon request.

The colormaps to the right of each image show the corresponding values for each shade of gray (i.e. continuum from white to black). Each image is "normalized to 256 values" so that for each pixel, the lowest values (even if negative) are mapped to 0 (black) and the highest values are mapped to 255 (white).

Note: click on the following images and follow "Full resolution" hyperlink to see full image. Let's start with the filter = [1 2 1; 2 4 2; 1 2 1], commonly referred to as an "average filter":

Filter1 image.png

Can you tell that the filtered image is "smoothed"? Let's look at the images as 3-dimensional projections for easier visualization (via MATLAB's mesh command):

MeshOriginal.png
MeshFiltered.png
Filter2 image.png
Filter3 image.png
Filter4 image.png
Filter5 image.png

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang