I = imread('C:\Documents and Settings\Administrator\My Documents\lily.jpg');
R = I(:,:,1);
G = I(:,:,2);
B = I(:,:,3);
A=[R(:) G(:) B(:)]
Converting a RGB image (x:y:z matrix) into (x:3 matrix)
- Details
- Hits: 1406
I = imread('C:\Documents and Settings\Administrator\My Documents\lily.jpg');
R = I(:,:,1);
G = I(:,:,2);
B = I(:,:,3);
A=[R(:) G(:) B(:)]