1. Engineering
  2. Computer Science
  3. 5 points write a matlab function that corrects the brightness...

Question: 5 points write a matlab function that corrects the brightness...

Question details

[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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution