how to find rgb values of an image & store in excel sheet
2 次查看(过去 30 天)
显示 更早的评论
I want to extract the diff values of rgb values
0 个评论
回答(1 个)
KSSV
2016-11-22
RGB = imread('your image') ; % read image, color image
R = RGB(:,:,1) ;
G = RGB(:,:,2) ;
B = RGB(:,:,3) ;
% write to excel
xlswrite('Red.xls', R)
xlswrite('Green.xls', G)
xlswrite('Blue.xls', B)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!