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
|
| motionComp(imgI, motionVect, mbSize) |
% Computes motion compensated image using the given motion vectors
%
% Input
% imgI : The reference image
% motionVect : The motion vectors
% mbSize : Size of the macroblock
%
% Ouput
% imgComp : The motion compensated image
%
% Written by Aroh Barjatya
function imgComp = motionComp(imgI, motionVect, mbSize)
[row col] = size(imgI);
% we start off from the top left of the image
% we will walk in steps of mbSize
% for every marcoblock that we look at we will read the motion vector
% and put that macroblock from refernce image in the compensated image
mbCount = 1;
for i = 1:mbSize:row-mbSize+1
for j = 1:mbSize:col-mbSize+1
% dy is row(vertical) index
% dx is col(horizontal) index
% this means we are scanning in order
dy = motionVect(1,mbCount);
dx = motionVect(2,mbCount);
refBlkVer = i + dy;
refBlkHor = j + dx;
imageComp(i:i+mbSize-1,j:j+mbSize-1) = imgI(refBlkVer:refBlkVer+mbSize-1, refBlkHor:refBlkHor+mbSize-1);
mbCount = mbCount + 1;
end
end
imgComp = imageComp;
|
|
Contact us at files@mathworks.com