MATLAB: Convert red channel to green

channelimage processingrgb

is there any way to convert RGB image red-channel into green-channel for the same image I know that I can get it by using image(:,:,2).

Best Answer

TheImage(:, :, [2 1 3])
This would swap the color planes