Info

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

I am having troubles doing some image processing, and I am looking for a better coder than I to see if they're up to the challenge.

1 回表示 (過去 30 日間)
Tyler Finnegan
Tyler Finnegan 2018 年 3 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
What I'm trying to do is measure the width of loose noodles in a picture, and get a histogram of the widths found. I've been trying to use edge detection and a whole lot of for loops, but realized my code only works if the edge detects a perfect square (because my code just looks diagonally). I'll attach my code, but I doubt it will be helpful. BW is a edge('gray image') logical.
dist=0.*(1:300);
for x=1:300
for y=1:300
if BW(x,y)
true;
for i=1:(301-x-y)
if BW(x+i,y+i)
true;
dist(x)=i;
break
else
end
end
end
end
end

回答 (0 件)

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by