can you help me how to extract a matrix of image and put it in Excel. more precisely how individual color, R G B this matrix to extract and put it in excel

조회 수: 6 (최근 30일)
can you help me how to extract a matrix of image and put it in Excel. more precisely how individual color, R G B this matrix to extract and put it in excel

채택된 답변

Image Analyst
Image Analyst 2015년 1월 28일
Try this:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Write out to separate sheets in an Excel workbook.
xlswrite(filename, redChannel, 'Red', 'A1');
xlswrite(filename, greenChannel, 'Green', 'A1');
xlswrite(filename, blueChannel, 'Blue', 'A1');

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by