⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prob9_11.m

📁 these m files contain the solution of some problems in the book "communication system" by Haykin
💻 M
字号:
%	Author: Xiaofeng Xu, Polytechnic University  4/21/2002


%Predict Motion Vectors 
[Target_Img,Anchor_Img,Predict_Img,ox,oy,px,py,PSNR]=Motion_Estimation_2D('foreman66.Y','foreman69.Y',352,288,[16,16],[-32,-32],[32,32],1);

%(a) a frame directly

ave1=mean(mean(Anchor_Img));
mean(mean((Anchor_Img-ave1).^2))
ans

  
%(b) the direct difference
 
%calculate mean value
ave2=mean(mean(Anchor_Img-Target_Img));
%calculate MSE
mean(mean((Anchor_Img-Target_Img-ave2).^2))

ans

%(c) the MC error image
%calculate the difference
Error_Img=Anchor_Img-Predict_Img;
%calculate mean value
ave=mean(mean(Error_Img));
%calculate MSE
mean(mean((Error_Img-ave).^2))
ans 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -