Unable to find the location of the pixel with the minimum gray level
2 views (last 30 days)
Show older comments
Warid Islam on 28 Jul 2021
Commented: Warid Islam on 29 Jul 2021
I want to find the location of the pixel in the image which has the minimum gray level. I tried the code below. But it gives me the coordinates of more than one pixel. What I need is to find the location of one pixel that has the minimum gray level. Any suggestion would be appreciated.
minValue = min(I(:))
[row, column] = find(I == minValue);
Yongjian Feng on 28 Jul 2021
A quick guess. Maybe there are more than one minimum? Then you need to decide. Maybe anyone is good enough?
More Answers (0)
Find more on Convert Image Type 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!