Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Attempting to alter the color of connected components in a label matrix that are under a threshold pixel area.

1 回表示 (過去 30 日間)
Conner Cortese
Conner Cortese 2017 年 4 月 7 日
閉鎖済み: KSSV 2017 年 4 月 7 日
Hello,
I am attempting to take this image and color the circles that are smaller than 1200 pixels cyan:
Here's what I've done so far.
%Assuming image already read in as I
[L, num] = bwlabel(I); %return label matrix and num of connected components of I
S = regionprops(I)
p = [S.Area] %create vector consisting of areas of each connected component in I
for i=1:num
if(p(i) < 1200) %finding Areas in the vector that are less than threshold value
%not sure how to proceed from here
end
end
Any guidance would be appreciated.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by