资源简介
比较经典的光流场配准程序,有助于配准概念的理解。
代码片段和文件信息
function largeIm = Expand(im);
%EXPAND Compute large layer of Gaussian pyramid
% Sohaib Khan Feb 16 2000
%Algo
%Gaussian mask = [0.05 0.25 0.4 0.25 0.05]
% Insert zeros in every alternate row position and conv with mask
% insert zeros in every alternate clmn position in result and conv with mask‘
mask = 2*[0.05 0.25 0.4 0.25 0.05]; %factor of 2 is there because each pixel gets contribution
% either from 0.05 0.4 0.05 or from 0.25 0.25
% insert zeros in every alternate position in each row
rowZeros = [im; zeros(size(im))];
rowZeros = reshape(rowZeros size(im1) 2*size(im2));
%conv with horiz mask
newIm = conv2(rowZeros mask);
newIm = newIm(:3:size(newIm2)-2);
% insert zeros in every alternate position in each col
colZeros = newIm‘;
colZeros = [colZeros; zeros
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 582 2000-02-29 14:46 Reduce.m
文件 81 2004-09-14 02:36 Readme.txt
文件 983 2000-02-29 14:46 Expand.m
文件 3373 2003-07-28 00:02 HierarchicalLK.m
文件 1823 2003-10-23 01:47 LucasKanade.m
文件 2850 2003-07-27 20:09 LucasKanadeRefined.m
评论
共有 条评论