matlab直方图均衡化处理,大神给出具体的解决方案

%加在第一幅图像对其进行处理
srcImage=imread('D:\personal paper\去噪\midle noise.png');
grayImage=rgb2gray(srcImage);
imwrite(grayImage,'D:\personal paper\灰度直方图\gratImage.jpg');
info=imfinfo('D:\personal paper\灰度直方图\gratImage.jpg');
%【M,N】=size(grayImage);

%在窗口中显示2*2排列图像
subplot(2,3,1);
imshow(grayImage);
title('原图像灰度图');

%绘制灰度直方图
subplot(2,3,2);
imhist(grayImage);
title('灰度直方图');
%[M,N]=size(hist)

%对灰度直方图均衡化处理
subplot(2,3,3);
H1=adapthistep(grayImage);
imhist(H1);
title('直方图均衡化');

%调整图像灰度等级
%原图像灰度集中10~90,调整到100~200
desImage=imagjust(grayImage,[0.029,0.0470],[0.392,0.784],0.6);
subplot(2,3,4);
imshow(dstImage);
title('灰度级调整后');
subplot(2,3,5);
imhist(dstImage);
title('灰度调整后直方图');

错误在21行
未定义函数或变量 'adapthistep'。

第1个回答  2018-07-14
错误一: adapthistep -> adapthisteq
错误二: imagjust -> imadjust
错误三: dstImage -> desImage
错误四: dstImage -> desImage本回答被网友采纳
相似回答