imgComp = motionComp(imgI, motionVect, mbSize); DSpsnr(i+1) = imgPSNR(imgP, imgComp, 255); DScomputations(i+1) = computations; save dsplots2 DSpsnr DScomputations ESpsnr EScomputations figure; subplot(2,1,1); plot(DSpsnr,'-r'); hold on; plot(ESpsnr,'-.'); legend('Diamond Search','Exhaustive Search'); xlabel('testseq parameter'); ylabel('PSNR(dB)'); title('PSNR vs Testseq parameter'); figure(1); subplot(2,1,2) plot(DScomputations,'-r'); hold on; plot(EScomputations,'-.'); legend('Diamond Search','Exhaustive Search') xlabel('testseq parameter'); ylabel('Computations'); title('Computations vs Testseq parameter'); %--------------------------------------------------------------------------
imgComp = motionComp(imgI, motionVect, mbSize); DSpsnr(i+1) = imgPSNR(imgP, imgComp, 255); DScomputations(i+1) = computations; save dsplots2 DSpsnr DScomputations ESpsnr EScomputations figure; subplot(2,1,1); plot(DSpsnr,'-r'); hold on; plot(ESpsnr,'-.'); legend('Diamond Search','Exhaustive Search'); xlabel('testseq parameter'); ylabel('PSNR(dB)'); title('PSNR vs Testseq parameter'); figure(1); subplot(2,1,2) plot(DScomputations,'-r'); hold on; plot(EScomputations,'-.'); legend('Diamond Search','Exhaustive Search') xlabel('testseq parameter'); ylabel('Computations'); title('Computations vs Testseq parameter'); %--------------------------------------------------------------------------
Srikanth_Vasireddy_Final_report_5359.docx