Get pixel where the intensity is 255

5 vues (au cours des 30 derniers jours)
valerio auricchio
valerio auricchio le 30 Oct 2020
Commenté : Ameer Hamza le 30 Oct 2020
Hi I have an immage 2048x2448 grayscale, I want to find all the pixel where the intensity is "255".
After i have find them i want to print this point on the immage

Réponse acceptée

Ameer Hamza
Ameer Hamza le 30 Oct 2020
img; % 2048x2448 matrix
[r, c] = find(img==255); % r and c contain all row and columns
If you want to mark these points on the image
plot(c, r, '+')
It will draw '+' marker at those locations.
  7 commentaires
valerio auricchio
valerio auricchio le 30 Oct 2020
thx a lot!
Ameer Hamza
Ameer Hamza le 30 Oct 2020
I am glad to be of help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by