Coordinates of the brightest point of the first line

조회 수: 2 (최근 30일)
Thiago Tenorio
Thiago Tenorio 2012년 12월 27일
Hello, how can I know the coordinates of the brightest point of the first line of my image?
Can someone help me with this algorithm?
Thank you,
Thiago Tenório

채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 27일
편집: Walter Roberson 2012년 12월 27일
[minval, minidx] = max(YourImage(:,1));
or
[minval, minidx] = max(YourImage(1,:));
Oh wait -- is this an RGB image or grayscale? If it is RGB then how do you want to define "brightest" ?
  댓글 수: 6
Image Analyst
Image Analyst 2012년 12월 28일
I think a histogram would be a better method for determining the gray level between the foreground and the background.
Walter Roberson
Walter Roberson 2012년 12월 28일
greythresh() might be suitable.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by