在使用MATLAB过程中,我们往往需要再图像上使用plot()函数画一些东西,然后将其显示的figure中,但要将plot()处理后的图像保存的本地,有一定难度。以下介绍两种方法: 将figure进行保存 我们使用figure显示图像,然后使用hold on 和hold off命令,使用plot函数在图像上绘制自己的需求 img = imread('a.png'); figure;imshow(img); % binary image [m,n] = find(image==1)