Question: Write matlab code for: Image: b.tif read the image into workspace using function imread display the image using function imshow convert the color image into

Write matlab code for:

Image: "b.tif"

read the image into workspace using function imread

display the image using function imshow

convert the color image into grayscale using function rgb2gray

display the histogram of the grayscale version using function imhist

enlarge the grayscale image by four times using function imresize

crop the enlarged image to its original size using function imcrop

display the image size, average intensity, maximum and minimum intensity

save the image into a file named output.jpg using function imwrite

--

Within the program, use comment lines to describe how to execute the program to demonstrate the successful completion of the above actions.

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!