How to export image data to Excel?

1 次查看(过去 30 天)
Aidan Hill
Aidan Hill 2018-3-20
回答: KSSV 2018-3-21
Looking for a program to convert a photo to a grayscale image and then export all the grayscale values to an Excel sheet. Thanks in advance!

回答(1 个)

KSSV
KSSV 2018-3-21
I = imread('myiamge') ; % REad the RGB image
I = rgb2gray(I) ; % convert RGB image to gray scale
xlswrite('myfile.xls',I)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by