Line 1 Slope =(75-0)/(100-0) -0.75 Equation of line : y=0.75x Line 2 Slope = (225-75)/(150-100) = 3 Equation of line: (y-75) = 3(x-100) > y= 3x - 225 Line 3 Slope - (255-225)/(255-150) -0.286 Equation of line: (y-225) -0.286(X-150) => y=0.286x + 182.14 Using the transformation graph above, I have developed a contrast enhancement program below. Please run this program in MATLAB and plot the "before" and "After image" Contrast Enhancement Program: Contrast enhancement Author: ABC clear all; I = imread('fig_1_4_a.jpg'); S = size (I); I = double (I); J = zeros (S (1), S (2)); for i = 1:S(1) for j = 1:S (2) if I(ij) =150) MOOI! S = size (I); I = double (I); J = zeros (S(1), S (2)); for i = 1:5(1) for j = 1:S (2) if I(i, j) =150) J(i,j) - 0.286* (I(i,j)) + 182.143; end end end imshow (I, [0,255]); figure; imshow (J, [0,255]); 150 Original image Using problem I as a guide: Find The Equations of the lines Develop a Matlab program Plot the before and after image. Do you see any differences between the outputs of problem! and problem 2? Line 1 Slope =(75-0)/(100-0) -0.75 Equation of line : y=0.75x Line 2 Slope = (225-75)/(150-100) = 3 Equation of line: (y-75) = 3(x-100) > y= 3x - 225 Line 3 Slope - (255-225)/(255-150) -0.286 Equation of line: (y-225) -0.286(X-150) => y=0.286x + 182.14 Using the transformation graph above, I have developed a contrast enhancement program below. Please run this program in MATLAB and plot the "before" and "After image" Contrast Enhancement Program: Contrast enhancement Author: ABC clear all; I = imread('fig_1_4_a.jpg'); S = size (I); I = double (I); J = zeros (S (1), S (2)); for i = 1:S(1) for j = 1:S (2) if I(ij) =150) MOOI! S = size (I); I = double (I); J = zeros (S(1), S (2)); for i = 1:5(1) for j = 1:S (2) if I(i, j) =150) J(i,j) - 0.286* (I(i,j)) + 182.143; end end end imshow (I, [0,255]); figure; imshow (J, [0,255]); 150 Original image Using problem I as a guide: Find The Equations of the lines Develop a Matlab program Plot the before and after image. Do you see any differences between the outputs of problem! and problem 2