MATLAB image enhancement

I = imread('pout.tif');% read the image
subplot(121), imshow(I);% display the original image
subplot(122), imhist(I)% display its histogram
Insert picture description here
I = imread('tire. tif');%Read image
J = histeq(I);%Histogram equalization
figure;%Display the original image and the equalized image
subplot(121), imshow(I); subplot(122), imshow(J )
figure;% shows the histogram of the original image and the equalized image
subplot(121), imhist(I,64); subplot(122), imhist(J,64)
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_38127487/article/details/115185938