How to plot grey level variation along horizontal cross-section of any image according to position of the mouse?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
msahar
le 5 Déc 2014
Réponse apportée : Image Analyst
le 5 Déc 2014
How to plot grey level variation along horizontal cross-section of any image according to position of the mouse?
0 commentaires
Réponse acceptée
Dishant Arora
le 5 Déc 2014
I = imread('cameraman.tif');
[row , column] = size(I);
imshow(I)
[x , ~] = ginput(1);
plot(1:column , I(x , :))
Plus de réponses (1)
Image Analyst
le 5 Déc 2014
There is a function specifically built for that. It's called improfile(). It can handle profiles at any angle, though if you know that you want exactly a perfect row or column, the code Dishant gave is the way to go.
0 commentaires
Voir également
Catégories
En savoir plus sur Map Display dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!