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/__init__.py +4 -0
- optv/calibration.c +16774 -0
- optv/calibration.pxd +40 -0
- optv/correspondences.c +16004 -0
- optv/correspondences.pxd +35 -0
- optv/epipolar.c +11563 -0
- optv/epipolar.pxd +10 -0
- optv/image_processing.c +11796 -0
- optv/image_processing.pxd +12 -0
- optv/imgcoord.c +12884 -0
- optv/imgcoord.pxd +19 -0
- optv/orientation.c +17217 -0
- optv/orientation.pxd +39 -0
- optv/parameters.c +36868 -0
- optv/parameters.pxd +99 -0
- optv/segmentation.c +11724 -0
- optv/segmentation.pxd +17 -0
- optv/tracker.c +13844 -0
- optv/tracker.pxd +33 -0
- optv/tracking_framebuf.c +18509 -0
- optv/tracking_framebuf.pxd +55 -0
- optv/transforms.c +34041 -0
- optv/transforms.pxd +35 -0
- optv/vec_utils.pxd +8 -0
- optv/version.py +1 -0
- optv-0.3.0.dist-info/METADATA +47 -0
- optv-0.3.0.dist-info/RECORD +29 -0
- optv-0.3.0.dist-info/WHEEL +5 -0
- optv-0.3.0.dist-info/top_level.txt +1 -0
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
|