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
_______________________________________________
Rtk-users mailing list
Rtk-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/rtk-users

Reply via email to