Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need matlab codes.Please give all required information as comment 2) Load and

ID: 3729144 • Letter: I

Question

I need matlab codes.Please give all required information as comment 2) Load and display pout.tif image which is present in Matlab a) Obtain the histogram of the image. Is it a low contrast or high contrast image? b) Using imadjust function with default values, apply a contrast streching. Display the images and histograms. Describe the effect of imadjust function. c) Apply gamma correction to the same original image by using gamma-1, gamma-2, gamma-0.5 and by mapping the lowest input intensity to 0 and highest intensity to 1. Compare the results. d) Apply histogram equalization to the same original image. How does the image change?

Explanation / Answer

a. image = imread('pout.tif'); % TO read image (default image);

imshow(image) % To display loaded image..

b. image2 = histeq(image) ; % for improving contrast

imwrite(image2,'pout.tif'); % To write the improved image

c. imadjust(image,[],[],1); % for gamma = 1

imadjust(image,[],[],2); % for gamma = 2

imadjust(image,[],[],0.5); % for gamma =0.5

% when the intensity is 1 it means it is linear mapping from input to output

d.image2=histeq(image); % it increases the clarity of image...