image flipping using a function

조회 수: 11 (최근 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 CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by