필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
Mac
Mac 2023년 10월 13일
댓글: Mac 2023년 10월 13일
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!

채택된 답변

Walter Roberson
Walter Roberson 2023년 10월 13일
편집: Walter Roberson 2023년 10월 13일
T = table(x, count, 'VariableNames', {'Pixel Value', 'count'});
writetable(T, 'NameOfTheSpreadsheetGoesHere.xlsx');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by