optv 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
optv/calibration.pxd ADDED
@@ -0,0 +1,40 @@
1
+ # cython: language_level=3
2
+ # distutils: language = c
3
+
4
+ from optv.vec_utils cimport vec3d
5
+
6
+ cdef extern from "optv/calibration.h":
7
+ ctypedef double Dmatrix [3][3]
8
+
9
+ ctypedef struct Exterior:
10
+ double x0, y0, z0
11
+ double omega, phi, kappa
12
+ Dmatrix dm
13
+
14
+ ctypedef struct Interior:
15
+ double xh, yh
16
+ double cc
17
+
18
+ ctypedef struct Glass:
19
+ double vec_x, vec_y, vec_z
20
+
21
+ ctypedef struct ap_52:
22
+ double k1, k2, k3, p1, p2, scx, she
23
+
24
+ ctypedef struct mmlut:
25
+ vec3d origin
26
+ int nr, nz, rw
27
+ double *data
28
+
29
+ ctypedef struct calibration "Calibration":
30
+ Exterior ext_par
31
+ Interior int_par
32
+ Glass glass_par
33
+ ap_52 added_par
34
+ mmlut mmlut
35
+
36
+ int write_calibration(calibration *cal, char *filename, char *add_file)
37
+ calibration *read_calibration(char *ori_file, char *add_file, char *fallback_file)
38
+
39
+ cdef class Calibration:
40
+ cdef calibration * _calibration