%装载并显示原始图像 load bust; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); subplot(221);image(X1); %colormap(…
sobel 源代码
使用扩展Sobel算子计算一阶、二阶、三阶或混合图像差分
%装载并显示原始图像 load bust; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); subplot(221);image(X1); %colormap(…
%装载并显示原始图像 load woman; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); figure(1); image(X1); colormap(m…
%装载并显示原始图像 load bust; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); subplot(221);image(X1); %colormap(…
I = imread('rice.png'); % 读入图像 J = filter2(fspecial('sobel'),I); % 滤波 K = mat2gray(J); …
%装载并显示原始图像 load woman; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); figure(1); image(X1); colormap(m…
%装载并显示原始图像 load bust; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); subplot(221);image(X1); %colormap(…
%装载并显示原始图像 load woman; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); figure(1); image(X1); colormap(m…
%装载并显示原始图像 load bust; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); subplot(221);image(X1); %colormap(…
%装载并显示原始图像 load woman; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); figure(1); image(X1); colormap(m…