资源简介

本资源首先实现基于SURF的图像配准,之后进行RANSAC算法的图像细配准

资源截图

代码片段和文件信息

% Example 3 Affine registration
% Load images
clear;close all;clc

I1=im2double(imread(‘lena2.png‘));
I2=im2double(imread(‘lena3.png‘));

% Get the Key Points
Options.upright=true;
Options.tresh=0.0001;
Ipts1=OpenSurf(I1Options);
Ipts2=OpenSurf(I2Options);

% Put the landmark descriptors in a matrix
D1 = reshape([Ipts1.descriptor]64[]);
D2 = reshape([Ipts2.descriptor]64[]);

% Find the best matches
err=zeros(1length(Ipts1));    %%D1中每个行向量与D2中匹配向量之间的距离
cor1=1:length(Ipts1);    %%D1的顺序索引值
cor2=zeros(1length(Ipts1));   %%D2对应D1每个行向量的索引值
for i=1:length(Ipts1)
    distance=sum((D2-repmat(D1(:i)[1 length(Ipts2)])).^21);
    [err(i)cor2(i)]=min(distance);%% err(i)最小值;cor2(i)索引
end

% Sort matches on vector distance
[err ind]=sort(err);
cor1=cor1(ind);
c

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

     文件       2015  2019-04-24 14:24  RANSAC+SURF\example.m

     文件     239755  2010-09-07 00:22  RANSAC+SURF\lena1.png

     文件     182741  2019-04-24 14:24  RANSAC+SURF\lena3.png

     文件       1335  2010-09-06 19:21  RANSAC+SURF\license.txt

     文件       3778  2010-09-07 00:27  RANSAC+SURF\OpenSurf.m

     文件       1799  2012-12-01 17:45  RANSAC+SURF\Ransac.m

     文件        603  2010-07-27 04:56  RANSAC+SURF\SubFunctions\FastHessian_BuildDerivative.m

     文件       1699  2010-07-30 00:10  RANSAC+SURF\SubFunctions\FastHessian_buildResponselayer.m

     文件       1877  2010-07-21 00:37  RANSAC+SURF\SubFunctions\FastHessian_buildResponseMap.m

     文件       2353  2010-07-30 23:43  RANSAC+SURF\SubFunctions\FastHessian_getIpoints.m

     文件        455  2010-07-27 04:56  RANSAC+SURF\SubFunctions\FastHessian_getLaplacian.m

     文件        450  2010-07-27 04:56  RANSAC+SURF\SubFunctions\FastHessian_getResponse.m

     文件       2478  2010-07-30 23:02  RANSAC+SURF\SubFunctions\FastHessian_interpolateExtremum.m

     文件       1680  2010-07-30 22:56  RANSAC+SURF\SubFunctions\FastHessian_isExtremum.m

     文件        738  2010-07-30 04:32  RANSAC+SURF\SubFunctions\FastHessian_Responselayer.m

     文件        791  2010-07-29 22:58  RANSAC+SURF\SubFunctions\IntegralImage_BoxIntegral.m

     文件        494  2010-07-30 04:32  RANSAC+SURF\SubFunctions\IntegralImage_HaarX.m

     文件        556  2010-07-30 04:37  RANSAC+SURF\SubFunctions\IntegralImage_HaarY.m

     文件        796  2010-07-29 22:42  RANSAC+SURF\SubFunctions\IntegralImage_IntegralImage.m

     文件       1089  2010-07-30 23:39  RANSAC+SURF\SubFunctions\PaintSURF.m

     文件       1554  2010-07-31 00:39  RANSAC+SURF\SubFunctions\SurfDescriptor_DecribeInterestPoints.m

     文件       3636  2010-07-31 00:40  RANSAC+SURF\SubFunctions\SurfDescriptor_GetDescriptor.m

     文件       2921  2010-07-31 00:07  RANSAC+SURF\SubFunctions\SurfDescriptor_GetOrientation.m

     文件       9721  2010-09-07 01:04  RANSAC+SURF\WarpFunctions\affine_warp.m

     目录          0  2019-04-24 14:04  RANSAC+SURF\SubFunctions

     目录          0  2019-04-24 14:04  RANSAC+SURF\WarpFunctions

     目录          0  2019-04-24 14:24  RANSAC+SURF

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

               465314                    27



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

评论

共有 条评论