-n');Рsubplot(2,3,4);РT1=histeq(i1,n);Рimshow(T1);title('Out Image');Рimwrite(T1,'adjusted.jpg','jpg');Рsubplot(2,3,5);Рimhist(T1);Р利用mountain.jpg图像的直方图(imhist函数可生成),编写直方图均衡化函数。Р%1Рfigure;Рsubplot(2,3,1);Рi1=imread('D:\images\mountain.jpg');Рi1=im2double(i1);Рimshow(i1);title('Input Image');Рsubplot(2,3,2);Рimhist(i1);title('原直方图')Рsubplot(2,3,3);РT1=histeq(i1);Рimshow(T1);Р%2Рsubplot(2,3,4);Рr=[0:5:255];Рn=[r<=5].*(r.*50+550)+[r>5].*[r<=20].*(r.*4+600)+[r>20].*[r<=180].*(1000-0.8.*r)+[r>180].*[r<=225].*(5.*r-200)+[r>225].*[r<=255].*(200+2.*r);;Рplot(r,n);title('r-n');Рsubplot(2,3,5);РT2=histeq(i1,n);Рimshow(T2);Рimwrite(T2,'adjusted.jpg','jpg');Рsubplot(2,3,6);Рimhist(T1);title('均衡化后直方图')Р四.实验报告要求:Р?用imshow, plot等函数生成各类图像及曲线,提交原图像和相关处理方法的曲线,以及经各种方法处理后的图像。分析原始图像与增强图像的不同效果情况。Р 汪玲Р 2012/2/28