how to do horizontal projection histogram of an image
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Can any one tell me how to do horizontal projection histogram of an image
0 commentaires
Réponse acceptée
Rik
le 17 Fév 2017
You mean something like this?
A=imread('pout.tif');%load image
A=mean(A,1);%get the mean (or use sum or max) - these convert the data to double
histogram(A)%generate histogram
2 commentaires
Rik
le 21 Fév 2017
There are 3 possibilities for a horizontal projection: a mean, a maximum value and a sum. The mean and the sum differ only in magnitude (and both convert your data to double). The projection convert your 2D image to a 1D signal, so you can use something like bar(A) or plot(A).
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Histograms 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!
