資源簡介
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圖像特征點匹配
評論
共有 條評論