How to include all objects using find for an image
古いコメントを表示
Hi. I am trying to identify the lowest 10 pixel values on an grayscale image. I already have a list of the lowest 10 values
Lout =
126
126
127
128
128
128
129
129
129
129
I then identify using the following
for ct=1:10
f1=Lout(ct);
[i,j] = find(ROI==f1,1,'first');
plot(j,i,'ro','LineWidth',2);
end
This breaks down when there are more than one pixel with a lowest value as in the list above and shown in the figure below by the red circles. (it only shows the lowest 4 instead of all 10)

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!