[Exercises]
[Workspace]
Purpose:
The purpose of this lab is to gain an understanding of the 2D
discrete Fourier transform by applying it to a pulse image.
Activities:
-
Create a vertical binary image by thresholding at level 0 a
sinusoidal signal (128x128) in the width direction. User the
operators
Sinusoid and the greater than or equal operator
>=.
Display the image with the
Display Image operator.
-
Glyphs:Input/Output:Generate Data:
Sinusoid
-
Glyphs:Arithmetic:Comparison Operators:
>=
-
Glyphs:Visualization:Non-Interactive Display:
Display Image
-
Take the forward Fourier transform and display the result. Use
the
FFT operator. Set the "Scaling Option" to "Unity Scaling".
-
Glyphs:Arithmetic:Linear Transforms:
FFT
-
Extract the center horizontal line of the DFT. Determine the
magnitude and phase components and plot the results. Use
operators
Complex to Real,
Extract and
Display 2D Plot.
-
Glyphs:Data Manip:Size & Region Operators:
Extract
-
Glyphs:Arithmetic:Complex Operators:
Complex to Real
-
Glyphs:Visualization:Plot Display:
Display 2D Plot
-
View the plots with "Plot Type" "Discrete".
-
Print the DFT values of the extracted line, use operator
Print Data.
-
Glyphs:Input/Output:Information:
Print Data
-
Glyphs:Input/Output:Information:
File Viewer
Exercises
-
Perform the same experiment but with different images.
-
Create a sinusoidal signal in the height direction and repeat the
experiment.
-
Perform the same experiments but with two sinusoidal signals, one
in the horizontal direction and the other in the vertical direction.
-
Perform the same experiment but with piece-wise functions.
Khoros Workspace
Execute the visual program c5s1fourier-square.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved