91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

一個利用ransac算法進行直線擬合的程序;一個通用的ransac算法框架;利用后者進行homography單應矩陣估計的示例程序

資源截圖

代碼片段和文件信息

function?[H?corrPtIdx]?=?findHomography(pts1pts2)
%?[H?corrPtIdx]?=?findHomography(pts1pts2)
% Find?the?homography?between?two?planes?using?a?set?of?corresponding
% points.?PTS1?=?[x1x2...;y1y2...].?RANSAC?method?is?used.
% corrPtIdx?is?the?indices?of?inliers.
% Yan?Ke?@?THUEE?20110123?xjed09@gmail.com


coef.minPtNum?=?4;
coef.iterNum?=?30;
coef.thDist?=?4;
coef.thInlrRatio?=?.1;
[H?corrPtIdx]?=?ransac1(pts1pts2coef@solveHomo@calcDist);

end

function?d?=?calcDist(Hpts1pts2)
% Project?PTS1?to?PTS3?using?H?then?calcultate?the?distances?between
% PTS2?and?PTS3

n?=?size(pts12);
pts3?=?H*[pts1;ones(1n)];
pts3?=?pts3(1:2:)./repmat(pts3(3:)21);
d?=?sum((pts2-pts3).^21);

end

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????418??2010-10-24?15:43??randIndex.m

?????文件???????1991??2011-01-27?14:29??ransac1.m

?????文件????????584??2011-01-23?21:38??solveHomo.m

?????文件????????726??2011-01-27?14:29??findHomography.m

?????文件???????1388??2011-01-27?19:44??ransac.m

?????文件????????904??2010-10-24?23:08??testRansac.m

?????文件????????976??2010-10-24?23:15??genRansacTestPoints.m

-----------?---------??----------?-----??----

?????????????????6987????????????????????7


評論

共有 條評論