MATLAB: How to write matlab porgramme to remove one of the RGB channels (make 0) in each of the 10 frames in a sequence

remove

how to write matlab programme to remove one of the RGB channels in each of the 10 frames in a sequence

Best Answer

frame_to_remove = randi(3);
initialize
for framenum = 1 : 10
advance to frame given by framenum, storing in variable thisframe
thisframe(:,:,frame_to_remove) = 0;
image(thisframe);
drawnow();
end
Related Question