How to include all objects using find for an image
Show older comments
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)

Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!