MATLAB: How to remove G from RGB image

image processingImage Processing Toolbox

How would you remove G from an RGB image?

Best Answer

This is for a project and the purpose of this specific task is to see the effects of removing a channel from an image. My professor asks that we create a new matrix that does not include the green color values I am not sure whether he means complete removal of the channel or setting it to 0. He gives an example of what the image is suppose to look like before and after and once he creates the new image (picture of a man), the man is purple.