Question: *MATLAB* Download attached lighthouse.jpg to your computer. Write a function with one input argument and three output arguments. The input argument is the file path

*MATLAB* Download attached lighthouse.jpg to your computer. Write a function with one input argument and three output arguments. The input argument is the file path of this image. The function will read in this image, calculate the meanpixel intensity separately of the red, green, and blue channels of the image, and return the mean intensities as the three output arguments.

For example:

>> [r, g, b]=CalInt('lighthouse.jpg')

r =

103.7884

g =

100.4435

b =

98.2279

*can use any picture file, doesnt have to be specifically lighthouse*

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!