匿名
发表于 2023-3-29 12:15:50
以下这段代码,报错了,需要怎么修改
clear
clc
row = 360;
col = 800;
img = zeros(row,col,3,'uint8');
img(:,:,1)=uint8(0); %基底颜色
img(:,:,2)=uint8(0);
img(:,:,3)=uint8(0);
%circle?
% 创建一个黑底图片
% 获取图片中心坐标
center = round(size(img)/2);
% 添加80个像素宽的白色圆点
img = insertShape(img, 'FilledCircle', [center(2), center(1), 80], ‘color',[255 255 255]);
filename=['D:\matlab资料\图像处理GUI\','zilv','.BMP'];
imwrite(img,filename) |
|