How to retrieve data points from a grayscale histogram?
Afficher commentaires plus anciens
Hello! I have a grayscale image and its histogram. How do can I extract data points from this histogram? Say, the number of pixels for each value of the grayscale; I need to put that information into excel.
Thank you.
Réponse acceptée
Plus de réponses (1)
Sulaymon Eshkabilov
le 12 Juin 2021
0 votes
(1) Import// read your image in matlab
(2) perform histogram analysis with hostogram(), e.g: h= histogram() or h = histogram2()
See this doc: https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram2.html
(3) Collect necessary data from h that would be a structure array containing all data.
Catégories
En savoir plus sur Histograms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!