

clear all; close all;
I=imread('rice.png');
I=im2double(I);
h=[0,1,0; 1, -4, 1; 0, 1, 0];
J=conv2(I, h, 'same');
K=I-J;
figure;
subplot(121);
imshow(I);
subplot(122);
imshow(K);


HuangCongQing
github-repos/MATLAB/HuangCongQing-Algorithms_MathModels/Algorithms_MathModels-e15b0e9053b11f08b5ce1e3492c4acb444409c8b/《MATLAB图像处理》源文件/本书源文件/chap5/chap5_24.m
Algorithms_MathModels
github-repos/MATLAB/HuangCongQing-Algorithms_MathModels
e15b0e9053b11f08b5ce1e3492c4acb444409c8b