v01
This commit is contained in:
17
thirdparty/opengv/matlab/ransac_test.m
vendored
Normal file
17
thirdparty/opengv/matlab/ransac_test.m
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
%% Reset everything
|
||||
|
||||
clear all;
|
||||
clc;
|
||||
close all;
|
||||
addpath('helpers');
|
||||
|
||||
% central case -> only one camera
|
||||
cam_number = 1;
|
||||
% let's only get 6 points, and generate new ones in each iteration
|
||||
pt_number = 100;
|
||||
% noise test, so no outliers
|
||||
outlier_fraction = 0.1;
|
||||
|
||||
noise = 0.0;
|
||||
[points,v,t,R] = create2D3DExperiment(pt_number,cam_number,noise,outlier_fraction);
|
||||
[X, inliers] = opengv('p3p_kneip_ransac',points,v);
|
||||
Reference in New Issue
Block a user