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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2d43a1324a_07366f2d43988409.jpg)
[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
Get step-by-step solutions from verified subject matter experts
