Computer Vision Lab Manual 9: University of Agriculture, Faisalabad (Uaf)
Computer Vision Lab Manual 9: University of Agriculture, Faisalabad (Uaf)
LAB MANUAL 9
Dr. Muhammad Ahsan Latif, Ms. Anosh Fatima
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.