How to export data from an image histogram to an Excel file
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mac
am 13 Okt. 2023
Kommentiert: Mac
am 13 Okt. 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!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 13 Okt. 2023
Bearbeitet: Walter Roberson
am 13 Okt. 2023
T = table(x, count, 'VariableNames', {'Pixel Value', 'count'});
writetable(T, 'NameOfTheSpreadsheetGoesHere.xlsx');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!