匿名
发表于 2023-4-24 11:13:51
如何将线宽修改为10个像素大小clear
clc
row = 1000;
col = 1000;
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, 'Circle', [center(2), center(1), 500], 'Color',[255 255 255], 'Opacity', 1);
filename=['D:\matlab资料\图像处理GUI\','zilv','.BMP'];
imwrite(img,filename) |
|