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
1 次查看(过去 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
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!