[Rtk-users] Issue with projection matrices
mathis.hoffmann at fau.de
mathis.hoffmann at fau.de
Mon Oct 23 06:55:57 EDT 2017
Hello,
I'm using the Python3 interface of RTK (current RTK master, built from
source) and try to set up a simple reconstrucion pipeline. Unfortunately
I fail in adding projection matrices to
ThreeDCircularProjectionGeometry. Here is a simple example that
demonstrates the problem:
import numpy as np
import SimpleRTK as rtk
geom = rtk.ThreeDCircularProjectionGeometry()
m = np.array(
[[ -3.40666667e-01, 2.00000000e+00, 0.00000000e+00, 2.55500000e+02],
[ -3.40666667e-01, 0.00000000e+00, 2.00000000e+00, 2.55500000e+02],
[ -1.33333330e-03, 0.00000000e+00, 0.00000000e+00, 1.00000000e+00]]
)
geom.AddProjection( m.flatten() )
I get "Failed to AddProjection" from RTK with no further information. To
make sure that the projection matrix is correctly passed to RTK, I
printed pMat in code/ThreeDCircularProjectionGeometry::AddProjection to
the command line. This is passed correctly. I don't know what is wrong
with my projection matrix (and also tried another one from a different
dataset). Does anyone have an idea?
Thanks in advance for any hints!
Mathis Hoffmann
More information about the Rtk-users
mailing list