how to write matlab porgramme to remove one of the RGB channels (make 0) in each of the 10 frames in a sequence?
4 次查看(过去 30 天)
显示 更早的评论
how to write matlab programme to remove one of the RGB channels in each of the 10 frames in a sequence
0 个评论
采纳的回答
Walter Roberson
2018-10-14
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
6 个评论
更多回答(2 个)
suresh gunarathna
2018-10-14
3 个评论
Walter Roberson
2018-10-15
You will need to say more clearly what the question is then. Is the question to figure out which of the three channels is non-zero ?
suresh gunarathna
2018-10-15
2 个评论
Walter Roberson
2018-10-15
Required output is not stated. Is the required output a new movie that is 3 times as long as the original movie, with the first 10 frames being the original with red removed, the second 10 being the original frames with green removed, the third 10 being the original frames with blue removed? Or is the desired output a 3 x 10 series of subplots displaying the images? Or a 3 x 10 montage?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!