File: ransac_test.m

package info (click to toggle)
opengv 1.0%2B1git91f4b1-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,484 kB
  • sloc: cpp: 45,813; python: 152; makefile: 17; xml: 13; sh: 4
file content (17 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);