openptv2 1.0.0__tar.gz

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.
Files changed (478) hide show
  1. openptv2-1.0.0/LICENSE +165 -0
  2. openptv2-1.0.0/MANIFEST.in +25 -0
  3. openptv2-1.0.0/PKG-INFO +521 -0
  4. openptv2-1.0.0/README.md +445 -0
  5. openptv2-1.0.0/algorithms/__init__.py +111 -0
  6. openptv2-1.0.0/algorithms/_native_compat.py +69 -0
  7. openptv2-1.0.0/algorithms/_native_convert.py +191 -0
  8. openptv2-1.0.0/algorithms/calibration.py +497 -0
  9. openptv2-1.0.0/algorithms/calibration_adapter.py +124 -0
  10. openptv2-1.0.0/algorithms/constants.py +33 -0
  11. openptv2-1.0.0/algorithms/correspondences.py +1045 -0
  12. openptv2-1.0.0/algorithms/epi.py +388 -0
  13. openptv2-1.0.0/algorithms/find_candidate.py +207 -0
  14. openptv2-1.0.0/algorithms/frame_adapter.py +146 -0
  15. openptv2-1.0.0/algorithms/image_processing.py +364 -0
  16. openptv2-1.0.0/algorithms/imgcoord.py +107 -0
  17. openptv2-1.0.0/algorithms/multimed.py +479 -0
  18. openptv2-1.0.0/algorithms/numba_impl.py +92 -0
  19. openptv2-1.0.0/algorithms/orientation.py +3359 -0
  20. openptv2-1.0.0/algorithms/parameters.py +939 -0
  21. openptv2-1.0.0/algorithms/parameters_adapter.py +443 -0
  22. openptv2-1.0.0/algorithms/ray_tracing.py +381 -0
  23. openptv2-1.0.0/algorithms/segmentation.py +661 -0
  24. openptv2-1.0.0/algorithms/sortgrid.py +156 -0
  25. openptv2-1.0.0/algorithms/tests/__init__.py +1 -0
  26. openptv2-1.0.0/algorithms/tests/conftest.py +631 -0
  27. openptv2-1.0.0/algorithms/tests/test_01_transforms.py +237 -0
  28. openptv2-1.0.0/algorithms/tests/test_02_calibration.py +396 -0
  29. openptv2-1.0.0/algorithms/tests/test_03_parameters.py +402 -0
  30. openptv2-1.0.0/algorithms/tests/test_04_target.py +241 -0
  31. openptv2-1.0.0/algorithms/tests/test_05_target_array.py +103 -0
  32. openptv2-1.0.0/algorithms/tests/test_06_frame.py +90 -0
  33. openptv2-1.0.0/algorithms/tests/test_07_orientation.py +341 -0
  34. openptv2-1.0.0/algorithms/tests/test_08_imgcoord.py +351 -0
  35. openptv2-1.0.0/algorithms/tests/test_09_correspondences.py +425 -0
  36. openptv2-1.0.0/algorithms/tests/test_10_segmentation.py +282 -0
  37. openptv2-1.0.0/algorithms/tests/test_11_image_processing.py +102 -0
  38. openptv2-1.0.0/algorithms/tests/test_12_epipolar.py +137 -0
  39. openptv2-1.0.0/algorithms/tests/test_13_multimed.py +187 -0
  40. openptv2-1.0.0/algorithms/tests/test_14_tracking_run.py +154 -0
  41. openptv2-1.0.0/algorithms/tests/test_15_tracker.py +308 -0
  42. openptv2-1.0.0/algorithms/tests/test_16_integration.py +312 -0
  43. openptv2-1.0.0/algorithms/tests/test_17_burgers.py +177 -0
  44. openptv2-1.0.0/algorithms/tests/test_18_frame_io.py +197 -0
  45. openptv2-1.0.0/algorithms/tests/test_19_track3d.py +241 -0
  46. openptv2-1.0.0/algorithms/tests/test_20_track3d_engine_comparison.py +442 -0
  47. openptv2-1.0.0/algorithms/tests/test_batch_engine_comparison.py +356 -0
  48. openptv2-1.0.0/algorithms/tests/test_calibration_parity.py +210 -0
  49. openptv2-1.0.0/algorithms/tests/test_engine_verification.py +333 -0
  50. openptv2-1.0.0/algorithms/tests/test_file_based_comparison.py +249 -0
  51. openptv2-1.0.0/algorithms/tests/test_frame_parity.py +96 -0
  52. openptv2-1.0.0/algorithms/tests/test_frame_reading_parity.py +203 -0
  53. openptv2-1.0.0/algorithms/tests/test_isolated_engine_comparison.py +406 -0
  54. openptv2-1.0.0/algorithms/tests/test_multimed.py +252 -0
  55. openptv2-1.0.0/algorithms/tests/test_multimed_detailed.py +528 -0
  56. openptv2-1.0.0/algorithms/tests/test_parameters_parity.py +306 -0
  57. openptv2-1.0.0/algorithms/tests/test_tracker_parity.py +128 -0
  58. openptv2-1.0.0/algorithms/tests/test_tracking.py +163 -0
  59. openptv2-1.0.0/algorithms/tests/test_tracking_full.py +216 -0
  60. openptv2-1.0.0/algorithms/track.py +1768 -0
  61. openptv2-1.0.0/algorithms/tracking_frame_buf.py +1135 -0
  62. openptv2-1.0.0/algorithms/tracking_run.py +135 -0
  63. openptv2-1.0.0/algorithms/trafo.py +344 -0
  64. openptv2-1.0.0/algorithms/vec_utils.py +99 -0
  65. openptv2-1.0.0/algorithms/version.py +3 -0
  66. openptv2-1.0.0/bindings/bump_version.py +51 -0
  67. openptv2-1.0.0/bindings/liboptv/include/calibration.h +84 -0
  68. openptv2-1.0.0/bindings/liboptv/include/correspondences.h +68 -0
  69. openptv2-1.0.0/bindings/liboptv/include/epi.h +44 -0
  70. openptv2-1.0.0/bindings/liboptv/include/glass.h +11 -0
  71. openptv2-1.0.0/bindings/liboptv/include/image_processing.h +26 -0
  72. openptv2-1.0.0/bindings/liboptv/include/imgcoord.h +12 -0
  73. openptv2-1.0.0/bindings/liboptv/include/lsqadj.h +13 -0
  74. openptv2-1.0.0/bindings/liboptv/include/multimed.h +44 -0
  75. openptv2-1.0.0/bindings/liboptv/include/optv/calibration.h +84 -0
  76. openptv2-1.0.0/bindings/liboptv/include/optv/correspondences.h +68 -0
  77. openptv2-1.0.0/bindings/liboptv/include/optv/epi.h +44 -0
  78. openptv2-1.0.0/bindings/liboptv/include/optv/glass.h +11 -0
  79. openptv2-1.0.0/bindings/liboptv/include/optv/image_processing.h +26 -0
  80. openptv2-1.0.0/bindings/liboptv/include/optv/imgcoord.h +12 -0
  81. openptv2-1.0.0/bindings/liboptv/include/optv/lsqadj.h +13 -0
  82. openptv2-1.0.0/bindings/liboptv/include/optv/multimed.h +44 -0
  83. openptv2-1.0.0/bindings/liboptv/include/optv/orientation.h +57 -0
  84. openptv2-1.0.0/bindings/liboptv/include/optv/parameters.h +107 -0
  85. openptv2-1.0.0/bindings/liboptv/include/optv/ray_tracing.h +22 -0
  86. openptv2-1.0.0/bindings/liboptv/include/optv/segmentation.h +41 -0
  87. openptv2-1.0.0/bindings/liboptv/include/optv/sortgrid.h +24 -0
  88. openptv2-1.0.0/bindings/liboptv/include/optv/track.h +72 -0
  89. openptv2-1.0.0/bindings/liboptv/include/optv/track3d.h +18 -0
  90. openptv2-1.0.0/bindings/liboptv/include/optv/tracking_frame_buf.h +163 -0
  91. openptv2-1.0.0/bindings/liboptv/include/optv/tracking_run.h +36 -0
  92. openptv2-1.0.0/bindings/liboptv/include/optv/trafo.h +68 -0
  93. openptv2-1.0.0/bindings/liboptv/include/optv/vec_utils.h +43 -0
  94. openptv2-1.0.0/bindings/liboptv/include/orientation.h +57 -0
  95. openptv2-1.0.0/bindings/liboptv/include/parameters.h +107 -0
  96. openptv2-1.0.0/bindings/liboptv/include/ray_tracing.h +22 -0
  97. openptv2-1.0.0/bindings/liboptv/include/segmentation.h +41 -0
  98. openptv2-1.0.0/bindings/liboptv/include/sortgrid.h +24 -0
  99. openptv2-1.0.0/bindings/liboptv/include/track.h +72 -0
  100. openptv2-1.0.0/bindings/liboptv/include/track3d.h +18 -0
  101. openptv2-1.0.0/bindings/liboptv/include/tracking_frame_buf.h +163 -0
  102. openptv2-1.0.0/bindings/liboptv/include/tracking_run.h +36 -0
  103. openptv2-1.0.0/bindings/liboptv/include/trafo.h +68 -0
  104. openptv2-1.0.0/bindings/liboptv/include/vec_utils.h +43 -0
  105. openptv2-1.0.0/bindings/liboptv/src/calibration.c +308 -0
  106. openptv2-1.0.0/bindings/liboptv/src/correspondences.c +710 -0
  107. openptv2-1.0.0/bindings/liboptv/src/epi.c +239 -0
  108. openptv2-1.0.0/bindings/liboptv/src/image_processing.c +418 -0
  109. openptv2-1.0.0/bindings/liboptv/src/imgcoord.c +75 -0
  110. openptv2-1.0.0/bindings/liboptv/src/lsqadj.c +157 -0
  111. openptv2-1.0.0/bindings/liboptv/src/multimed.c +467 -0
  112. openptv2-1.0.0/bindings/liboptv/src/orientation.c +817 -0
  113. openptv2-1.0.0/bindings/liboptv/src/parameters.c +555 -0
  114. openptv2-1.0.0/bindings/liboptv/src/ray_tracing.c +87 -0
  115. openptv2-1.0.0/bindings/liboptv/src/segmentation.c +537 -0
  116. openptv2-1.0.0/bindings/liboptv/src/sortgrid.c +199 -0
  117. openptv2-1.0.0/bindings/liboptv/src/track.c +1275 -0
  118. openptv2-1.0.0/bindings/liboptv/src/track3d.c +203 -0
  119. openptv2-1.0.0/bindings/liboptv/src/tracking_frame_buf.c +730 -0
  120. openptv2-1.0.0/bindings/liboptv/src/tracking_run.c +92 -0
  121. openptv2-1.0.0/bindings/liboptv/src/trafo.c +362 -0
  122. openptv2-1.0.0/bindings/liboptv/src/vec_utils.c +191 -0
  123. openptv2-1.0.0/bindings/optv/__init__.py +4 -0
  124. openptv2-1.0.0/bindings/optv/calibration.c +17080 -0
  125. openptv2-1.0.0/bindings/optv/calibration.pxd +40 -0
  126. openptv2-1.0.0/bindings/optv/calibration.pyx +286 -0
  127. openptv2-1.0.0/bindings/optv/correspondences.c +16647 -0
  128. openptv2-1.0.0/bindings/optv/correspondences.pxd +35 -0
  129. openptv2-1.0.0/bindings/optv/correspondences.pyx +292 -0
  130. openptv2-1.0.0/bindings/optv/epipolar.c +12654 -0
  131. openptv2-1.0.0/bindings/optv/epipolar.pxd +10 -0
  132. openptv2-1.0.0/bindings/optv/epipolar.pyx +82 -0
  133. openptv2-1.0.0/bindings/optv/image_processing.c +12846 -0
  134. openptv2-1.0.0/bindings/optv/image_processing.pxd +12 -0
  135. openptv2-1.0.0/bindings/optv/image_processing.pyx +62 -0
  136. openptv2-1.0.0/bindings/optv/imgcoord.c +13963 -0
  137. openptv2-1.0.0/bindings/optv/imgcoord.pxd +19 -0
  138. openptv2-1.0.0/bindings/optv/imgcoord.pyx +92 -0
  139. openptv2-1.0.0/bindings/optv/orientation.c +18174 -0
  140. openptv2-1.0.0/bindings/optv/orientation.pxd +39 -0
  141. openptv2-1.0.0/bindings/optv/orientation.pyx +370 -0
  142. openptv2-1.0.0/bindings/optv/parameters.c +34205 -0
  143. openptv2-1.0.0/bindings/optv/parameters.pxd +99 -0
  144. openptv2-1.0.0/bindings/optv/parameters.pyx +907 -0
  145. openptv2-1.0.0/bindings/optv/segmentation.c +12826 -0
  146. openptv2-1.0.0/bindings/optv/segmentation.pxd +17 -0
  147. openptv2-1.0.0/bindings/optv/segmentation.pyx +85 -0
  148. openptv2-1.0.0/bindings/optv/tracker.c +15073 -0
  149. openptv2-1.0.0/bindings/optv/tracker.pxd +36 -0
  150. openptv2-1.0.0/bindings/optv/tracker.pyx +151 -0
  151. openptv2-1.0.0/bindings/optv/tracking_framebuf.c +18748 -0
  152. openptv2-1.0.0/bindings/optv/tracking_framebuf.pxd +55 -0
  153. openptv2-1.0.0/bindings/optv/tracking_framebuf.pyx +367 -0
  154. openptv2-1.0.0/bindings/optv/transforms.c +33779 -0
  155. openptv2-1.0.0/bindings/optv/transforms.pxd +35 -0
  156. openptv2-1.0.0/bindings/optv/transforms.pyx +146 -0
  157. openptv2-1.0.0/bindings/optv/vec_utils.pxd +8 -0
  158. openptv2-1.0.0/bindings/optv/version.py +1 -0
  159. openptv2-1.0.0/bindings/pyproject.toml +24 -0
  160. openptv2-1.0.0/bindings/setup.py +151 -0
  161. openptv2-1.0.0/bindings/tests/conftest.py +34 -0
  162. openptv2-1.0.0/bindings/tests/liboptv/src/calibration.c +308 -0
  163. openptv2-1.0.0/bindings/tests/liboptv/src/correspondences.c +710 -0
  164. openptv2-1.0.0/bindings/tests/liboptv/src/epi.c +239 -0
  165. openptv2-1.0.0/bindings/tests/liboptv/src/image_processing.c +418 -0
  166. openptv2-1.0.0/bindings/tests/liboptv/src/imgcoord.c +75 -0
  167. openptv2-1.0.0/bindings/tests/liboptv/src/lsqadj.c +157 -0
  168. openptv2-1.0.0/bindings/tests/liboptv/src/multimed.c +467 -0
  169. openptv2-1.0.0/bindings/tests/liboptv/src/orientation.c +817 -0
  170. openptv2-1.0.0/bindings/tests/liboptv/src/parameters.c +555 -0
  171. openptv2-1.0.0/bindings/tests/liboptv/src/ray_tracing.c +87 -0
  172. openptv2-1.0.0/bindings/tests/liboptv/src/segmentation.c +537 -0
  173. openptv2-1.0.0/bindings/tests/liboptv/src/sortgrid.c +199 -0
  174. openptv2-1.0.0/bindings/tests/liboptv/src/track.c +1275 -0
  175. openptv2-1.0.0/bindings/tests/liboptv/src/track3d.c +203 -0
  176. openptv2-1.0.0/bindings/tests/liboptv/src/tracking_frame_buf.c +730 -0
  177. openptv2-1.0.0/bindings/tests/liboptv/src/tracking_run.c +92 -0
  178. openptv2-1.0.0/bindings/tests/liboptv/src/trafo.c +362 -0
  179. openptv2-1.0.0/bindings/tests/liboptv/src/vec_utils.c +191 -0
  180. openptv2-1.0.0/bindings/tests/liboptv/tests/check_calibration.c +151 -0
  181. openptv2-1.0.0/bindings/tests/liboptv/tests/check_correspondences.c +528 -0
  182. openptv2-1.0.0/bindings/tests/liboptv/tests/check_epi.c +340 -0
  183. openptv2-1.0.0/bindings/tests/liboptv/tests/check_fb.c +319 -0
  184. openptv2-1.0.0/bindings/tests/liboptv/tests/check_image_proc.c +406 -0
  185. openptv2-1.0.0/bindings/tests/liboptv/tests/check_imgcoord.c +194 -0
  186. openptv2-1.0.0/bindings/tests/liboptv/tests/check_lsqadj.c +153 -0
  187. openptv2-1.0.0/bindings/tests/liboptv/tests/check_multimed.c +448 -0
  188. openptv2-1.0.0/bindings/tests/liboptv/tests/check_orientation.c +397 -0
  189. openptv2-1.0.0/bindings/tests/liboptv/tests/check_parameters.c +194 -0
  190. openptv2-1.0.0/bindings/tests/liboptv/tests/check_ray_tracing.c +93 -0
  191. openptv2-1.0.0/bindings/tests/liboptv/tests/check_segmentation.c +146 -0
  192. openptv2-1.0.0/bindings/tests/liboptv/tests/check_sortgrid.c +153 -0
  193. openptv2-1.0.0/bindings/tests/liboptv/tests/check_track.c +924 -0
  194. openptv2-1.0.0/bindings/tests/liboptv/tests/check_track3d.c +454 -0
  195. openptv2-1.0.0/bindings/tests/liboptv/tests/check_trafo.c +375 -0
  196. openptv2-1.0.0/bindings/tests/liboptv/tests/check_vec_utils.c +206 -0
  197. openptv2-1.0.0/bindings/tests/liboptv/tests/gen_track_data.py +53 -0
  198. openptv2-1.0.0/bindings/tests/test_burgers.py +177 -0
  199. openptv2-1.0.0/bindings/tests/test_calibration_binding.py +124 -0
  200. openptv2-1.0.0/bindings/tests/test_corresp.py +139 -0
  201. openptv2-1.0.0/bindings/tests/test_epipolar.py +58 -0
  202. openptv2-1.0.0/bindings/tests/test_framebuf.py +106 -0
  203. openptv2-1.0.0/bindings/tests/test_image_processing.py +51 -0
  204. openptv2-1.0.0/bindings/tests/test_img_coord.py +60 -0
  205. openptv2-1.0.0/bindings/tests/test_orientation.py +344 -0
  206. openptv2-1.0.0/bindings/tests/test_parameters_bindings.py +455 -0
  207. openptv2-1.0.0/bindings/tests/test_segmentation.py +82 -0
  208. openptv2-1.0.0/bindings/tests/test_tracker.py +224 -0
  209. openptv2-1.0.0/bindings/tests/test_trafo_bindings.py +181 -0
  210. openptv2-1.0.0/bindings/tests/test_version.py +15 -0
  211. openptv2-1.0.0/gui/notebooks/marimo_epipolar_opencv_board.py +1002 -0
  212. openptv2-1.0.0/gui/notebooks/marimo_epipolar_tool.py +315 -0
  213. openptv2-1.0.0/gui/notebooks/marimo_ui_calibration.py +200 -0
  214. openptv2-1.0.0/gui/notebooks/marimo_ui_detection.py +310 -0
  215. openptv2-1.0.0/gui/notebooks/marimo_ui_parameters.py +1097 -0
  216. openptv2-1.0.0/gui/notebooks/test_optv_target_mo.py +157 -0
  217. openptv2-1.0.0/gui/plugins/ext_sequence_contour.py +301 -0
  218. openptv2-1.0.0/gui/plugins/ext_sequence_denis.py +74 -0
  219. openptv2-1.0.0/gui/plugins/ext_sequence_rembg.py +168 -0
  220. openptv2-1.0.0/gui/plugins/ext_sequence_rembg_contour.py +219 -0
  221. openptv2-1.0.0/gui/plugins/ext_tracker_denis.py +30 -0
  222. openptv2-1.0.0/gui/pyproject.toml +76 -0
  223. openptv2-1.0.0/gui/pyptv/__init__.py +10 -0
  224. openptv2-1.0.0/gui/pyptv/__main__.py +3 -0
  225. openptv2-1.0.0/gui/pyptv/__version__.py +1 -0
  226. openptv2-1.0.0/gui/pyptv/calibration_gui.py +1085 -0
  227. openptv2-1.0.0/gui/pyptv/cli.py +2 -0
  228. openptv2-1.0.0/gui/pyptv/code_editor.py +142 -0
  229. openptv2-1.0.0/gui/pyptv/detection_gui.py +830 -0
  230. openptv2-1.0.0/gui/pyptv/directory_editor.py +37 -0
  231. openptv2-1.0.0/gui/pyptv/draw_3d_target.py +39 -0
  232. openptv2-1.0.0/gui/pyptv/dumbbell_ground_truth.py +240 -0
  233. openptv2-1.0.0/gui/pyptv/experiment.py +314 -0
  234. openptv2-1.0.0/gui/pyptv/file_editor_demo.py +26 -0
  235. openptv2-1.0.0/gui/pyptv/flowtracks_utils.py +91 -0
  236. openptv2-1.0.0/gui/pyptv/ground_truth.py +143 -0
  237. openptv2-1.0.0/gui/pyptv/image_inspector.py +103 -0
  238. openptv2-1.0.0/gui/pyptv/imageplot.py +102 -0
  239. openptv2-1.0.0/gui/pyptv/imread_chaco.py +222 -0
  240. openptv2-1.0.0/gui/pyptv/legacy_parameters.py +1038 -0
  241. openptv2-1.0.0/gui/pyptv/mask_gui.py +416 -0
  242. openptv2-1.0.0/gui/pyptv/optimize_calibration.py +293 -0
  243. openptv2-1.0.0/gui/pyptv/parameter_gui.py +1060 -0
  244. openptv2-1.0.0/gui/pyptv/parameter_manager.py +321 -0
  245. openptv2-1.0.0/gui/pyptv/parameter_util.py +320 -0
  246. openptv2-1.0.0/gui/pyptv/prepare_static_background.py +52 -0
  247. openptv2-1.0.0/gui/pyptv/ptv.py +2319 -0
  248. openptv2-1.0.0/gui/pyptv/pyptv_batch.py +354 -0
  249. openptv2-1.0.0/gui/pyptv/pyptv_batch_parallel.py +449 -0
  250. openptv2-1.0.0/gui/pyptv/pyptv_batch_plugins.py +143 -0
  251. openptv2-1.0.0/gui/pyptv/pyptv_gui.py +1647 -0
  252. openptv2-1.0.0/gui/pyptv/quiver_demo.py +68 -0
  253. openptv2-1.0.0/gui/pyptv/quiverplot.py +135 -0
  254. openptv2-1.0.0/gui/pyptv/scatter_inspector2.py +116 -0
  255. openptv2-1.0.0/gui/pyptv/standalone_calibration.py +226 -0
  256. openptv2-1.0.0/gui/pyptv/standalone_dumbbell_calibration.py +440 -0
  257. openptv2-1.0.0/gui/pyptv/text_box_overlay.py +133 -0
  258. openptv2-1.0.0/gui/pyptv/visualize_cameras_nb.py +153 -0
  259. openptv2-1.0.0/gui/pyptv/visualize_rt_is_nb.py +198 -0
  260. openptv2-1.0.0/gui/scripts/standalone_calibration.py +226 -0
  261. openptv2-1.0.0/gui/scripts/standalone_dumbbell_calibration.py +440 -0
  262. openptv2-1.0.0/gui/tests/__init__.py +0 -0
  263. openptv2-1.0.0/gui/tests/conftest.py +40 -0
  264. openptv2-1.0.0/gui/tests/debug_params.py +0 -0
  265. openptv2-1.0.0/gui/tests/debug_tpar.py +0 -0
  266. openptv2-1.0.0/gui/tests/demo_parallel_batch.py +221 -0
  267. openptv2-1.0.0/gui/tests/demo_parameter_conversion.py +0 -0
  268. openptv2-1.0.0/gui/tests/logger_demo.py +259 -0
  269. openptv2-1.0.0/gui/tests/simple_param_test.py +0 -0
  270. openptv2-1.0.0/gui/tests/test_apply_optimizations.py +151 -0
  271. openptv2-1.0.0/gui/tests/test_cal_ori_roundtrip.py +56 -0
  272. openptv2-1.0.0/gui/tests/test_calibration.py +202 -0
  273. openptv2-1.0.0/gui/tests/test_calibration_copy.py +27 -0
  274. openptv2-1.0.0/gui/tests/test_calibration_simple.py +0 -0
  275. openptv2-1.0.0/gui/tests/test_calibration_utils.py +126 -0
  276. openptv2-1.0.0/gui/tests/test_cavity_comprehensive.py +385 -0
  277. openptv2-1.0.0/gui/tests/test_cli.py +5 -0
  278. openptv2-1.0.0/gui/tests/test_cli_extended.py +98 -0
  279. openptv2-1.0.0/gui/tests/test_clone_calibration.py +95 -0
  280. openptv2-1.0.0/gui/tests/test_core_functionality.py +64 -0
  281. openptv2-1.0.0/gui/tests/test_correspondence_fix.py +0 -0
  282. openptv2-1.0.0/gui/tests/test_detection_bug.py +157 -0
  283. openptv2-1.0.0/gui/tests/test_detection_consistency.py +139 -0
  284. openptv2-1.0.0/gui/tests/test_detection_debug.py +0 -0
  285. openptv2-1.0.0/gui/tests/test_detection_simple.py +0 -0
  286. openptv2-1.0.0/gui/tests/test_environment.py +24 -0
  287. openptv2-1.0.0/gui/tests/test_experiment_design.py +235 -0
  288. openptv2-1.0.0/gui/tests/test_experiment_par_to_yaml.py +48 -0
  289. openptv2-1.0.0/gui/tests/test_export_ptv_is_to_paraview.py +41 -0
  290. openptv2-1.0.0/gui/tests/test_ext_sequence_splitter.py +161 -0
  291. openptv2-1.0.0/gui/tests/test_ext_sequence_splitter_pytest.py +33 -0
  292. openptv2-1.0.0/gui/tests/test_extended_parameters.py +209 -0
  293. openptv2-1.0.0/gui/tests/test_extract_cam_id.py +0 -0
  294. openptv2-1.0.0/gui/tests/test_extract_cam_ids.py +51 -0
  295. openptv2-1.0.0/gui/tests/test_file_base_to_filename.py +35 -0
  296. openptv2-1.0.0/gui/tests/test_generate_short_file_bases.py +14 -0
  297. openptv2-1.0.0/gui/tests/test_gui_functionality.py +307 -0
  298. openptv2-1.0.0/gui/tests/test_gui_output_directory.py +43 -0
  299. openptv2-1.0.0/gui/tests/test_image_path_resolution.py +0 -0
  300. openptv2-1.0.0/gui/tests/test_image_path_resolution_fixed.py +217 -0
  301. openptv2-1.0.0/gui/tests/test_installation.py +56 -0
  302. openptv2-1.0.0/gui/tests/test_legacy_parameters_roundtrip.py +53 -0
  303. openptv2-1.0.0/gui/tests/test_man_ori_migration.py +0 -0
  304. openptv2-1.0.0/gui/tests/test_numpy_compatibility.py +31 -0
  305. openptv2-1.0.0/gui/tests/test_optv.py +51 -0
  306. openptv2-1.0.0/gui/tests/test_parameter_manager.py +63 -0
  307. openptv2-1.0.0/gui/tests/test_parameter_manager_prints.py +31 -0
  308. openptv2-1.0.0/gui/tests/test_parameter_manager_structure.py +99 -0
  309. openptv2-1.0.0/gui/tests/test_parameter_manager_yaml_plugins.py +90 -0
  310. openptv2-1.0.0/gui/tests/test_parameter_performance.py +216 -0
  311. openptv2-1.0.0/gui/tests/test_parameter_util.py +182 -0
  312. openptv2-1.0.0/gui/tests/test_parameters.py +196 -0
  313. openptv2-1.0.0/gui/tests/test_paramset_dialog.py +69 -0
  314. openptv2-1.0.0/gui/tests/test_populate_cython_parameters.py +179 -0
  315. openptv2-1.0.0/gui/tests/test_populate_parameters.py +1121 -0
  316. openptv2-1.0.0/gui/tests/test_ptv_core.py +53 -0
  317. openptv2-1.0.0/gui/tests/test_ptv_coverage_summary.py +119 -0
  318. openptv2-1.0.0/gui/tests/test_ptv_file_io.py +411 -0
  319. openptv2-1.0.0/gui/tests/test_ptv_image_processing.py +156 -0
  320. openptv2-1.0.0/gui/tests/test_ptv_parameter_population.py +295 -0
  321. openptv2-1.0.0/gui/tests/test_ptv_remaining.py +45 -0
  322. openptv2-1.0.0/gui/tests/test_ptv_utilities.py +455 -0
  323. openptv2-1.0.0/gui/tests/test_pyptv_batch.py +527 -0
  324. openptv2-1.0.0/gui/tests/test_pyptv_batch_parallel.py +68 -0
  325. openptv2-1.0.0/gui/tests/test_pyptv_batch_parallel_improved.py +0 -0
  326. openptv2-1.0.0/gui/tests/test_pyptv_batch_plugins.py +57 -0
  327. openptv2-1.0.0/gui/tests/test_sequence_fix.py +0 -0
  328. openptv2-1.0.0/gui/tests/test_standalone_calibration_cycle.py +69 -0
  329. openptv2-1.0.0/gui/tests/test_standalone_dumbbell_calibration_cycle.py +94 -0
  330. openptv2-1.0.0/gui/tests/test_track_parameters.py +76 -0
  331. openptv2-1.0.0/gui/tests/test_track_res_vs_res_orig.py +163 -0
  332. openptv2-1.0.0/gui/tests/test_tracker_minimal.py +71 -0
  333. openptv2-1.0.0/gui/tests/test_tracking_analysis.py +410 -0
  334. openptv2-1.0.0/gui/tests/test_tracking_parameter_bug.py +252 -0
  335. openptv2-1.0.0/gui/tests/test_tracking_parameter_optimization.py +210 -0
  336. openptv2-1.0.0/gui/tests/test_tracking_parameters.py +391 -0
  337. openptv2-1.0.0/gui/tests/test_traject_action_flowtracks.py +72 -0
  338. openptv2-1.0.0/gui/tests/test_utils.py +0 -0
  339. openptv2-1.0.0/gui/tests/test_yaml_path_assignment.py +3 -0
  340. openptv2-1.0.0/gui/tests/test_yaml_system.py +0 -0
  341. openptv2-1.0.0/lib/CMakeLists.txt +29 -0
  342. openptv2-1.0.0/lib/README.txt +159 -0
  343. openptv2-1.0.0/lib/include/calibration.h +84 -0
  344. openptv2-1.0.0/lib/include/correspondences.h +68 -0
  345. openptv2-1.0.0/lib/include/epi.h +44 -0
  346. openptv2-1.0.0/lib/include/glass.h +11 -0
  347. openptv2-1.0.0/lib/include/image_processing.h +26 -0
  348. openptv2-1.0.0/lib/include/imgcoord.h +12 -0
  349. openptv2-1.0.0/lib/include/lsqadj.h +13 -0
  350. openptv2-1.0.0/lib/include/multimed.h +44 -0
  351. openptv2-1.0.0/lib/include/orientation.h +57 -0
  352. openptv2-1.0.0/lib/include/parameters.h +107 -0
  353. openptv2-1.0.0/lib/include/ray_tracing.h +22 -0
  354. openptv2-1.0.0/lib/include/segmentation.h +41 -0
  355. openptv2-1.0.0/lib/include/sortgrid.h +24 -0
  356. openptv2-1.0.0/lib/include/track.h +72 -0
  357. openptv2-1.0.0/lib/include/track3d.h +18 -0
  358. openptv2-1.0.0/lib/include/tracking_frame_buf.h +163 -0
  359. openptv2-1.0.0/lib/include/tracking_run.h +36 -0
  360. openptv2-1.0.0/lib/include/trafo.h +68 -0
  361. openptv2-1.0.0/lib/include/vec_utils.h +43 -0
  362. openptv2-1.0.0/lib/src/CMakeLists.txt +36 -0
  363. openptv2-1.0.0/lib/src/calibration.c +308 -0
  364. openptv2-1.0.0/lib/src/correspondences.c +710 -0
  365. openptv2-1.0.0/lib/src/epi.c +239 -0
  366. openptv2-1.0.0/lib/src/image_processing.c +418 -0
  367. openptv2-1.0.0/lib/src/imgcoord.c +75 -0
  368. openptv2-1.0.0/lib/src/lsqadj.c +157 -0
  369. openptv2-1.0.0/lib/src/multimed.c +467 -0
  370. openptv2-1.0.0/lib/src/orientation.c +817 -0
  371. openptv2-1.0.0/lib/src/parameters.c +555 -0
  372. openptv2-1.0.0/lib/src/ray_tracing.c +87 -0
  373. openptv2-1.0.0/lib/src/segmentation.c +537 -0
  374. openptv2-1.0.0/lib/src/sortgrid.c +199 -0
  375. openptv2-1.0.0/lib/src/track.c +1275 -0
  376. openptv2-1.0.0/lib/src/track3d.c +203 -0
  377. openptv2-1.0.0/lib/src/tracking_frame_buf.c +730 -0
  378. openptv2-1.0.0/lib/src/tracking_run.c +92 -0
  379. openptv2-1.0.0/lib/src/trafo.c +362 -0
  380. openptv2-1.0.0/lib/src/vec_utils.c +191 -0
  381. openptv2-1.0.0/lib/tests/CMakeLists.txt +133 -0
  382. openptv2-1.0.0/lib/tests/check_calibration.c +151 -0
  383. openptv2-1.0.0/lib/tests/check_correspondences.c +528 -0
  384. openptv2-1.0.0/lib/tests/check_epi.c +340 -0
  385. openptv2-1.0.0/lib/tests/check_fb.c +319 -0
  386. openptv2-1.0.0/lib/tests/check_image_proc.c +406 -0
  387. openptv2-1.0.0/lib/tests/check_imgcoord.c +194 -0
  388. openptv2-1.0.0/lib/tests/check_lsqadj.c +153 -0
  389. openptv2-1.0.0/lib/tests/check_multimed.c +448 -0
  390. openptv2-1.0.0/lib/tests/check_orientation.c +397 -0
  391. openptv2-1.0.0/lib/tests/check_parameters.c +194 -0
  392. openptv2-1.0.0/lib/tests/check_ray_tracing.c +93 -0
  393. openptv2-1.0.0/lib/tests/check_segmentation.c +146 -0
  394. openptv2-1.0.0/lib/tests/check_sortgrid.c +153 -0
  395. openptv2-1.0.0/lib/tests/check_track.c +924 -0
  396. openptv2-1.0.0/lib/tests/check_track3d.c +454 -0
  397. openptv2-1.0.0/lib/tests/check_trafo.c +375 -0
  398. openptv2-1.0.0/lib/tests/check_vec_utils.c +206 -0
  399. openptv2-1.0.0/openptv2/__init__.py +126 -0
  400. openptv2-1.0.0/openptv2/algorithms/__init__.py +111 -0
  401. openptv2-1.0.0/openptv2/algorithms/_native_compat.py +69 -0
  402. openptv2-1.0.0/openptv2/algorithms/_native_convert.py +191 -0
  403. openptv2-1.0.0/openptv2/algorithms/calibration.py +497 -0
  404. openptv2-1.0.0/openptv2/algorithms/calibration_adapter.py +124 -0
  405. openptv2-1.0.0/openptv2/algorithms/constants.py +33 -0
  406. openptv2-1.0.0/openptv2/algorithms/correspondences.py +1045 -0
  407. openptv2-1.0.0/openptv2/algorithms/epi.py +388 -0
  408. openptv2-1.0.0/openptv2/algorithms/find_candidate.py +207 -0
  409. openptv2-1.0.0/openptv2/algorithms/frame_adapter.py +146 -0
  410. openptv2-1.0.0/openptv2/algorithms/image_processing.py +364 -0
  411. openptv2-1.0.0/openptv2/algorithms/imgcoord.py +107 -0
  412. openptv2-1.0.0/openptv2/algorithms/multimed.py +479 -0
  413. openptv2-1.0.0/openptv2/algorithms/numba_impl.py +92 -0
  414. openptv2-1.0.0/openptv2/algorithms/orientation.py +3359 -0
  415. openptv2-1.0.0/openptv2/algorithms/parameters.py +939 -0
  416. openptv2-1.0.0/openptv2/algorithms/parameters_adapter.py +443 -0
  417. openptv2-1.0.0/openptv2/algorithms/ray_tracing.py +381 -0
  418. openptv2-1.0.0/openptv2/algorithms/segmentation.py +661 -0
  419. openptv2-1.0.0/openptv2/algorithms/sortgrid.py +156 -0
  420. openptv2-1.0.0/openptv2/algorithms/tests/__init__.py +1 -0
  421. openptv2-1.0.0/openptv2/algorithms/tests/conftest.py +631 -0
  422. openptv2-1.0.0/openptv2/algorithms/tests/test_01_transforms.py +237 -0
  423. openptv2-1.0.0/openptv2/algorithms/tests/test_02_calibration.py +396 -0
  424. openptv2-1.0.0/openptv2/algorithms/tests/test_03_parameters.py +402 -0
  425. openptv2-1.0.0/openptv2/algorithms/tests/test_04_target.py +241 -0
  426. openptv2-1.0.0/openptv2/algorithms/tests/test_05_target_array.py +103 -0
  427. openptv2-1.0.0/openptv2/algorithms/tests/test_06_frame.py +90 -0
  428. openptv2-1.0.0/openptv2/algorithms/tests/test_07_orientation.py +341 -0
  429. openptv2-1.0.0/openptv2/algorithms/tests/test_08_imgcoord.py +351 -0
  430. openptv2-1.0.0/openptv2/algorithms/tests/test_09_correspondences.py +425 -0
  431. openptv2-1.0.0/openptv2/algorithms/tests/test_10_segmentation.py +282 -0
  432. openptv2-1.0.0/openptv2/algorithms/tests/test_11_image_processing.py +102 -0
  433. openptv2-1.0.0/openptv2/algorithms/tests/test_12_epipolar.py +137 -0
  434. openptv2-1.0.0/openptv2/algorithms/tests/test_13_multimed.py +187 -0
  435. openptv2-1.0.0/openptv2/algorithms/tests/test_14_tracking_run.py +154 -0
  436. openptv2-1.0.0/openptv2/algorithms/tests/test_15_tracker.py +308 -0
  437. openptv2-1.0.0/openptv2/algorithms/tests/test_16_integration.py +312 -0
  438. openptv2-1.0.0/openptv2/algorithms/tests/test_17_burgers.py +177 -0
  439. openptv2-1.0.0/openptv2/algorithms/tests/test_18_frame_io.py +197 -0
  440. openptv2-1.0.0/openptv2/algorithms/tests/test_19_track3d.py +241 -0
  441. openptv2-1.0.0/openptv2/algorithms/tests/test_20_track3d_engine_comparison.py +442 -0
  442. openptv2-1.0.0/openptv2/algorithms/tests/test_batch_engine_comparison.py +356 -0
  443. openptv2-1.0.0/openptv2/algorithms/tests/test_calibration_parity.py +210 -0
  444. openptv2-1.0.0/openptv2/algorithms/tests/test_engine_verification.py +333 -0
  445. openptv2-1.0.0/openptv2/algorithms/tests/test_file_based_comparison.py +249 -0
  446. openptv2-1.0.0/openptv2/algorithms/tests/test_frame_parity.py +96 -0
  447. openptv2-1.0.0/openptv2/algorithms/tests/test_frame_reading_parity.py +203 -0
  448. openptv2-1.0.0/openptv2/algorithms/tests/test_isolated_engine_comparison.py +406 -0
  449. openptv2-1.0.0/openptv2/algorithms/tests/test_multimed.py +252 -0
  450. openptv2-1.0.0/openptv2/algorithms/tests/test_multimed_detailed.py +528 -0
  451. openptv2-1.0.0/openptv2/algorithms/tests/test_parameters_parity.py +306 -0
  452. openptv2-1.0.0/openptv2/algorithms/tests/test_tracker_parity.py +128 -0
  453. openptv2-1.0.0/openptv2/algorithms/tests/test_tracking.py +163 -0
  454. openptv2-1.0.0/openptv2/algorithms/tests/test_tracking_full.py +216 -0
  455. openptv2-1.0.0/openptv2/algorithms/track.py +1768 -0
  456. openptv2-1.0.0/openptv2/algorithms/tracking_frame_buf.py +1135 -0
  457. openptv2-1.0.0/openptv2/algorithms/tracking_run.py +135 -0
  458. openptv2-1.0.0/openptv2/algorithms/trafo.py +344 -0
  459. openptv2-1.0.0/openptv2/algorithms/vec_utils.py +99 -0
  460. openptv2-1.0.0/openptv2/algorithms/version.py +3 -0
  461. openptv2-1.0.0/openptv2/calibration.py +415 -0
  462. openptv2-1.0.0/openptv2/correspondence.py +244 -0
  463. openptv2-1.0.0/openptv2/engine.py +188 -0
  464. openptv2-1.0.0/openptv2/test_support.py +13 -0
  465. openptv2-1.0.0/openptv2/tracker.py +298 -0
  466. openptv2-1.0.0/openptv2/tracking_framebuf.py +298 -0
  467. openptv2-1.0.0/openptv2/validate.py +146 -0
  468. openptv2-1.0.0/openptv2/version.py +6 -0
  469. openptv2-1.0.0/openptv2.egg-info/PKG-INFO +521 -0
  470. openptv2-1.0.0/openptv2.egg-info/SOURCES.txt +476 -0
  471. openptv2-1.0.0/openptv2.egg-info/dependency_links.txt +1 -0
  472. openptv2-1.0.0/openptv2.egg-info/entry_points.txt +5 -0
  473. openptv2-1.0.0/openptv2.egg-info/not-zip-safe +1 -0
  474. openptv2-1.0.0/openptv2.egg-info/requires.txt +57 -0
  475. openptv2-1.0.0/openptv2.egg-info/top_level.txt +4 -0
  476. openptv2-1.0.0/pyproject.toml +154 -0
  477. openptv2-1.0.0/setup.cfg +4 -0
  478. openptv2-1.0.0/setup.py +253 -0
openptv2-1.0.0/LICENSE ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,25 @@
1
+ include README.md
2
+ include LICENSE
3
+ include pyproject.toml
4
+ include setup.py
5
+
6
+ # Include C source files
7
+ recursive-include lib *.c *.h *.txt
8
+ recursive-include lib/src *.c
9
+ recursive-include lib/include *.h
10
+
11
+ # Include Cython sources (both .pyx and generated .c)
12
+ recursive-include bindings *.pyx *.pxd *.py *.toml *.c
13
+ recursive-include bindings/optv *.pyx *.pxd *.py *.c
14
+ recursive-include bindings/liboptv *.c *.h
15
+
16
+ # Include Python packages
17
+ recursive-include openptv2 *.py *.pxd
18
+ recursive-include algorithms *.py
19
+ recursive-include gui *.py *.toml
20
+
21
+ # Include tests
22
+ recursive-include bindings/tests *.py
23
+ recursive-include algorithms/tests *.py
24
+ recursive-include gui/tests *.py
25
+ recursive-include lib/tests *.c
@@ -0,0 +1,521 @@
1
+ Metadata-Version: 2.4
2
+ Name: openptv2
3
+ Version: 1.0.0
4
+ Summary: Unified OpenPTV: Particle Tracking Velocimetry with dual-engine support
5
+ Author-email: OpenPTV Community <openptv@googlegroups.com>
6
+ License: LGPL-3.0-or-later
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: Intended Audience :: Science/Research
9
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
10
+ Classifier: Operating System :: Microsoft :: Windows
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Cython
17
+ Classifier: Programming Language :: C
18
+ Classifier: Topic :: Scientific/Engineering :: Physics
19
+ Classifier: Topic :: Scientific/Engineering :: Visualization
20
+ Requires-Python: <3.14,>=3.11
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: numpy>=2.0.0
24
+ Requires-Dist: pytest>=9.0.2
25
+ Requires-Dist: pyyaml>=6.0
26
+ Requires-Dist: scipy>=1.10.0
27
+ Provides-Extra: gui
28
+ Requires-Dist: traits>=6.4.0; extra == "gui"
29
+ Requires-Dist: traitsui>=7.4.0; extra == "gui"
30
+ Requires-Dist: enable>=6.1.0; extra == "gui"
31
+ Requires-Dist: chaco>=6.1.0; extra == "gui"
32
+ Requires-Dist: PySide6>=6.0.0; extra == "gui"
33
+ Requires-Dist: scikit-image>=0.20.0; extra == "gui"
34
+ Requires-Dist: pandas>=2.0.0; extra == "gui"
35
+ Requires-Dist: matplotlib>=3.7.0; extra == "gui"
36
+ Requires-Dist: tables>=3.8.0; extra == "gui"
37
+ Requires-Dist: tqdm>=4.65.0; extra == "gui"
38
+ Requires-Dist: imagecodecs>=2023.1.23; extra == "gui"
39
+ Requires-Dist: flowtracks>=0.3.0; extra == "gui"
40
+ Requires-Dist: Pygments>=2.15.0; extra == "gui"
41
+ Requires-Dist: pyparsing>=3.0.0; extra == "gui"
42
+ Requires-Dist: marimo>=0.19.10; extra == "gui"
43
+ Provides-Extra: numba
44
+ Requires-Dist: numba>=0.60.0; extra == "numba"
45
+ Provides-Extra: test
46
+ Requires-Dist: pytest>=8.0.0; extra == "test"
47
+ Requires-Dist: pytest-cov>=5.0.0; extra == "test"
48
+ Provides-Extra: dev
49
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
50
+ Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
51
+ Requires-Dist: mypy>=1.10.0; extra == "dev"
52
+ Requires-Dist: pre-commit>=4.0.0; extra == "dev"
53
+ Requires-Dist: ruff>=0.5.0; extra == "dev"
54
+ Requires-Dist: traits>=6.4.0; extra == "dev"
55
+ Requires-Dist: traitsui>=7.4.0; extra == "dev"
56
+ Requires-Dist: enable>=6.1.0; extra == "dev"
57
+ Requires-Dist: chaco>=6.1.0; extra == "dev"
58
+ Requires-Dist: PySide6>=6.0.0; extra == "dev"
59
+ Requires-Dist: scikit-image>=0.20.0; extra == "dev"
60
+ Requires-Dist: pandas>=2.0.0; extra == "dev"
61
+ Requires-Dist: matplotlib>=3.7.0; extra == "dev"
62
+ Requires-Dist: tables>=3.8.0; extra == "dev"
63
+ Requires-Dist: tqdm>=4.65.0; extra == "dev"
64
+ Requires-Dist: imagecodecs>=2023.1.23; extra == "dev"
65
+ Requires-Dist: flowtracks>=0.3.0; extra == "dev"
66
+ Requires-Dist: Pygments>=2.15.0; extra == "dev"
67
+ Requires-Dist: pyparsing>=3.0.0; extra == "dev"
68
+ Requires-Dist: marimo>=0.19.10; extra == "dev"
69
+ Requires-Dist: numba>=0.60.0; extra == "dev"
70
+ Provides-Extra: docs
71
+ Requires-Dist: sphinx>=8.0.0; extra == "docs"
72
+ Requires-Dist: sphinx-autoapi>=3.0.0; extra == "docs"
73
+ Requires-Dist: pydata-sphinx-theme>=0.16.0; extra == "docs"
74
+ Requires-Dist: myst-parser>=5.0.0; extra == "docs"
75
+ Dynamic: license-file
76
+
77
+ # openptv2
78
+
79
+ **Unified OpenPTV**: Particle Tracking Velocimetry with dual-engine support
80
+
81
+ [![Python](https://img.shields.io/pypi/pyversions/openptv2.svg)](https://pypi.org/project/openptv2/)
82
+ [![License](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](LICENSE)
83
+
84
+ ## Overview
85
+
86
+ openptv2 combines the best of three repositories into a single, maintainable package:
87
+
88
+ - **C core library** (`lib/`) - High-performance particle tracking algorithms
89
+ - **Cython bindings** (`bindings/`) - Python interface to C library
90
+ - **Python/Numba fallback** (`algorithms/`) - Pure Python implementation for debugging
91
+ - **TraitsUI GUI** (`gui/`) - Full-featured graphical interface
92
+
93
+ ## Key Features
94
+
95
+ - **Dual-engine architecture**: Use fast C/Cython (`optv`) or debuggable Python/Numba (`python`)
96
+ - **Identical results**: Both engines produce the same output (within floating-point tolerance)
97
+ - **Backward compatible**: Works with existing `optv` and `pyptv` code
98
+ - **Easy installation**: Pre-built wheels for Linux, Windows, macOS
99
+
100
+ ---
101
+
102
+ ## Installation
103
+
104
+ ### For End Users (Pre-built Wheels)
105
+
106
+ **Prerequisites:**
107
+ - Python 3.11, 3.12, or 3.13
108
+ - pip or uv package manager
109
+
110
+ #### Option 1: Using pip
111
+
112
+ ```bash
113
+ pip install openptv2
114
+ ```
115
+
116
+ #### Option 2: Using uv (recommended)
117
+
118
+ ```bash
119
+ # Install uv if you haven't already
120
+ curl -LsSf https://astral.sh/uv/install.sh | sh
121
+
122
+ # Install openptv2
123
+ uv add openptv2
124
+ ```
125
+
126
+ #### Verify Installation
127
+
128
+ ```bash
129
+ python -c "import openptv2; print(f'openptv2 version: {openptv2.__version__}')"
130
+ python -c "from openptv2 import Tracker; print('Tracker imported successfully')"
131
+ ```
132
+
133
+ ---
134
+
135
+ ### For Developers (Build from Source)
136
+
137
+ **Prerequisites:**
138
+ - Python 3.11, 3.12, or 3.13
139
+ - CMake 3.15+
140
+ - C compiler (gcc on Linux, clang on macOS, MSVC on Windows)
141
+ - Cython 3.0+
142
+ - NumPy 2.0+
143
+ - uv (recommended) or pip
144
+
145
+ #### System Dependencies
146
+
147
+ **Linux (Debian/Ubuntu):**
148
+ ```bash
149
+ sudo apt-get update
150
+ sudo apt-get install -y cmake build-essential python3-dev
151
+ ```
152
+
153
+ **Linux (Fedora/RHEL):**
154
+ ```bash
155
+ sudo dnf install -y cmake gcc gcc-c++ python3-devel
156
+ ```
157
+
158
+ **macOS:**
159
+ ```bash
160
+ # Install Xcode Command Line Tools
161
+ xcode-select --install
162
+
163
+ # Install cmake via Homebrew (optional, if not using system cmake)
164
+ brew install cmake
165
+ ```
166
+
167
+ **Windows:**
168
+ - Install [Microsoft Visual C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
169
+ - Install [CMake](https://cmake.org/download/)
170
+
171
+ #### Step 1: Clone the Repository
172
+
173
+ ```bash
174
+ git clone https://github.com/openptv/openptv2.git
175
+ cd openptv2
176
+ ```
177
+
178
+ #### Step 2: Install Dependencies and Build
179
+
180
+ **Using uv (recommended):**
181
+ ```bash
182
+ # Sync all dependencies and build the package
183
+ uv sync --extra dev
184
+ ```
185
+
186
+ **Using pip:**
187
+ ```bash
188
+ # Create virtual environment
189
+ python -m venv .venv
190
+ source .venv/bin/activate # On Windows: .venv\Scripts\activate
191
+
192
+ # Install build dependencies
193
+ pip install scikit-build-core cython numpy
194
+
195
+ # Install in development mode
196
+ pip install -e ".[dev]"
197
+ ```
198
+
199
+ #### Step 3: Verify Build
200
+
201
+ ```bash
202
+ # Test imports
203
+ python -c "import openptv2; print(f'openptv2 version: {openptv2.__version__}')"
204
+ python -c "from openptv2 import Tracker; print('Tracker imported successfully')"
205
+
206
+ # Run tests
207
+ pytest tests/ -v --tb=short
208
+ ```
209
+
210
+ ---
211
+
212
+ ### Installation with GUI Dependencies
213
+
214
+ The GUI requires additional dependencies:
215
+
216
+ ```bash
217
+ # Using uv
218
+ uv sync --all-extras
219
+
220
+ # Using pip
221
+ pip install -e ".[gui,dev]"
222
+ ```
223
+
224
+ **GUI dependencies include:**
225
+ - traits, traitsui (Enthought framework)
226
+ - enable, chaco (visualization)
227
+ - PySide6 (Qt bindings)
228
+ - scikit-image, pandas, matplotlib (analysis)
229
+
230
+ ---
231
+
232
+ ### Installing from Binary Wheels
233
+
234
+ Pre-built manylinux wheels are available for Linux:
235
+
236
+ ```bash
237
+ # Using pip
238
+ pip install openptv2
239
+
240
+ # Using uv
241
+ uv pip install openptv2
242
+ ```
243
+
244
+ The wheels are compatible with glibc 2.17+ (CentOS 7, Ubuntu 14.04, Debian 8, etc.)
245
+
246
+ ---
247
+
248
+ ### Building Binary Wheels from Source
249
+
250
+ See [BUILDING_BINARY_WHEELS.md](BUILDING_BINARY_WHEELS.md) for detailed instructions on building portable binary wheels using cibuildwheel.
251
+
252
+ ---
253
+
254
+ ### Troubleshooting Installation
255
+
256
+ #### Common Issues
257
+
258
+ **1. "CMake not found"**
259
+ ```bash
260
+ # Install CMake
261
+ # Linux: sudo apt-get install cmake
262
+ # macOS: brew install cmake
263
+ # Windows: Download from https://cmake.org/download/
264
+ ```
265
+
266
+ **2. "C compiler not found"**
267
+ ```bash
268
+ # Linux: sudo apt-get install build-essential
269
+ # macOS: xcode-select --install
270
+ # Windows: Install MSVC Build Tools
271
+ ```
272
+
273
+ **3. "Cython not found"**
274
+ ```bash
275
+ pip install cython>=3.0.0
276
+ ```
277
+
278
+ **4. "NumPy version mismatch"**
279
+ ```bash
280
+ pip install numpy>=2.0.0
281
+ ```
282
+
283
+ **5. "optv module not found" (after cloning)**
284
+ ```bash
285
+ # The optv package is built by CMake - you need to build the package
286
+ uv sync --extra dev
287
+ # or
288
+ pip install -e ".[dev]"
289
+ ```
290
+
291
+ ---
292
+
293
+ ## Usage
294
+
295
+ ### Basic Tracking
296
+
297
+ ```python
298
+ import openptv2
299
+ from openptv2 import Tracker, detect_targets
300
+
301
+ # Load images
302
+ from skimage import io
303
+ images = [io.imread(f"cam1_{i:04d}.tif") for i in range(100)]
304
+
305
+ # Detect particles
306
+ targets = [detect_targets(img) for img in images]
307
+
308
+ # Track particles
309
+ tracker = Tracker()
310
+ tracks = tracker.track([t.coordinates for t in targets])
311
+
312
+ print(f"Found {len(tracks)} tracks")
313
+ ```
314
+
315
+ ### Engine Selection
316
+
317
+ ```python
318
+ import openptv2
319
+
320
+ # Use default (fastest) engine
321
+ openptv2.set_engine("optv")
322
+
323
+ # Use Python engine for debugging
324
+ openptv2.set_engine("python")
325
+
326
+ # Per-call engine selection
327
+ from openptv2 import track_particles
328
+ result = track_particles(images, engine="python")
329
+ ```
330
+
331
+ ### GUI
332
+
333
+ ```bash
334
+ # Launch the GUI
335
+ openptv2-gui
336
+
337
+ # Or with specific engine
338
+ openptv2-gui --engine python
339
+ ```
340
+
341
+ ### Batch Processing
342
+
343
+ ```bash
344
+ # Serial batch
345
+ openptv2-batch parameters.yaml 1 100
346
+
347
+ # Parallel batch
348
+ python -m openptv2.gui.pyptv_batch_parallel parameters.yaml 1 100 4
349
+ ```
350
+
351
+ ---
352
+
353
+ ## Documentation
354
+
355
+ - [Installation Guide](docs/developer_guide/building.md)
356
+ - [Quick Start](docs/tutorials/)
357
+ - [API Reference](docs/sphinx/)
358
+ - [Algorithm Documentation](docs/algorithms/)
359
+ - [Developer Guide](docs/developer_guide/)
360
+
361
+ ---
362
+
363
+ ## Repository Structure
364
+
365
+ ```
366
+ openptv2/
367
+ ├── algorithms/ # Python/Numba fallback engine
368
+ │ ├── calibration.py
369
+ │ ├── correspondences.py
370
+ │ ├── image_processing.py
371
+ │ ├── orientation.py
372
+ │ ├── parameters.py
373
+ │ ├── segmentation.py
374
+ │ ├── track.py
375
+ │ └── ...
376
+ ├── bindings/ # Cython bindings source
377
+ │ ├── optv/ # Cython .pyx, .pxd files
378
+ │ ├── tests/ # Binding tests
379
+ │ └── pyproject.toml # scikit-build-core config
380
+ ├── gui/ # TraitsUI GUI application
381
+ │ ├── pyptv/ # Main GUI package
382
+ │ ├── plugins/ # GUI plugins
383
+ │ └── tests/ # GUI tests
384
+ ├── lib/ # C core library
385
+ │ ├── include/ # C headers
386
+ │ ├── src/ # C source files
387
+ │ ├── tests/ # C library tests
388
+ │ └── CMakeLists.txt
389
+ ├── openptv2/ # Main Python package
390
+ │ ├── __init__.py
391
+ │ ├── calibration.py
392
+ │ ├── correspondence.py
393
+ │ ├── engine.py # Engine selector
394
+ │ ├── tracker.py
395
+ │ └── ...
396
+ ├── tests/ # Integration tests
397
+ │ ├── engine_comparison/
398
+ │ ├── fixtures/
399
+ │ └── integration/
400
+ ├── docs/ # Documentation
401
+ │ ├── algorithms/
402
+ │ ├── developer_guide/
403
+ │ ├── sphinx/
404
+ │ └── tutorials/
405
+ ├── scripts/ # Build helpers
406
+ ├── CMakeLists.txt # Root CMake build config
407
+ ├── pyproject.toml # Python project config
408
+ └── README.md
409
+ ```
410
+
411
+ ---
412
+
413
+ ## Engine Comparison
414
+
415
+ | Feature | optv (C/Cython) | python (Numba) |
416
+ |---------|-----------------|----------------|
417
+ | Speed | Fastest | Fast (JIT compiled) |
418
+ | Debugging | Harder | Easy |
419
+ | Visualization | Limited | Full |
420
+ | Use case | Production | Development |
421
+
422
+ ---
423
+
424
+ ## Testing
425
+
426
+ ```bash
427
+ # All tests
428
+ pytest
429
+
430
+ # C library tests
431
+ cd lib && mkdir build && cd build && cmake .. && ctest
432
+
433
+ # Engine comparison
434
+ pytest tests/engine_comparison/ --validate-engine
435
+
436
+ # GUI tests (headless)
437
+ pytest gui/tests/ --headless
438
+
439
+ # Integration tests
440
+ pytest tests/integration/ -v
441
+ ```
442
+
443
+ ---
444
+
445
+ ## Migration from optv/pyptv
446
+
447
+ openptv2 maintains backward compatibility:
448
+
449
+ ```python
450
+ # Old optv code (still works after installation)
451
+ from optv.tracking_framebuf import Target
452
+ from optv.tracker import Tracker
453
+
454
+ # New openptv2 code
455
+ from openptv2 import Target, Tracker
456
+
457
+ # Both work identically
458
+ ```
459
+
460
+ ---
461
+
462
+ ## Contributing
463
+
464
+ 1. Fork the repository
465
+ 2. Create a feature branch
466
+ 3. Make your changes
467
+ 4. Run tests: `pytest`
468
+ 5. Submit a pull request
469
+
470
+ ### Development Workflow
471
+
472
+ ```bash
473
+ # Set up development environment
474
+ uv sync --extra dev
475
+
476
+ # Make changes to source code
477
+
478
+ # Run tests
479
+ pytest tests/ -v
480
+
481
+ # Build documentation (optional)
482
+ cd docs && make html
483
+ ```
484
+
485
+ ---
486
+
487
+ ## License
488
+
489
+ LGPL-3.0 or later. See [LICENSE](LICENSE) for details.
490
+
491
+ ---
492
+
493
+ ## Acknowledgments
494
+
495
+ openptv2 combines work from:
496
+ - [openptv](https://github.com/openptv/openptv) - C library and bindings
497
+ - [pyptv](https://github.com/alexlib/pyptv) - Python GUI
498
+ - [openptv-python](https://github.com/openptv/openptv-python) - Python/Numba engine
499
+
500
+ ---
501
+
502
+ ## Contact
503
+
504
+ - Mailing list: openptv@googlegroups.com
505
+ - GitHub: https://github.com/openptv/openptv2
506
+ - Issues: https://github.com/openptv/openptv2/issues
507
+
508
+ ---
509
+
510
+ ## Helper Scripts
511
+
512
+ The project includes scripts for building and testing:
513
+
514
+ | Script | Purpose |
515
+ |--------|---------|
516
+ | `scripts/build_wheel.sh` | Build binary wheel from source |
517
+ | `scripts/install_wheel.sh` | Install wheel in clean test environment |
518
+ | `scripts/run_tests.sh` | Run test suite in test environment |
519
+ | `scripts/Dockerfile.slim` | Slim Docker image for testing |
520
+
521
+ See [BUILDING_BINARY_WHEELS.md](BUILDING_BINARY_WHEELS.md) for detailed usage.