[Exercises]
[Workspace]
Purpose:
The purpose this experiment is show how reduce the size of
an image without interpolation and with interpolation.
Activities:
-
Reduction without interpolation:
-
Read the image $DIP/data/wksp-img.kdf and visualize
with User defined and Display Image operators.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Create an image of size 256x256 with unitary impulses
along the width and height separated by 4 pixels (width spacing
using the Impulse operator. Take its FFT
and display it using the operators FFT and Display Image.
-
Glyphs:Input/Output:Generate Data:Impulse
-
Glyphs:Arithmetic:Linear Transforms:FFT
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Multiply the original image with the image with impulses using the
Multiply operator and display it with Display Image, take its FFT e
visualize it using the operators FFT and Display Image.
Reduce the size of the result of the multiply using the Shrink
operator and display it. Take the FFT and visualize it with FFT
and Display Image operators.
-
Glyphs:Arithmetic:Two Operand Arithmetic:Multiply
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Glyphs:Arithmetic:Linear Transforms:FFT
-
Glyphs:Data Manip:Size & Region Operators:Shrink
-
The previous reduced image was performed without any interpolation, just
a subsampling. Now we will do the image reduction using an interpolation
using a low pass filter before the subsampling:
-
Of the $DIP/data/wksp-img.kdf take its FFT (Fast Fourier
Transform) with Scale output by 1/sqrt(N) per transform axis using
the FFT operator and display its spectrum, use the FFT
and Display Image operators.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Glyphs:Arithmetic:Linear Transforms:FFT
-
Generate a spatial frequency image with Low-Pass operator and
multiply with the result of the FFT and display with Display Image.
Extract the inverse FFT of the result of the multiplication with scale
output by 1/N per transform axis. Specify calculation of the "Log
(Magnitude +1)" and visualize using Complex to Real and Display Image
operators.
-
Glyphs:Image Proc:Frequency Filter:Low-Pass
-
Glyphs:Arithmetic:Two Operand Arithmetic:Multiply
-
Glyphs:Arithmetic:Linear Transforms:FFT
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Glyphs:Arithmetic:Complex Operators:Complex to Real
-
Multiply the output of the Complex to Real operator with the
output of the Impulse operator and performance of the same manner that
the item 3 of the Reduction without interpolation.
Khoros Workspace
Execute the visual program c6s7reduction.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved