找回密码
 注册
Simdroid-非首页
查看: 62|回复: 0

基于matlab最小外接矩形(MER)的方法来计算叶片的长宽

[复制链接]
发表于 2014-11-19 15:16:56 | 显示全部楼层 |阅读模式 来自 浙江杭州
跪求啊!怎么修正?谢谢大家啦!

bim=imread('123.jpg');
bim=im2bw(bim,graythresh(bim));
bim=~bim;
imshow(bim);
[r c]=find(bim==1);
[rectx,recty,area,perimeter] = minboundrect(c,r,'p');
imshow(bim);hold on
line(rectx,recty);
rectx
recty
Error using convhull
CONVHULL no longer supports or requires Qhull-specific options.
Please remove these options when calling CONVHULL.


Error in minboundrect (line 102)
  edges = convhull(x,y,{'Qt'});  % 'Pp' will silence the warnings

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-30 06:56 , Processed in 0.034239 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表