0% found this document useful (0 votes)
57 views

Computer Vision Lab Manual 9: University of Agriculture, Faisalabad (Uaf)

This document provides instructions for a computer vision lab manual using MATLAB. Students are asked to open MATLAB, write code to complete exercises loading and manipulating images. Exercises include loading an image and displaying it, loading multiple images into separate scripts, converting a colored image to grayscale and binary, converting other images to grayscale and binary, and displaying RGB channel separations for different images. Students are instructed to save their MATLAB code and image files in designated folders, comment their code, and submit it online to their teaching assistant for grading.

Uploaded by

muhammad junaid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Computer Vision Lab Manual 9: University of Agriculture, Faisalabad (Uaf)

This document provides instructions for a computer vision lab manual using MATLAB. Students are asked to open MATLAB, write code to complete exercises loading and manipulating images. Exercises include loading an image and displaying it, loading multiple images into separate scripts, converting a colored image to grayscale and binary, converting other images to grayscale and binary, and displaying RGB channel separations for different images. Students are instructed to save their MATLAB code and image files in designated folders, comment their code, and submit it online to their teaching assistant for grading.

Uploaded by

muhammad junaid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

COMPUTER VISION

LAB MANUAL 9
Dr. Muhammad Ahsan Latif, Ms. Anosh Fatima

SPRING SEMESTER 2023


UNIVERSITY OF AGRICULTURE, FAISALABAD (UAF)
MATLAB-Computer Vision and Digital Image Processing
Tool box

Instructions
• Open New Script from Toolbar
• Write code (all examples and Exercises) in Editor Window
• Click Run from Tool Bar to see output in command window.
• Save all MATLAB Files in Separate folder called DIP Labs
• Write name of file: your group number and lab number. E.g., G2Lab3
• Click add to the path
• Check results (output)
• Submit MATLAB code to TA online. Solve each exercise in separate script.
• ALL Code must be properly commented for submission, explaining each each step/line
of exercises.

TASK
• Save Images (provided by teacher) in DIP Practical folder in your system.
• Label those images as following:
Exercise 1: Loading of Image and displaying it
• Write following MATLAB code and run it.
• Check out its output.

Exercise 2:
• Write MATLAB code to load all other images in separate scripts.
o Sun, rainbow, crops, pink, circles, and boxes
• Check out their outputs.
Exercise 3: Conversion of Colored Image into Gray Scale Image
Exercise 4: Conversion of colored image into binary image
Conversion from RGB image to Gray Scale and Binary Images

Exercise 5:
• Write MATLAB code to convert all other images in separate scripts.
o Sun, strips, crops, pink, circles, and boxes
• Check out their outputs.

Exercise 6: Displaying RGB image in separate channels


Exercise 7: Displaying another RGB image in separate channels.
Exercise 8:
• Write MATLAB code to display image “pink” in separate RGB channels.

You might also like