资源简介
MATLAB实现的归一化8点算法。归一化8点算法的论文《In Defence of the 8-point Algoritm》可以在我上传的资源里找到。
代码片段和文件信息
function F = Infence8Points(x1x2)
% 来源:http://www.pudn.com/downloads324/sourcecode/windows/other/detail1430412.html
% x = [2766.82542624.92881922.56671255.7171 616.90671466.10933045.33761020.67632037.8326];
% y = [1373.4035 795.8613 483.79481641.16611261.01311045.6284 493.7877 730.00351381.7112];
% x1=[x;y;ones(19)];
% x = [2792.74002697.29272035.41751263.8237 579.29741528.65453102.85851069.84892092.0144];
% y = [1416.8920 845.0781 472.18481613.94481173.52501007.0867 587.7374 638.76801386.8088];
% x2=[x;y;ones(19)];
%以上为输入数据x1x2格式为象素点[xy1]T(3×n)n为点对个数>=8;
%先对x1x2规范化处理
[m1n1] = size(x1);
if(m1==2)
x1 = [x1; ones(1n1)];
end
[m2n2] = size(x2);
if(m2==2)
x2 = [x2; ones(1n2)];
- 上一篇:基于MATLAB的KAPPA系数计算
- 下一篇:matlab图像特征点匹配
评论
共有 条评论