[Exercises]
[Workspace]
Purpose:
The purpose of this lab exercise is to perform one-level
forward and inverse wavelet transforms. You will compare the
reconstructed image against the original image.
Activities:
-
Read and display the image $DIP/data/gull.kdf. Use the
operators User defined and Display Image.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Take a one-level forward wavelet transform of the image, using
the operator Wavelet Transform. Use the file $DIP/data/daub2hd.ascii
as the "Highpass Filter Coefficient" file,
and $DIP/data/daub2ld.ascii as the "Lowpass Filter Coefficient"
file. Display the results using Display Image
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Wavelet:Linear Transforms:Wavelet Transform
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Take the inverse wavelet transform with one-level of
decomposition using the same filter coefficient files as you used in
Step 2, and display the results. Use the operators Wavelet Transform
and Display Image.
-
Glyphs:Wavelet:Linear Transforms:Wavelet Transform
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Calculate the absolute difference between the original image and
the reconstructed image using the Absolute Diff operator and display
the result. Determine the maximum and minimum of the absolute
difference using the Statistics operator.
-
Glyphs:Arithmetic:Two Operand Arithmetic:Absolute Diff
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Glyphs:Data Manip:Analysis & Information:Statistics
-
Extract the low-pass image (first quadrant) from the forward
wavelet transform image, zero-pad it to same size of the original
image, and take the inverse wavelet transform (using the same filter
coefficient files). Display the result. Use the operators Extract
, Pad, and Display Image.
-
Glyphs:Data Manip:Size & Region Operators:Extract
-
Glyphs:Data Manip:Size & Region Operators:Pad
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Calculate the absolute difference between the original image and
the image reconstructed with the low-pass image using the Absolute Diff
operator and display the result. Determine the maximum and
minimum of the absolute difference using the Statistics operator.
-
Glyphs:Arithmetic:Two Operand Arithmetic:Absolute Diff
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Glyphs:Data Manip:Analysis & Information:Statistics
Exercises
-
Perform the same experiment, but with different images.
-
Perform the same experiment, but use other quadrants of the
transform to reconstruct the image.
Khoros Workspace
Execute the visual program c8s2W-compression.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved