MATLAB Answers

Unable to find the location of the pixel with the minimum gray level

조회 수: 1(최근 30일)
Warid Islam
Warid Islam 2021년 7월 28일
댓글: Warid Islam 2021년 7월 29일
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.
I=imread('FP00000f002b04u_01.png')
minValue = min(I(:))
[row, column] = find(I == minValue);

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 7월 28일
A quick guess. Maybe there are more than one minimum? Then you need to decide. Maybe anyone is good enough?
  댓글 수: 3

댓글을 달려면 로그인하십시오.

추가 답변(0개)

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by