Question: [5 points] Write a Matlab function that corrects the brightness of a given image. The function should take as arguments an image, a number between

 [5 points] Write a Matlab function that corrects the brightness of

[5 points] Write a Matlab function that corrects the brightness of a given image. The function should take as arguments an image, a number between 0 and 100 (amount of brightness correction, expressed in percentage terms), and a third parameter indicating whether the correction is intended to brighten or darken the image. It should return a corrected grayscale image. [adapted from the suggested textbook by Marques Q6.11] 12 = adjustBrightness(1, 30, 'b' ); 13 Examplefunction calls: //12 is 30% brighter //13 adjustBrightness(1,30, 'd'); is 30% darker

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!