資源描述:
《直方圖均衡化、規(guī)定化程序及結(jié)果》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、A=imread(,a.jpg’);I=rgb2gray(A);J=histeq(I):figure,imshow(A)figure,imshow(I):title(’原figure,imhist(J):figure,imhist(I);figure,imshow(J):片1結(jié)果原灰色圖像8000均衡化圖像的B:方圖均衡化圖像片2結(jié)果原灰色閣像原圖像的灰度直方圖80007000600050004000300020001000均衡化圖像的立方圖均衡化閿像二、直方圖規(guī)定化程序I=imread(’tire,tif’);J二histeq(I,32);[counts,x]=imhi
2、st(J);Q=imread(’a.jpg’);figure;imshow(Q):title(’原圖像’);A=rgb2gray(Q);figure;imhist(A);title(’原圖像直方圖’);M=histeq(A,counts):figure;imshow(M):title(’直方圖規(guī)定化后的figure;imhist(M);title(’規(guī)定直方圖’);Figure:subplot(1,2,1):imhist(I,64);subplot(1,2,2):imhist(J,64):圖片1結(jié)果原閣像800070006000500040003000200010000原
3、閿像直方閿直方閣規(guī)定化后的閣像規(guī)定直方圖片2結(jié)果80007000600050004000300020001000原閣像原圖像直方圖50100150200250直方閣規(guī)定化后的閣像規(guī)定直方圖