clear;
clc;
%img1=imread('1.jpg','jpg');
%img2=imread('2.jpg','jpg');
%[psnr, mse] = psnr_mse(img1, img2);
path(path,'D:\LIVE File\bs\')
%obj2=[path,'bs2_25fps.yuv'];
%if obj1.NumberOfFrames~=obj2.NumberOfFrames||obj1.Height~=obj2.Height||obj1.Width~=obj2.Width
%    errordlg('different sizes','Bad input');
%end
%nFrames = obj1.NumberOfFrames;
%vidHeight = obj1.Height;
%vidWidth = obj1.Width;
%for i=1:nFrames
    %img1=read(obj1,i);
    %img2=read(obj2,i);
    %[psnr, mse] = psnr_mse(img1, img2);
    %p(i)=psnr;
    %m(i)=mse;
%end
%psnr=yuvpsnr('bs1_25fps.yuv','bs2_25fps.yuv',768,432,'420','yuv');
%mov1 = loadFileYuv(bs1_25fps.yuv,768,432,217)
mov = yuv2mov('bs1_25fps.yuv',768,432,'420')
