image flipping using a function

13 ビュー (過去 30 日間)
James Chang
James Chang 2016 年 11 月 11 日
コメント済み: James Chang 2016 年 11 月 11 日
if true
My Animation
writerObj = VideoWriter('myAnimation2','MPEG-4');
writerObj.FrameRate = 1;
open(writerObj);
RGB1 = imread('spiderman.jpg');
RGB2 = imread('deadpool.jpg');
RGB3 = imread('hulk.jpg');
RGB4 = imread('spiderman.jpg');
imgArray = {RGB1, RGB2, RGB3, RGB4};
for i = 1:4
frm=im2frame(imgArray{i});
writeVideo(writerObj,frm);
end
close(writerObj);
function RGB = flipud(RGB1, RGB2, RGB3, RGB4);
load myAnimation2
Is is possible do this or this is wrong?

採用された回答

KSSV
KSSV 2016 年 11 月 11 日
編集済み: KSSV 2016 年 11 月 11 日
flipud works on individual matrix. It takes only one matrix (1D/2D/3D) as input. Apply flipud individually to RGB1,RGB2,RGB3,RGB4.
  1 件のコメント
James Chang
James Chang 2016 年 11 月 11 日
ill try that thank you

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by