专为课程设计所作,很实用,包过部!部分程序代码:%图像采集模块A=imread('car.jpg');figure,imshow(A),title('原始图像')%图像灰度化模块B=rgb2gray(A);figure,imshow(B),title('灰度图像')figure,imhist(B);C=imadjust(B,[0.10.8],[01]);figure,imshow(C);title('对比度增强')figure,imhist(C);