Matlab code: Histogram equalization without using histeq function | IMAGE PROCESSING

Matlab code: Histogram equalization without using histeq function | IMAGE PROCESSING

瀏覽:781
日期:2024-07-08
%Read a grayscale Image or a matrix mxn A=imread('tire.tif'); figure,imshow(A); %Specify the bin range[0 255] bin=255; %Find the histogram of the image. Val=reshape(A,[],1); Val=double(Val); I=hist(Val,0:bin); %Divide the result by number of pixels Output...看更多