%array(元包数组)B so that each cell initially contains a 0_by_2 matrix. numObjects=max(L(:));%寻找L中所作标记中的最大值,这个最大值实际上就对应着L中 % 包含的最多的连通部分的数目。 if numObjects>0 B={zeros(0,2)};%元包数组中仅包含一个元素。 B=repmat(B,numObjects,1);%将B进...