資源簡介
基于MATLAB的圖像處理程序
部分程序
%圖像灰度級修正
A=imread('J:\圖片\e1.bmp');
%灰度線性變換
c=imnoise(a,'salt & pepper‘)
figure;
imshow(c);
B=imadjust(A,[],[],0.3);%灰度范圍從[0 128]映射到[0 255],亮度增大,細節更明顯
figure;
subplot(2,2,1);
imshow(A);
title('輸入圖像');
subplot(2,2,2);
imhist(A);%直方圖顯示
title('輸入圖像直方圖');
subplot(2,2,3);
imshow(B);
title('輸出圖像');
代碼片段和文件信息
- 上一篇:利用膚色分割進行人臉檢測
- 下一篇:基于MATLAB的圖像復原
評論
共有 條評論