Académique Documents
Professionnel Documents
Culture Documents
NAME:
DATE OF EXPERIMENT:
1
DIGITAL SIGNAL PROCESSING LABORATORY
1 THEORY
This lab is going to introduce you to the image processing capabilities in MatLab. Image
processing is a very important and widely used process in which images are processed to
retrieve information that is not visible to the naked eye, as well as it is used in a large
number of other applications where the standard picture is not enough.
The first step in this lab is to download all the jpg and tif files that are to be used in
this lab. You can locate them as a link on the webpage.
The second step is to set the directory of MatLab to the directory which contains your
image files. Be sure that you create this directory on your U-drive.
First, clear the MATLAB workspace of any variables and close open figure windows.
close all
To read an image, use the imread command. The example reads one of the sample images
included with Image Processing Toolbox, circles.gif, and stores it in an array named I.
I = imread('cameraman.tif');
Now display the image. The toolbox includes two image display functions: imshow and imtool.
imshow is the toolbox's fundamental image display function. imtool starts the Image Tool which
presents an integrated environment for displaying images and performing some common image
processing tasks. The Image Tool provides all the image display capabilities of imshow but also
provides access to several other tools for navigating and exploring images, such as scroll bars,
the Pixel Region tool, Image Information tool, and the Contrast Adjustment tool. This example
uses imshow.
imshow(I)
2
DIGITAL SIGNAL PROCESSING LABORATORY
1.2.1. Select any picture with .tif extended that from image folder and
3
DIGITAL SIGNAL PROCESSING LABORATORY
1.2.2. Select any picture with .tif extended from image folder and
1.2.3. Select any picture with .jpg extended from image folder and
Step 2. Use fspecial command and add Motion blurr effect with imfilter parameter.
In this section we can determine the number of fields bordered by the green line. These parts
that morphological operations can be done by performing simple object counting application.
1.4.1. Select any picture rice.png extended that from image folder and
Step4. Plot
4
DIGITAL SIGNAL PROCESSING LABORATORY
2 LAB WRITEUP
Please send me a write-up of your code in pdf format. You can write it as a word file, then save as
pdf.
Each lab grade consists of two sections. 50% of your grade is for coming to the lab. 50% is for
your write-up.
If you do not send the write-up within 2 weeks of the lab, you will not be allowed to submit a lab
writeup.
If your lab writeup is found to be substantially identical to another students using our special
forensics team, you and the other student will receive a substantial reduction in your grade.
At the top of your code you should have your name, student number, lab number, date you
performed the lab.
In the lab writeup you should answer all questions in the body of the lab report.
Please clearly label every question. You will not get credit for sections that are not clearly
labeled.
You must copy figures from Matlab and paste them into your word file, or save them as jpeg and
import them into your word file. All figures must have captions inside which clearly describe
what the figure is.