フィルターのクリア

Cloud you help me.please (Detect pumpkin)

1 回表示 (過去 30 日間)
Suttiporn poominat
Suttiporn poominat 2017 年 9 月 27 日
コメント済み: Suttiporn poominat 2017 年 9 月 30 日
clc
fontSize=20;
I=imread('pumpkin.jpg');
[rows cols nums]=size(I)
im_g=rgb2gray(I);
umb=graythresh(im_g);
bw=im2bw(im_g,umb);
imshow(I);
[L Ne]=bwlabel(bw);
propied=regionprops(L);
hold on
for n=1:size(propied,1)
rectangle('Position',propied(n).BoundingBox,'EdgeColor','g','LineWidth',2);
end
pause(3)
for n=1:size(s,2)
d=round(propied(n).BoundingBox);
bw(d(2):d(2)+d(4),d(1):d(1)+d(3))=0;
end
figure
imshow(bw);
How I should edit code? help me

回答 (1 件)

Sebastian Castro
Sebastian Castro 2017 年 9 月 27 日
  1 件のコメント
Suttiporn poominat
Suttiporn poominat 2017 年 9 月 30 日
thank you

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by