Coordinates of the brightest point of the first line

2 vues (au cours des 30 derniers jours)
Thiago Tenorio
Thiago Tenorio le 27 Déc 2012
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

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Déc 2012
Modifié(e) : Walter Roberson le 27 Déc 2012
[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 commentaires
Image Analyst
Image Analyst le 28 Déc 2012
I think a histogram would be a better method for determining the gray level between the foreground and the background.
Walter Roberson
Walter Roberson le 28 Déc 2012
greythresh() might be suitable.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by