www.gusucode.com > 《matlab图像处理与界面编程宝典》秦襄培 编著,每章的MATLAB源代码程序 > 第13章/代码13-6.txt
I = imread('rice.png'); background = imopen(I,strel('disk',15)); J = imsubtract(I,background); imshow(Ip,[]) subplot(1,2,1), imshow(I) subplot(1,2,2), imshow(J)