No BSD License
-
BmotionEstARPS(imgP, imgI, mb...
Computes motion vectors using Adaptive Rood Pattern Search method
-
BmotionEstARPS(imgP, imgI, mb...
Computes motion vectors using Adaptive Rood Pattern Search method
-
BmotionEstDS(imgP, imgI, mbSi...
Computes motion vectors using Diamond Search method
-
BmotionEstES(imgP, imgI, mbSi...
Computes motion vectors using exhaustive search method
-
BmotionEstTSS(imgP, imgI, mbS...
Computes motion vectors using Three Step Search method
-
Idecoder(c,array,MatAC,MatDC)
layer = inverseDCT(layer,DCT_trans,array);
-
JQ1=compensatedFrameB(Im,buff...
imgComp=double(imgComp);
-
JQ=forwardDCT(Im,array)
-
MC(xref,vx,vy,N);
Motion compensation/prediction for image coding.
-
[B2,B3,P4,B5,B6,P7,B8,B9,I10]...
-
[bufferImageP,streamP,motionV...
imageSubtract2=double(imageSubtract2);
-
[bufferImageP,subFrame]=pFram...
-
[motionVect, zeroMatrixCount]...
-
bDecoder(c,array,MatAC,MatDC,...
-
bFrameCal(ImB,bufferImageIP,a...
-
bFrameProc(B,I,P,array,mbSize...
-
chkcategory(valt,category)
-
costFuncMAD(currentBlk,refBlk...
Computes the Mean Absolute Difference (MAD) for the given two blocks
-
deZigZag(data)
-
decoder(c,motionVect,identifi...
-
imgPSNR(imgP, imgComp, n)
Computes motion compensated image's PSNR
-
inverseDCT(JQ,array)
-
m=deRunLength(c,array,MatAC,M...
-
makeLayers(c)
-
minCost(costs)
Finds the indices of the cell that holds the minimum cost
-
motionComp(imgI, motionVect, ...
Computes motion compensated image using the given motion vectors
-
motionEstDS(imgP, imgI, mbSiz...
Computes motion vectors using Diamond Search method
-
motionEstES(imgP, imgI, mbSiz...
Computes motion vectors using exhaustive search method
-
motionEstES(imgP, imgI, mbSiz...
Computes motion vectors using exhaustive search method
-
motionEstTSS(imgP, imgI, mbSi...
Computes motion vectors using Three Step Search method
-
pDecoder(c,array,MatAC,MatDC,...
-
zigzag(data)
-
main44.m
-
news.avi
-
View all files
from
mpeg compression
by Zahid Ali
Mpeg compression
|
| imgPSNR(imgP, imgComp, n) |
% Computes motion compensated image's PSNR
%
% Input
% imgP : The original image
% imgComp : The compensated image
% n : the peak value possible of any pixel in the images
%
% Ouput
% psnr : The motion compensated image's PSNR
%
% Written by Aroh Barjatya
function psnr = imgPSNR(imgP, imgComp, n)
[row col] = size(imgP);
err = 0;
for i = 1:row
for j = 1:col
err = err + (imgP(i,j) - imgComp(i,j))^2;
end
end
mse = err / (row*col);
psnr = 10*log10(n*n/mse);
|
|
Contact us at files@mathworks.com