Effacer les filtres
Effacer les filtres

How to export data from an image histogram to an Excel file

7 vues (au cours des 30 derniers jours)
Mac
Mac le 13 Oct 2023
Commenté : Mac le 13 Oct 2023
I calculate an image histogam using this code:
a=imread('mypic.jpg');
b=rgb2gray(a);
[count,x] = imhist(b);
Now, I'd like to export the values of 'count' and 'x' to 2 separate columns in an Excel speadsheet. Please help!
Thank in advance!

Réponse acceptée

Walter Roberson
Walter Roberson le 13 Oct 2023
Modifié(e) : Walter Roberson le 13 Oct 2023
T = table(x, count, 'VariableNames', {'Pixel Value', 'count'});
writetable(T, 'NameOfTheSpreadsheetGoesHere.xlsx');

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by