資源簡(jiǎn)介
人眼定位
clear all
x=imread('C:\wuzun.jpg'); %讀取原始圖像
figure(1);subplot(1,4,1);imshow(x);title('原圖像1');
y=rgb2gray(x);
subplot(1,4,2);imshow(y);title('圖像1的灰度圖'); % 圖1灰度圖
u1=imnoise(y,'salt & pepper',0.07);
subplot(1,4,3);imshow(u1);title('圖像1加噪聲圖'); %給圖1加椒鹽噪聲
代碼片段和文件信息
評(píng)論
共有 條評(píng)論