📄 代码2-3.txt
字号:
stats = regionprops(L,'Area');
bw = imread('text.png');
L = bwlabel(bw);
s = regionprops(L, 'centroid');
centroids = cat(1, s.Centroid);
imshow(bw)
hold on %保持状态以便在原始图像上添加质心矢量图
plot(centroids(:,1), centroids(:,2), 'b*') %
hold off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -