Question: Write a Matlab code which take a single 2-D matrix input argument (an image) and 1. Scale the matrix so that the maximum pixel value

Write a Matlab code which take a single 2-D matrix input argument (an image) and

1. Scale the matrix so that the maximum pixel value is =1

2. Calculate the mean pixel value of the scaled matrix

3. Condtionally prints the following strings to the monitor

"Image is dark" if the mean x<0.5

"Image is normal" if the mean x=0.5

"image is bright" if the mean x>0.5

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!