资源简介

matlab实现的基于高斯光流法的图像配准

资源截图

代码片段和文件信息

% [Ht G]=ComputeLKFlowParms(img)
%
% Computes the optical flow parameters. The image is derived in DX and DY
% directions and matrix G is computed.
%
% Inputs:
% img - The image to compute optical flow parameters. Note that the image
%       must contain a border of size 1 since the DX and DY operation work
%       on 3x3 regions.
%
% Outpus:
% Ht - The transpose of matrix H which defines the LK affine approximation of an shifted
% image
%
% G  - The matrix G=H‘*H
%
function [Ht G]=ComputeLKFlowParms(img)

% Compute Ix and Iy derivatives using sobel operator
Hdy = fspecial(‘sobel‘);
Hdx = Hdy‘;

Ix=imfilter(img Hdx);
Iy=imfilter(img Hdy);

Ix=Ix(2:end-12:end-1);
Iy=Iy(2:end-12:end-1);

% Compute G
H = [Ix(:) Iy(:)];
Ht=H‘;
G=Ht*H;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        986  2007-06-29 17:30  image registration\LKOFlow\Affine\ComputeLKFlowParms.m

     文件        768  2007-05-11 09:26  image registration\LKOFlow\Affine\GaussianDownSample.m

     文件        812  2007-05-11 13:00  image registration\LKOFlow\Affine\GuassianPyramid.m

     文件       1585  2007-07-06 11:42  image registration\LKOFlow\Affine\IterativeLKOpticalFlow.m

     文件       1947  2007-06-30 23:34  image registration\LKOFlow\Affine\PyramidalLKOpticalFlow.m

     文件        959  2011-03-23 22:29  image registration\LKOFlow\Affine\RegisterImageSeq.m

     文件        463  2007-06-30 20:39  image registration\LKOFlow\Affine\ResampleImg.m

     文件        780  2007-07-07 11:08  image registration\LKOFlow\ComputeLKFlowParms.m

     文件        768  2007-05-11 09:26  image registration\LKOFlow\GaussianDownSample.m

     文件        812  2007-05-11 13:00  image registration\LKOFlow\GuassianPyramid.m

     文件       1466  2007-07-07 11:09  image registration\LKOFlow\IterativeLKOpticalFlow.m

     文件       1790  2007-07-21 19:34  image registration\LKOFlow\PyramidalLKOpticalFlow.m

     文件        418  2007-07-21 19:36  image registration\LKOFlow\RegisterImageSeq.m

     文件        282  2007-05-11 14:00  image registration\LKOFlow\ResampleImg.m

     文件       1668  2007-05-09 11:50  image registration\Patrick Vandewalle\estimate_motion.m

     文件       3452  2007-05-09 11:57  image registration\Patrick Vandewalle\estimate_rotation.m

     文件       2474  2007-05-09 11:57  image registration\Patrick Vandewalle\estimate_shift.m

     文件       4046  2007-05-09 12:03  image registration\Patrick Vandewalle\keren.m

     文件       2753  2007-05-09 12:02  image registration\Patrick Vandewalle\keren_shift.m

     文件       1748  2007-05-09 12:04  image registration\Patrick Vandewalle\lowpass.m

     文件       5179  2007-05-09 12:05  image registration\Patrick Vandewalle\lucchese.m

     文件       3092  2007-05-09 12:06  image registration\Patrick Vandewalle\marcel.m

     文件       2191  2007-05-09 12:05  image registration\Patrick Vandewalle\marcel_shift.m

     文件       2493  2007-05-09 12:12  image registration\Patrick Vandewalle\shift.m

     文件         69  2010-06-03 11:35  image registration\说明.txt

     目录          0  2011-03-23 16:33  image registration\LKOFlow\Affine

     目录          0  2011-03-23 16:33  image registration\LKOFlow

     目录          0  2011-03-23 16:33  image registration\Patrick Vandewalle

     目录          0  2011-03-23 16:33  image registration

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论