This repository has been archived on 2024-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ar_basalt/thirdparty/opengv/matlab/ransac_test.m
2022-04-05 11:42:28 +03:00

17 lines
405 B
Matlab

%% 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);