Matlab 使用regionprops获取带有标签和区域的表格
所以我有一个由一个复合样品的显微图像制成的结构。基本上我所做的是,我有一个数组A,它包含一个从-90到+90度的角度φ值。然后我用contourf得到这个图: 现在,我想用一个数字标记每个区域,并得到一个表,其中每个区域的面积以像素为单位。我试图以这种方式使用函数regionprops: A是我的数据数组Matlab 使用regionprops获取带有标签和区域的表格,matlab,region,contourf,Matlab,Region,Contourf,所以我有一个由一个复合样品的显微图像制成的结构。基本上我所做的是,我有一个数组A,它包含一个从-90到+90度的角度φ值。然后我用contourf得到这个图: 现在,我想用一个数字标记每个区域,并得到一个表,其中每个区域的面积以像素为单位。我试图以这种方式使用函数regionprops: A是我的数据数组 angs = -90:10:90; for i = 1:numel(angs)-1 BW = A>=angs(i) & A<angs(i+1); R
angs = -90:10:90;
for i = 1:numel(angs)-1
BW = A>=angs(i) & A<angs(i+1);
R{i} = regionprops(BW, 'Area');
end
但是我想显示一个表格,我想知道图片上的哪个区域。
你知道怎么做吗 稍后将尝试发布更多详细信息,同时看看我看了,但我还是有点迷茫,你有更多的建议吗?
R =
Columns 1 through 3
[32x1 struct] [450x1 struct] [1110x1 struct]
Columns 4 through 6
[1978x1 struct] [2778x1 struct] [3392x1 struct]
Columns 7 through 9
[5249x1 struct] [8215x1 struct] [15711x1 struct]
Columns 10 through 12
[12019x1 struct] [5335x1 struct] [2643x1 struct]
Columns 13 through 15
[1804x1 struct] [1018x1 struct] [670x1 struct]
Columns 16 through 18
[579x1 struct] [344x1 struct] [50x1 struct]