Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-10-08
帖子: 24
声望力: 17 ![]() |
![]()
Loop1 = 1:20
size(Label(find(Label==Loop1)),1) 一共是20个类别。其中,Label对应的是每个图像的标记,为1,1,1,1,...,2,2,2,...,20,20,...,20 本意是分别找出:Label=1, Label=2, ..., Label=20中sample的个数。 自己写了一个循环,是错的 ![]() for Loop1 = 1:20 for Loop2 = 1:size(Label(find(Label==Loop1)),1) ... end end 有请高手们出招~ ![]()
__________________
:ft: 此帖于 2009-05-02 22:14 被 Juicy 编辑。 |
![]() |
![]() |