No BSD License
-
Hmatrix( Ix, Iy, SizeBig, alf...
At each pyramid level, this function generates the Hessian matrix for the
-
LKstep( It, Ix, Iy, H, SizeB...
This function calculates one iteration of optical flow
-
imInit( str )
-
imReflect( I, bordSize )
bordSize : number of reflected pixels from each side of the image
-
imS( Iin, figNo, varargin )
-
imWarp( flowHor, flowVer, Bin...
This function warps B towards A
-
pyramidFlow( A, B_in, winSize...
This function find the optical flow from A to B using pyramid
-
pyramidInit( A, B_in, PYRE_NO...
This function forms image pyramids and initializes other variables
-
pyramidInitialize( A, B_in, P...
This function forms image pyramids and initializes other variables
-
sizeCheck( A, B_in, PYRE_NO )
If image sizes are not integer multiples of maximum downsampling ratio,
-
demo.m
-
View all files
from
Iterative Pyramidal LK Optical Flow
by Berkin Bilgic
An implementation of Lucas-Kanade optical flow computation.
|
| pyramidInitialize( A, B_in, PYRE_NO, winSize ) |
function [ Apyre, Bpyre, G, SizeBig ] = pyramidInitialize( A, B_in, PYRE_NO, winSize )
%This function forms image pyramids and initializes other variables
SizeBig = (winSize-1)/2;
Apyre{1} = A;
Bpyre{1} = B_in;
if PYRE_NO > 1
for k = 2:PYRE_NO
Apyre{k} = impyramid( Apyre{k-1}, 'reduce' );
Bpyre{k} = impyramid( Bpyre{k-1}, 'reduce' );
end
end
G = fspecial('gaussian',[3 3],1);
end
|
|
Contact us at files@mathworks.com