[Exercises]
[Workspace]
Purpose:
The purpose this experiments is demostrate some DFT of
Simple Images.
Activities:
-
Sinusoidal
-
Use the
Sinusoid operator and generate object of 128x128 with
attributes "Num. along Width" equal 7 and "Num. along Height" equal
7. Normalize with
Normalize operator. Extract its FFT seting Unity
scaling and Log (Magnitude + 1) using
FFT and
Magnitudes operators,
normalize this result. Inset the two results normalized and display
using
Inset and
Display Image operators.
-
Glyphs:Input/Output:Generate Data:
Sinusoid
-
Glyphs:Data Manip:Data Conversion:
Normalize
-
Glyphs:Arithmetic:Linear Transforms:
FFT
-
Glyphs:Arithmetic:Complex Operators:
Magnitudes
-
Glyphs:Data Manip:Size & Region Operators:
Inset
-
Glyphs:Visualization:Non-Interactive Display:
Display Image
-
Rectangle
-
Use the
Constant operator and generate object constant with
"Width" equal 7, "Height" equal 8, and change "Real Constant Level" to
1. Padding of a data object create change its attributes "Padded
Width" to 128, "Padded Height" to 128, "Width Offset" to (128-7)/2,
"height Offset" to (128-8)/2. Now proceed how item 1.
-
Glyphs:Input/Output:Generate Data:
Constant
-
Glyphs:Data Manip:Size & Region Operators:
Pad
-
Gaussian
-
Use the
2D Gaussian operator and generate gaussian function
image of 128x128, seting attributes "Peak Location along Width (X)"
to 64, "Peak Location along Height (Y)" to 64, "Variance along Width"
to 4*4, and "Variance along Height" to 4*4. Now proceed how item 1.
-
Glyphs:Input/Output:Generate Data:
2D Gaussian
-
Impulses
-
Use the
Impulse operator and generate object size of 128x128,
change attributes "Num. along Width" to 128/7, "Num. along Height" to
128/8, "Width Spacing" to 7, "Height Spacing" to 8, and "Real Value of
Impulse" to 1. Select data type to "Unsigned Byte". In this case use
to
FFT operator Scale output by 1/sqrt(N) per transform axis. Now
procced how item 1.
-
Glyphs:Input/Output:Generate Data:
Impulse
Khoros Workspace
Execute the visual program c5s4dft-simple-images.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved