prob9_11.m
来自「these m files contain the solution of so」· M 代码 · 共 31 行
M
31 行
% 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 + =
减小字号Ctrl + -
显示快捷键?