Calibrated and Partially Calibrated Semi-generalized Homographies
October 11, 2021 · View on GitHub
This code library is an implementation of our proposed minimal solvers for computing semi-generalised homographies for calibrated and partially-calibrated cameras :
- Calibrated case :
sh5_2,sh5_3,sh5_4,sh4.5_2,sh4.5_3 - Partially calibrated case :
sh5f_2,sh5f_3
Additionally, we also have two absolute pose solvers designed for our homography setup :
- Calibrated case :
P3P+N - Partially calibrated case :
P5Pf+N
We have also released the Macaulay2 scripts for computing the elimination ideals (Please refer to [1] for more details) :
- Calibrated case :
input_sh5.txt - Partially calibrated case :
input_sh5f.txt
Executing Macaulay2 script :
- Based on the operating system, please refer to Macaulay2 for instructions on how to setup.
- Each of the two scripts compute the elimination ideals and write to
.txtfiles.
Executing the Minimal Solvers
-
Input : Each of our solvers require a tuple,
(q, p, c), as the input whereq <-> (p, c)denotes the 2D-2D point correspondences. -
qdenotes an array of size3x5, of 5 vectors, each denoting the viewing ray for the corresponding 2d image observation by the query pinhole camera. -
pdenotes an array of size3x5, of 5 vectors, each denoting the viewing ray for the corresponding 2d image observation in the coordinate system of the global generalized camera system. -
Each
pray is accompanied with camera centerc, or the position of the center of the pinhole camera within the generalized camera system. -
Output : The output is the generalized semi-generalized homographies,
Hsand the corresponding plane vectors,Nss. -
We have used the standard approaches for a homography decomposition to extract the relative pose and the scale.
-
An example of this, and a sample test script on synthetic scenes can be found in the synthetic_scenes/* folder, for both calibrated as well partially calibrated cameras.
-
The solvers for now are released in the MATLAB programming language while the C++ version will soon be released.
References
[1] Bhayani, S., Sattler, T., Baráth, D., Beliansky, P., Heikkila, J., & Kukelova, Z. (2021). Calibrated and Partially Calibrated Semi-Generalized Homographies. ArXiv, abs/2103.06535.