Split the image into two parts, right and left. Apply on the right part – The conversion of the logarithmic and the left exponential conversion. what's wrong with my code?
clcclearclose all%%Lets Start.
I = imread('2.jpg');I = rgb2gray(I);y = 15*log(1+double(I));x = 1*(double(I).^1/100);figureimshow(uint8(y))figureimshow(double(x))for i = 1:375 for j = 1:500 if (j<=250) I(i,j) = 15*log(1+double(I(i,j))); else I(i,j) = 1*(double(I).^1/100); end endendfigureimshow(I)
Best Answer