Assignment 3

pdf

School

Western University *

*We aren’t endorsed by this school

Course

4445

Subject

Mechanical Engineering

Date

Jan 9, 2024

Type

pdf

Pages

2

Uploaded by AmbassadorCrownLlama4

Report
ECE4445 / MBP4445 / ECE9201 / ECE9021 / BME9509 / MBP9509 Fall 2023 Page 1/2 INTRODUCTION TO DIGITAL IMAGE PROCESSING ASSIGNMENT 3 Due date: Friday, November 10, 2023 by 11:55 pm Total marks: 5 Late penalty: 0.5 marks per day overdue. Late assignments will not be accepted after 11:55 pm on Monday, November 13, 2023, and a mark of zero will be given. All assignments will be done in groups , and the same final mark for the assignment will be given to all group members. You should stick with the same group as for previous assignments. Instructions for submitting answers are given with each question below. Note that I allow you to keep resubmitting until the deadline. Only the last submission is available to the TAs for marking. I recommend that all group members should agree to a submission before uploading it. Only one person in the group needs to submit on behalf of the entire group. CONVENTIONS Fixed-point font ( Courier ) is used to denote MATLAB commands, variables, and filenames. OBJECTIVES To write your own function for histogram equalization. PROBLEMS Write a MATLAB function that implements the histogram equalization algorithm that was described in the lectures. The function header should have the form: function im2 = myequalize_#(im) where im is a uint8 grayscale image (like pout.tif in MATLAB), im2 is the uint8 output image and # is your 2-digit group number. For instance, if you are part of AssignmentGroup-01, your function name would be myequalize_01. If you are part of AssignmentGroup-17, your function name would be myequalize_17. You can use any built-in MATLAB functions in your code except for histeq . A mark of zero (0) will be given if you use histeq . Note that the output of histeq may be different than that of myequalize_# since they are using different approaches for histogram equalization, so you cannot use the output of histeq to verify if your function is working correctly. All code and answers requested below must be submitted using OWL. To provide answers via OWL: 1. One group member should log into OWL and access the course site. 2. Select the “Assignments” tool. 3. From the page tha t comes up, select “Assignment 3”. 4. You will now reach the submission page for Assignment 3. Follow the instructions below for each part to submit answers.
ECE4445 / MBP4445 / ECE9201 / ECE9021 / BME9509 / MBP9509 Fall 2023 Page 2/2 (a) [4.5 marks] Save the function in a file called myequalize_#.m where # is your 2-digit group number. NOTE: Use the exact filename and function name as specified in these instructions. All letters are in lowercase. Your function should be commented. When you are on the submission page in OWL for Assignment 3, scroll to the bottom and attach your M-file. Also, cut and paste this code into the text box. (b) [0.5 marks] Equalize the uint8 intensity image pout.tif using myequalize_# . This image is available as part of the MATLAB installation. Using the subplot command and the imshow command, display the original and equalized images side-by-side in one figure window with the original image on the left side of the equalized image. You will need to use the help command to get more information about subplot . Once you generate the display, you should save the display by selecting “File” in the figure window and then “Save As…”. In the dialog box that comes up, select “TIFF image (*.tif)” as the output type and for “File name”, enter “3 b _#” without quotes where # is your 2-digit group number (01, 02, …) . This will save the figure in the file c alled “3 b _#.tif”. Attach it in OWL as you did the M-file. Again, each group should only make one submission.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help