13图像减法运算matlab 看星星 2022-05-05 202 阅读1分钟 clc;clear; I=imread('rice.png'); imshow(I) background = imopen(I,strel('disk',25)); %估计背景图像 figure, imshow(background); I2=imsubtract(I,background); %从原图像中减去背景图像 figure, imshow(I2)