MATLAB: How to separate RBG channel then combine green and blue channel only, leaving the red channel out? Thanks!

rgbchannel

I have tried separating the RGB colour channel. Since it is using dark channel for underwater images, the red channel could be ignored completely. Is there any to remove the red channel in the RGB channel and implement the blue and green channel only?

Best Answer

What do you expect as output?
RGB = rand(640, 480, 3);
GB = RGB;
GB(:, :, 1) = 0; % Or 1?
% Or
GB2 = RGB(:, :, 2:3);