Get pixel where the intensity is 255
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponse acceptée
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!