From: Image Analyst on
Kevin :
Here's some additional code that may be useful to you:

% Extract the individual color planes.
redPlane = rgbImage(:, :, 1);
greenPlane = rgbImage(:, :, 2);
bluePlane = rgbImage(:, :, 3);

% Rebuild an RGB image from separate component color channels
rgbImage2 = cat(3, redPlane, greenPlane, bluePlane);