直接上源码:
close all clear all clc % 读取图像 I = imread('lena.bmp'); I = rgb2gray(I); J =imnoise(I, 'salt & pepper', 0.001);
京公网安备 11010502049817号