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

matlab例程

开发平台:

Matlab

  1. function [bufferImageP,streamP,motionVect]=compensatedFrame(Im,bufferImage,mbSize,p,array)
  2. motionVect = motionEstTSS(Im,bufferImage,mbSize,p);
  3. imgComp = motionComp(bufferImage, motionVect, mbSize);
  4. imageSubtract=double(imsubtract(uint8(Im),uint8(imgComp)));
  5. streamP=forwardDCT(imageSubtract,array);
  6. JQ2=inverseDCT(streamP,array);
  7. %imageSubtract2=double(imageSubtract2);
  8. %imageSubtract=imageSubtract-128;
  9. %figure;imshow(uint8(JQ2))
  10. %bufferImageP=JQ2+imageSubtract1;
  11. %bufferImageP=uint8(bufferImageP);
  12. bufferImageP=double(imadd(JQ2,imgComp));