MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 求质心用了regionprops函数,总是报错?? (https://www.labfans.com/bbs/showthread.php?t=8123)

bss6 2009-05-06 20:46

求质心用了regionprops函数,总是报错??
 
我参考了以前的帖子,求质心用了regionprops函数,总是报错,希望前辈指点。
bw = imread('T4.bmp');
L = bwlabel(bw);
s = regionprops(L, 'centroid');
centroids = cat(1, s.Centroid);
imshow(bw)
hold on
plot(centroids(:,1), centroids(:,2), 'b*')
hold off
??? Attempt to execute SCRIPT regionprops as a function.


所有时间均为北京时间。现在的时间是 11:12

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.