aprict 0.0.14__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 (157) hide show
  1. aprict-0.0.14/LICENSE.txt +14 -0
  2. aprict-0.0.14/LICENSE_GPLv3.txt +674 -0
  3. aprict-0.0.14/MANIFEST.in +2 -0
  4. aprict-0.0.14/PKG-INFO +323 -0
  5. aprict-0.0.14/README.md +285 -0
  6. aprict-0.0.14/pyproject.toml +74 -0
  7. aprict-0.0.14/setup.cfg +4 -0
  8. aprict-0.0.14/setup.py +67 -0
  9. aprict-0.0.14/src/aprict/__init__.py +47 -0
  10. aprict-0.0.14/src/aprict/cb/__init__.py +21 -0
  11. aprict-0.0.14/src/aprict/cb/_unused_old_fbp.py +113 -0
  12. aprict-0.0.14/src/aprict/cb/flatpanel.py +1169 -0
  13. aprict-0.0.14/src/aprict/cb/noop_filter.py +131 -0
  14. aprict-0.0.14/src/aprict/cb/ramp_filter.py +897 -0
  15. aprict-0.0.14/src/aprict/cb/ramp_filter_cpu.py +550 -0
  16. aprict-0.0.14/src/aprict/cuda/__init__.py +15 -0
  17. aprict-0.0.14/src/aprict/cuda/_generate_cusrc.py +152 -0
  18. aprict-0.0.14/src/aprict/cuda/dtype_cacher.py +79 -0
  19. aprict-0.0.14/src/aprict/cuda/header_injection.py +71 -0
  20. aprict-0.0.14/src/aprict/cuda/kern_structs.py +427 -0
  21. aprict-0.0.14/src/aprict/cuda/ptx_cacher.py +98 -0
  22. aprict-0.0.14/src/aprict/cuda/structs/FORBILD_volumes.py +610 -0
  23. aprict-0.0.14/src/aprict/cuda/structs/__init__.py +37 -0
  24. aprict-0.0.14/src/aprict/cuda/structs/base.py +291 -0
  25. aprict-0.0.14/src/aprict/cuda/structs/config_cb_backproject.py +76 -0
  26. aprict-0.0.14/src/aprict/cuda/structs/config_cb_project.py +42 -0
  27. aprict-0.0.14/src/aprict/cuda/structs/config_cb_project_FORBILD.py +43 -0
  28. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Box.cu +78 -0
  29. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_ClipAxisSpec.cu +63 -0
  30. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cone.cu +71 -0
  31. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cone_x.cu +51 -0
  32. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cone_y.cu +51 -0
  33. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cone_z.cu +230 -0
  34. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cylinder.cu +122 -0
  35. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cylinder_x.cu +42 -0
  36. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cylinder_y.cu +42 -0
  37. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Cylinder_z.cu +42 -0
  38. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Ellipsoid.cu +50 -0
  39. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Ellipsoid_free.cu +71 -0
  40. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl.cu +73 -0
  41. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl_x.cu +53 -0
  42. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl_y.cu +53 -0
  43. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl_z.cu +53 -0
  44. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Shape.cu +665 -0
  45. aprict-0.0.14/src/aprict/cuda/structs/cu/FORBILD_Sphere.cu +81 -0
  46. aprict-0.0.14/src/aprict/cuda/structs/cu/__init__.py +15 -0
  47. aprict-0.0.14/src/aprict/cuda/structs/geometry.py +189 -0
  48. aprict-0.0.14/src/aprict/cuda/structs/test_subdir/__init__.py +17 -0
  49. aprict-0.0.14/src/aprict/cuda/structs/test_subdir/test_config.py +36 -0
  50. aprict-0.0.14/src/aprict/data/.gitignore +4 -0
  51. aprict-0.0.14/src/aprict/data/FORBILD/abdomen/AbdomenPhantom.pha +168 -0
  52. aprict-0.0.14/src/aprict/data/FORBILD/abdomen/AbdomenPhantom_fixed.pha +175 -0
  53. aprict-0.0.14/src/aprict/data/FORBILD/abdomen/TableOfTissues +34 -0
  54. aprict-0.0.14/src/aprict/data/FORBILD/abdomen/Wirbel.pha +28 -0
  55. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/Ribs.pha +223 -0
  56. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/Shoulders.pha +28 -0
  57. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/TableOfTissues +34 -0
  58. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/Vertebra.pha +26 -0
  59. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/part_01_hip.pha +248 -0
  60. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/part_02_abdomen.pha +168 -0
  61. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/part_03_thorax.pha +53 -0
  62. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/part_04_head.pha +776 -0
  63. aprict-0.0.14/src/aprict/data/FORBILD/custom_composite/part_05_jaw.pha +507 -0
  64. aprict-0.0.14/src/aprict/data/FORBILD/custom_other/rock_canister_01.pha +101500 -0
  65. aprict-0.0.14/src/aprict/data/FORBILD/custom_other/rock_canister_01_cavities_1e5.pha +10000 -0
  66. aprict-0.0.14/src/aprict/data/FORBILD/custom_other/unit_Cyl_z.pha +1 -0
  67. aprict-0.0.14/src/aprict/data/FORBILD/head/HeadPhantom.pha +776 -0
  68. aprict-0.0.14/src/aprict/data/FORBILD/head/TableOfTissues +34 -0
  69. aprict-0.0.14/src/aprict/data/FORBILD/hip/HipPhantom.pha +248 -0
  70. aprict-0.0.14/src/aprict/data/FORBILD/jaw/JawPhantom.pha +502 -0
  71. aprict-0.0.14/src/aprict/data/FORBILD/lungs/LungPhantom3Generations.pha +590 -0
  72. aprict-0.0.14/src/aprict/data/FORBILD/thorax/Ribs.pha +223 -0
  73. aprict-0.0.14/src/aprict/data/FORBILD/thorax/Shoulders.pha +28 -0
  74. aprict-0.0.14/src/aprict/data/FORBILD/thorax/TableOfTissues +34 -0
  75. aprict-0.0.14/src/aprict/data/FORBILD/thorax/ThoraxPhantom.pha +53 -0
  76. aprict-0.0.14/src/aprict/data/FORBILD/thorax/Vertebra.pha +26 -0
  77. aprict-0.0.14/src/aprict/data/README.txt +5 -0
  78. aprict-0.0.14/src/aprict/data/cusrc/CB_backproject.cu +833 -0
  79. aprict-0.0.14/src/aprict/data/cusrc/CB_backproject_sharedmem.cu +383 -0
  80. aprict-0.0.14/src/aprict/data/cusrc/CB_project_sharedmem.cu +324 -0
  81. aprict-0.0.14/src/aprict/data/cusrc/CB_project_texture_chunked.cu +616 -0
  82. aprict-0.0.14/src/aprict/data/cusrc/FORBILD_volumes.h +2081 -0
  83. aprict-0.0.14/src/aprict/data/cusrc/base.h +227 -0
  84. aprict-0.0.14/src/aprict/data/cusrc/config_cb_backproject.h +22 -0
  85. aprict-0.0.14/src/aprict/data/cusrc/config_cb_project.h +7 -0
  86. aprict-0.0.14/src/aprict/data/cusrc/config_cb_project_FORBILD.h +7 -0
  87. aprict-0.0.14/src/aprict/data/cusrc/geometry.h +93 -0
  88. aprict-0.0.14/src/aprict/data/cusrc/get_bboxes_FORBILD.cu +21 -0
  89. aprict-0.0.14/src/aprict/data/cusrc/ramlak_convolve.cu +102 -0
  90. aprict-0.0.14/src/aprict/data/cusrc/sample_FORBILD_volumes.cu +123 -0
  91. aprict-0.0.14/src/aprict/data/cusrc/test_kernel.cu +59 -0
  92. aprict-0.0.14/src/aprict/data/cusrc/test_subdir/test_config.h +5 -0
  93. aprict-0.0.14/src/aprict/data/cusrc/texture_operations.cu +344 -0
  94. aprict-0.0.14/src/aprict/examples/composite_human_sirt.py +418 -0
  95. aprict-0.0.14/src/aprict/examples/fan_beam_sirt.py +263 -0
  96. aprict-0.0.14/src/aprict/examples/helical_sirt.py +268 -0
  97. aprict-0.0.14/src/aprict/examples/lungs_sirt.py +315 -0
  98. aprict-0.0.14/src/aprict/examples/trajtest_A_sirt.py +270 -0
  99. aprict-0.0.14/src/aprict/examples/triangle_exp_fb.py +468 -0
  100. aprict-0.0.14/src/aprict/gbc/__init__.py +19 -0
  101. aprict-0.0.14/src/aprict/gbc/filters.py +558 -0
  102. aprict-0.0.14/src/aprict/gbc/weightinteg.py +174 -0
  103. aprict-0.0.14/src/aprict/image_view.py +165 -0
  104. aprict-0.0.14/src/aprict/iterators/__init__.py +19 -0
  105. aprict-0.0.14/src/aprict/iterators/landweber_vram.py +265 -0
  106. aprict-0.0.14/src/aprict/iterators/sirt_vram.py +157 -0
  107. aprict-0.0.14/src/aprict/lib/__init__.py +27 -0
  108. aprict-0.0.14/src/aprict/lib/argparse_tools.py +221 -0
  109. aprict-0.0.14/src/aprict/lib/bboxes_FORBILD.py +97 -0
  110. aprict-0.0.14/src/aprict/lib/click_tools.py +214 -0
  111. aprict-0.0.14/src/aprict/lib/empty_context_manager.py +26 -0
  112. aprict-0.0.14/src/aprict/lib/gpu_tools.py +248 -0
  113. aprict-0.0.14/src/aprict/lib/import_tools.py +32 -0
  114. aprict-0.0.14/src/aprict/lib/lds.py +495 -0
  115. aprict-0.0.14/src/aprict/lib/ne_tools.py +234 -0
  116. aprict-0.0.14/src/aprict/lib/ng_tools.py +162 -0
  117. aprict-0.0.14/src/aprict/lib/np_tools.py +29 -0
  118. aprict-0.0.14/src/aprict/lib/process_pha_file.py +388 -0
  119. aprict-0.0.14/src/aprict/lib/sample_FORBILD.py +170 -0
  120. aprict-0.0.14/src/aprict/lib/texture_tools/__init__.py +19 -0
  121. aprict-0.0.14/src/aprict/lib/texture_tools/operations.py +500 -0
  122. aprict-0.0.14/src/aprict/lib/texture_tools/texture.py +331 -0
  123. aprict-0.0.14/src/aprict/liveplot.py +221 -0
  124. aprict-0.0.14/src/aprict/logtools/__init__.py +20 -0
  125. aprict-0.0.14/src/aprict/logtools/config.py +173 -0
  126. aprict-0.0.14/src/aprict/logtools/pbar.py +182 -0
  127. aprict-0.0.14/src/aprict/logtools/pbar_tqdm.py +100 -0
  128. aprict-0.0.14/src/aprict/logtools/rich_custombar.py +183 -0
  129. aprict-0.0.14/src/aprict/phantoms/FORBILD_phantoms.py +999 -0
  130. aprict-0.0.14/src/aprict/phantoms/__init__.py +24 -0
  131. aprict-0.0.14/src/aprict/ramp_kernels.py +98 -0
  132. aprict-0.0.14/src/aprict/scripts/cli.py +121 -0
  133. aprict-0.0.14/src/aprict/scripts/make_geometry_cone_cyl.py +305 -0
  134. aprict-0.0.14/src/aprict/scripts/make_geometry_fan_circ.py +270 -0
  135. aprict-0.0.14/src/aprict/scripts/neuroglance.py +77 -0
  136. aprict-0.0.14/src/aprict/scripts/project_cbfp.py +493 -0
  137. aprict-0.0.14/src/aprict/scripts/recon_cbfp_cyl_fbp.py +894 -0
  138. aprict-0.0.14/src/aprict/scripts/recon_cbfp_cyl_gbc.py +954 -0
  139. aprict-0.0.14/src/aprict/scripts/recon_cbfp_landweber.py +577 -0
  140. aprict-0.0.14/src/aprict/tests/__init__.py +16 -0
  141. aprict-0.0.14/src/aprict/tests/cuda_kernels/__init__.py +16 -0
  142. aprict-0.0.14/src/aprict/tests/cuda_kernels/test_backproject_cb.py +552 -0
  143. aprict-0.0.14/src/aprict/tests/cuda_kernels/test_cusrc/__init__.py +16 -0
  144. aprict-0.0.14/src/aprict/tests/cuda_kernels/test_kernel_structs.py +163 -0
  145. aprict-0.0.14/src/aprict/tests/cuda_kernels/test_project_cb.py +662 -0
  146. aprict-0.0.14/src/aprict/tests/cuda_kernels/test_project_cb_FORBILD_phantoms.py +205 -0
  147. aprict-0.0.14/src/aprict/tests/cuda_kernels/test_project_cb_FORBILD_shapes.py +877 -0
  148. aprict-0.0.14/src/aprict/tests/test_FORBILD_lungs_construction.py +64 -0
  149. aprict-0.0.14/src/aprict/tests/test_volume.py +70 -0
  150. aprict-0.0.14/src/aprict/version.py +19 -0
  151. aprict-0.0.14/src/aprict/volume.py +811 -0
  152. aprict-0.0.14/src/aprict.egg-info/PKG-INFO +323 -0
  153. aprict-0.0.14/src/aprict.egg-info/SOURCES.txt +155 -0
  154. aprict-0.0.14/src/aprict.egg-info/dependency_links.txt +1 -0
  155. aprict-0.0.14/src/aprict.egg-info/entry_points.txt +9 -0
  156. aprict-0.0.14/src/aprict.egg-info/requires.txt +22 -0
  157. aprict-0.0.14/src/aprict.egg-info/top_level.txt +1 -0
@@ -0,0 +1,14 @@
1
+ Copyright (C) 2026 Murdock Grewar
2
+
3
+ This program is free software: you can redistribute it and/or modify
4
+ it under the terms of the GNU General Public License as published by
5
+ the Free Software Foundation, either version 3 of the License, or
6
+ (at your option) any later version.
7
+
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License
14
+ along with this program. If not, see <https://www.gnu.org/licenses/>.