[Exercises]
[Workspace]
Purpose:
The purpose of this lab is to investigate image sharpening
using high-pass filtering techniques.
Activities:
-
Read the image $DIP/data/retina.kdf, convert its data type to
"float", and display it, using operators User defined, Convert Type,
and Display Image.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Data Manip:Data Conversion:Convert Type
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Perform the convolution of the image and the Laplacian kernel
contained in the file $DIP/data/laplacian.ascii, and display the
result. Use operator LinearOp (Linear Operator) to perform the convolution.
Remember to set the laplacian kernel origin to (1,1) (hot spot parameter)
so that the image is not translated.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Arithmetic:Linear Transforms:LinearOp (Linear Operator)
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Pad the kernel and take its Fourier transform to visualize its
response in the frequency domain. The operators are Pad and FFT.
Try adding the "SA PSeudo" colormap to the spectrum prior to
displaying it using the Autocolor operator.
-
Glyphs:Data Manip:Size & Region Operators:Pad
-
Glyphs:Arithmetic:Linear Transforms:FFT
-
Glyphs:Visualization:Map Display & Manip:Autocolor
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Add the original image with its filtered version and display
result.
-
Glyphs:Arithmetic:Two Operand Arithmetic:Add
-
Glyphs:Visualization:Non-Interactive Display:Display Image
Exercises
-
Design a combined kernel which performs the laplacian and the
addition simultaneously.
-
Perform the same experiment, but modifying it to use high-pass
kernels.
Khoros Workspace
Execute the visual program c6s4laplacian-sharp.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved