shishi2.m
上传用户:cxsjwj
上传日期:2022-08-09
资源大小:34k
文件大小:0k
源码类别:

matlab例程

开发平台:

Matlab

  1. %shishi2
  2. function prinf(resize,long,wide)
  3. if resize==0
  4.     getframe=aviread('news.avi',1);
  5.     getframe=frame2im(getframe);
  6.     getframe=double(getframe);
  7.     framesize=size(getframe);
  8.     if framesize(3)==3
  9.         [longsize,widesize]=size(getframe(:,:,1));
  10.     else
  11.         [longsize,widesize]=size(getframe);
  12.     end
  13.     
  14. else if resize==1
  15.     longsize=long;
  16.     widesize=wide;
  17.     end
  18. end
  19. resize
  20. longsize
  21. widesize