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
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ivana
am 28 Jan. 2015
Kommentiert: Ivana
am 28 Jan. 2015
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 28 Jan. 2015
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');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!