Skip to content

Commit 26dbfc9

Browse files
Merge branch 'rel-0.8'
2 parents f65f342 + 855bc93 commit 26dbfc9

File tree

2 files changed

+104
-440
lines changed

2 files changed

+104
-440
lines changed

examples/ex_01_minimal.m

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
% FIVE_POINT_ALGORITHM -
2+
% Example 1: minimal example
3+
%
4+
% The point matches were extracted from two pictures taken with the same
5+
% camera
6+
7+
[path, ~, ~] = fileparts(which('ex_01_minimal'));
8+
addpath([path '/..']);
9+
clear path
10+
11+
pts1 = [288.8398 12.1534 317.5059 74.5754 44.1327;
12+
77.2382 163.7803 82.8476 220.5643 192.9634];
13+
14+
pts2 = [286.1892 6.9846 312.5673 70.0283 40.2131;
15+
76.7289 164.3921 81.3119 220.4840 194.1166];
16+
17+
K = [602.5277 0 177.3328;
18+
0 562.9129 102.8893;
19+
0 0 1.0000];
20+
21+
[E, Eo] = five_point_algorithm(pts1, pts2, K, K);

0 commit comments

Comments
 (0)