フィルターのクリア

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

1 回表示 (過去 30 日間)
how to write matlab programme to remove one of the RGB channels in each of the 10 frames in a sequence

採用された回答

Walter Roberson
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
suresh gunarathna 2018 年 10 月 14 日
out put is black image nothing else
  3 件のコメント
suresh gunarathna
suresh gunarathna 2018 年 10 月 15 日
actually i want create m-file for my mp4 vedio . i frogot something tell you that question have hint it is first 10 frame red channel 0 ,second 10 frames green channel 0 and so on.
Walter Roberson
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
suresh gunarathna 2018 年 10 月 15 日
question is this , a vedio file (sample.mp4) is given to you, write a matlab program (M-file) to remove one of the RGB channels (make 0) in each of the 10 frames in a sequence . (Hint - first 10 frames red channel 0 , second 10 frames green channel 0 and so on.)
  2 件のコメント
Walter Roberson
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?
suresh gunarathna
suresh gunarathna 2018 年 10 月 15 日
by using the given vedio , write a resultant vedio

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by