Skip to content

Commit d5f005e

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 26dbfc9 + 0180d7a commit d5f005e

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Sérgio Agostinho
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Five-Point Algorithm
2+
A MATLAB implementation of the Five-Point Algorithm by David Nistér
3+
4+
Given five points matches between two images, and the intrinsic parameters of each camera. Estimate the essential matrix `E`, the rotation matrix `R` and translation vector `t`, between both images. This algorithm is based on the method described by David Nistér in ["An Efficient Solution to the Five-Point Relative Pose Problem"](http://dx.doi.org/10.1109/TPAMI.2004.17)
5+
6+
#### Arguments:
7+
8+
`pts1`, `pts2` - assumed to have dimension 2x5 and of equal size.
9+
10+
`K1`, `K2` - 3x3 intrinsic parameters of cameras 1 and 2 respectively
11+
12+
#### Known Issues:
13+
14+
The algorithm is still incomplete. I'm releasing it at this early stage because it already provides proper estimates of the essential matrix. Although there is more than one solution, I'm currently only returning the first. I still need to figure out how to select the "best" if such exists.
15+
16+
#### TODO:
17+
- [ ] Extract `R` and `t` from `E`
18+
- [ ] Provide example cases.
19+
- [ ] Implement the variant with 5 points over 3 images
20+
- [ ] Handle more than 5 points
21+
22+
#### Other Info
23+
* Author: Sérgio Agostinho - sergio(dot)r(dot)agostinho(at)gmail(dot)com
24+
* Date: Feb 2015
25+
* Version: 0.8
26+
27+
Feel free to provide feedback or aid in the development.

0 commit comments

Comments
 (0)