shishi2.m
Upload User: cxsjwj
Upload Date: 2022-08-09
Package Size: 34k
Code Size: 0k
Category:

matlab

Development Platform:

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