catsim-test 0.0.5__cp313-cp313-manylinux_2_31_x86_64.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.
- catsim_test-0.0.5.dist-info/METADATA +5 -0
- catsim_test-0.0.5.dist-info/RECORD +1235 -0
- catsim_test-0.0.5.dist-info/WHEEL +5 -0
- catsim_test-0.0.5.dist-info/licenses/LICENSE +29 -0
- catsim_test-0.0.5.dist-info/sboms/auditwheel.cdx.json +1 -0
- catsim_test-0.0.5.dist-info/top_level.txt +2 -0
- catsim_test.libs/libgomp-98b21ff3.so.1.0.0 +0 -0
- dummy.cpython-313-x86_64-linux-gnu.so +0 -0
- gecatsim/__init__.py +20 -0
- gecatsim/bowtie/large.txt +891 -0
- gecatsim/bowtie/medium.txt +891 -0
- gecatsim/bowtie/small.txt +891 -0
- gecatsim/cfg/Phantom_Default.cfg +7 -0
- gecatsim/cfg/Physics_Default.cfg +38 -0
- gecatsim/cfg/Protocol_Default.cfg +33 -0
- gecatsim/cfg/Recon_Default.cfg +22 -0
- gecatsim/cfg/Scanner_Default.cfg +31 -0
- gecatsim/clib_build/BuildLinux64 +6 -0
- gecatsim/clib_build/BuildWin64.bat +17 -0
- gecatsim/clib_build/MakeMacOS +48 -0
- gecatsim/clib_build/MakeVariables_1 +19 -0
- gecatsim/clib_build/MakeVariables_2 +5 -0
- gecatsim/clib_build/MakeVariables_3 +33 -0
- gecatsim/clib_build/MakeVariables_3.1 +32 -0
- gecatsim/clib_build/MakeWindows64 +45 -0
- gecatsim/clib_build/Makefile +41 -0
- gecatsim/clib_build/readme.md +13 -0
- gecatsim/clib_build/src/BaseObject.cpp +144 -0
- gecatsim/clib_build/src/BaseObject.h +74 -0
- gecatsim/clib_build/src/ClipPlane.cpp +83 -0
- gecatsim/clib_build/src/ClipPlane.h +28 -0
- gecatsim/clib_build/src/CrossSection.cpp +179 -0
- gecatsim/clib_build/src/CrossSection.hpp +27 -0
- gecatsim/clib_build/src/CrossSectionHandler.cpp +160 -0
- gecatsim/clib_build/src/CrossSectionHandler.hpp +72 -0
- gecatsim/clib_build/src/Cube.cpp +144 -0
- gecatsim/clib_build/src/Cube.h +26 -0
- gecatsim/clib_build/src/Cylinder.cpp +156 -0
- gecatsim/clib_build/src/Cylinder.h +25 -0
- gecatsim/clib_build/src/DD2Back.c +332 -0
- gecatsim/clib_build/src/DD2ParProj.c +377 -0
- gecatsim/clib_build/src/DD2Proj.c +333 -0
- gecatsim/clib_build/src/DD2WBack.c +350 -0
- gecatsim/clib_build/src/DD3.hpp +423 -0
- gecatsim/clib_build/src/DD3Proj.cpp +519 -0
- gecatsim/clib_build/src/DD3Proj_roi_notrans_mm.cpp +585 -0
- gecatsim/clib_build/src/DD3WBack.c +491 -0
- gecatsim/clib_build/src/DD3_roi_notrans_mm.hpp +272 -0
- gecatsim/clib_build/src/Detector.cpp +389 -0
- gecatsim/clib_build/src/Detector.hpp +134 -0
- gecatsim/clib_build/src/Interpolate.cpp +58 -0
- gecatsim/clib_build/src/Intersection.cpp +198 -0
- gecatsim/clib_build/src/Intersection.h +36 -0
- gecatsim/clib_build/src/MatVec.cpp +262 -0
- gecatsim/clib_build/src/MatVec.h +68 -0
- gecatsim/clib_build/src/Objects.cpp +23 -0
- gecatsim/clib_build/src/Objects.hpp +90 -0
- gecatsim/clib_build/src/Phantom.cpp +169 -0
- gecatsim/clib_build/src/Phantom.hpp +43 -0
- gecatsim/clib_build/src/Photon.cpp +168 -0
- gecatsim/clib_build/src/Photon.hpp +56 -0
- gecatsim/clib_build/src/RD3Back.cpp +357 -0
- gecatsim/clib_build/src/RD3Intersections.cpp +154 -0
- gecatsim/clib_build/src/RD3bench.cpp +505 -0
- gecatsim/clib_build/src/Sphere.cpp +43 -0
- gecatsim/clib_build/src/Sphere.h +25 -0
- gecatsim/clib_build/src/Transformation.cpp +104 -0
- gecatsim/clib_build/src/Transformation.h +37 -0
- gecatsim/clib_build/src/TreePhantom.cpp +138 -0
- gecatsim/clib_build/src/TreePhantom.h +27 -0
- gecatsim/clib_build/src/Volume.cpp +101 -0
- gecatsim/clib_build/src/Volume.hpp +28 -0
- gecatsim/clib_build/src/analytic_projector.c +2433 -0
- gecatsim/clib_build/src/analytic_projector.h +235 -0
- gecatsim/clib_build/src/compt.cpp +400 -0
- gecatsim/clib_build/src/compt2.cpp +558 -0
- gecatsim/clib_build/src/compt3.cpp +607 -0
- gecatsim/clib_build/src/ct_nurbs.h +214 -0
- gecatsim/clib_build/src/extractsino.c +42 -0
- gecatsim/clib_build/src/fm_gethostid.c +23 -0
- gecatsim/clib_build/src/fm_getrandpid.c +31 -0
- gecatsim/clib_build/src/gemsfilt.c +1084 -0
- gecatsim/clib_build/src/getMemorySize.cpp +105 -0
- gecatsim/clib_build/src/getMemorySize.h +5 -0
- gecatsim/clib_build/src/hull2.c +77 -0
- gecatsim/clib_build/src/intersections.c +131 -0
- gecatsim/clib_build/src/label.h +10 -0
- gecatsim/clib_build/src/main.cpp +609 -0
- gecatsim/clib_build/src/make_volume.c +573 -0
- gecatsim/clib_build/src/nCAT_main.c +6343 -0
- gecatsim/clib_build/src/negative_log.cpp +233 -0
- gecatsim/clib_build/src/negative_log.h +23 -0
- gecatsim/clib_build/src/pd2dbpcurved.c +98 -0
- gecatsim/clib_build/src/pd2dbpflat.c +101 -0
- gecatsim/clib_build/src/pd3dbpsemi.c +177 -0
- gecatsim/clib_build/src/phantom.l +72 -0
- gecatsim/clib_build/src/phantom.lex.c +1770 -0
- gecatsim/clib_build/src/phantom.tab.cpp +2126 -0
- gecatsim/clib_build/src/phantom.tab.hpp +126 -0
- gecatsim/clib_build/src/phantom.y +624 -0
- gecatsim/clib_build/src/rndpoi.c +793 -0
- gecatsim/clib_build/src/spline.c +81 -0
- gecatsim/clib_build/src/spline.h +6 -0
- gecatsim/clib_build/src/timer.c +64 -0
- gecatsim/clib_build/src/viewshift.c +25 -0
- gecatsim/clib_build/src/voxelized_projector.cpp +683 -0
- gecatsim/clib_build/src/xybowtie.c +76 -0
- gecatsim/dose/data/dosereconkernel_mthd4.mat +0 -0
- gecatsim/dose/data/scatter_E_loss_fraction.mat +0 -0
- gecatsim/dose/data/weighted_scatter_energy_by_spec.mat +0 -0
- gecatsim/dose/examples/dose_doserecon.cfg +16 -0
- gecatsim/dose/examples/dose_phantom.cfg +6 -0
- gecatsim/dose/examples/dose_physics.cfg +18 -0
- gecatsim/dose/examples/dose_protocol.cfg +15 -0
- gecatsim/dose/examples/dose_recon.cfg +9 -0
- gecatsim/dose/examples/dose_scanner.cfg +29 -0
- gecatsim/dose/examples/run.py +37 -0
- gecatsim/dose/lib/Dose_Recon_Library_Linux64.so +0 -0
- gecatsim/dose/lib/Dose_Recon_Library_Windows64.dll +0 -0
- gecatsim/dose/pyfiles/C_DD3Dose.py +84 -0
- gecatsim/dose/pyfiles/Combine_Spectrum_Bowtie_FlatFilter.py +15 -0
- gecatsim/dose/pyfiles/DoseConv.py +87 -0
- gecatsim/dose/pyfiles/GetMuByProcess.py +57 -0
- gecatsim/dose/pyfiles/__init__.py +0 -0
- gecatsim/dose/pyfiles/brconvol_matlab.py +67 -0
- gecatsim/dose/pyfiles/calcDetectorFlux.py +54 -0
- gecatsim/dose/pyfiles/catdoserecon.py +225 -0
- gecatsim/dose/pyfiles/doseconvol.py +52 -0
- gecatsim/dose/pyfiles/get_voxel_stopping_power.py +35 -0
- gecatsim/dose/pyfiles/img2vol.py +57 -0
- gecatsim/dose/pyfiles/xyfovimg.py +30 -0
- gecatsim/dose/readme.md +4 -0
- gecatsim/dose/src/DD3.hpp +371 -0
- gecatsim/dose/src/DD3Dose.cpp +787 -0
- gecatsim/dose/src/DD3Dose.hpp +22 -0
- gecatsim/dose/src/DD3Dose.i +23 -0
- gecatsim/dose/src/DD3Energy_clean.cpp +1464 -0
- gecatsim/dose/src/DD3Proj.cpp +504 -0
- gecatsim/dose/src/DD3Proj.hpp +20 -0
- gecatsim/dose/src/DD3Proj_mm.cpp +561 -0
- gecatsim/dose/src/DD3Proj_mm.hpp +21 -0
- gecatsim/dose/src/Win32_Build.bat +17 -0
- gecatsim/dose/src/Win64_Build.bat +20 -0
- gecatsim/examples/Catvoxel_Sample.py +53 -0
- gecatsim/examples/DD3Proj_mm_Sample.py +60 -0
- gecatsim/examples/GetMu_Sample.py +24 -0
- gecatsim/examples/Sim_Recon_Sample.py +45 -0
- gecatsim/examples/Sim_Recon_Sample_PCCT.py +69 -0
- gecatsim/examples/Sim_Sample.py +32 -0
- gecatsim/examples/Sim_Sample_Analyic.py +44 -0
- gecatsim/examples/Sim_Sample_Helical.py +32 -0
- gecatsim/examples/Sim_Sample_Hybrid.py +42 -0
- gecatsim/examples/Sim_Sample_PCCT.py +72 -0
- gecatsim/examples/Sim_Sample_Polygonal.py +47 -0
- gecatsim/examples/Sim_Sample_Scatter.py +38 -0
- gecatsim/examples/Sim_Sample_XCAT.py +50 -0
- gecatsim/examples/cfg/Phantom_Sample.cfg +6 -0
- gecatsim/examples/cfg/Phantom_Sample_Analytic.cfg +6 -0
- gecatsim/examples/cfg/Phantom_Sample_Hybrid.cfg +7 -0
- gecatsim/examples/cfg/Phantom_Sample_Polygonal.cfg +6 -0
- gecatsim/examples/cfg/Phantom_Sample_XCAT.cfg +6 -0
- gecatsim/examples/cfg/Physics_Sample.cfg +41 -0
- gecatsim/examples/cfg/Protocol_Sample_Helical.cfg +33 -0
- gecatsim/examples/cfg/Protocol_Sample_axial.cfg +33 -0
- gecatsim/examples/cfg/Recon_Sample_2d.cfg +6 -0
- gecatsim/examples/cfg/Recon_Sample_Helical.cfg +8 -0
- gecatsim/examples/cfg/Scanner_PCCT.cfg +30 -0
- gecatsim/examples/cfg/Scanner_Sample_generic.cfg +29 -0
- gecatsim/examples/vct_examples/Phantom_Sample_Analytic.cfg +6 -0
- gecatsim/examples/vct_examples/Physics_Sample.cfg +41 -0
- gecatsim/examples/vct_examples/Protocol_Sample_axial.cfg +33 -0
- gecatsim/examples/vct_examples/Recon_Sample_2d.cfg +6 -0
- gecatsim/examples/vct_examples/Scanner_Sample_generic.cfg +31 -0
- gecatsim/examples/vct_examples/read.md +1 -0
- gecatsim/focal_spot/readme.md +31 -0
- gecatsim/focal_spot/vct_large_fs.npz +0 -0
- gecatsim/focal_spot/vct_small_fs.npz +0 -0
- gecatsim/lib/libcatsim.so +0 -0
- gecatsim/lib/libcatsim64.dll +0 -0
- gecatsim/lib/libcatsim_macos.so +0 -0
- gecatsim/lib/pthreadGC2_x64.dll +0 -0
- gecatsim/lib/pthreads-2-9-1-release.zip +0 -0
- gecatsim/material/Ac +11 -0
- gecatsim/material/Ag +11 -0
- gecatsim/material/Al +11 -0
- gecatsim/material/Ar +11 -0
- gecatsim/material/As +11 -0
- gecatsim/material/At +11 -0
- gecatsim/material/Au +11 -0
- gecatsim/material/B +11 -0
- gecatsim/material/Ba +11 -0
- gecatsim/material/Be +11 -0
- gecatsim/material/Bi +11 -0
- gecatsim/material/Br +11 -0
- gecatsim/material/C +11 -0
- gecatsim/material/CIRS_adipose_adult2 +20 -0
- gecatsim/material/CIRS_adipose_adult3 +20 -0
- gecatsim/material/CIRS_bone_10yo +21 -0
- gecatsim/material/CIRS_bone_1yo +21 -0
- gecatsim/material/CIRS_bone_5yo +21 -0
- gecatsim/material/CIRS_bone_adult_and_15yo +21 -0
- gecatsim/material/CIRS_bone_newborn +21 -0
- gecatsim/material/CIRS_liver_adult +20 -0
- gecatsim/material/CIRS_lung_inhale +20 -0
- gecatsim/material/CIRS_plastic_water_LR +20 -0
- gecatsim/material/CIRS_spinal_cord +20 -0
- gecatsim/material/CZT +5 -0
- gecatsim/material/Ca +11 -0
- gecatsim/material/Cd +11 -0
- gecatsim/material/Ce +11 -0
- gecatsim/material/Cl +11 -0
- gecatsim/material/Co +11 -0
- gecatsim/material/Copyright.txt +7 -0
- gecatsim/material/Cr +11 -0
- gecatsim/material/Cs +11 -0
- gecatsim/material/CsI +16 -0
- gecatsim/material/Cu +11 -0
- gecatsim/material/Dy +11 -0
- gecatsim/material/Er +11 -0
- gecatsim/material/Eu +11 -0
- gecatsim/material/F +11 -0
- gecatsim/material/Fe +11 -0
- gecatsim/material/Fr +11 -0
- gecatsim/material/GOS +19 -0
- gecatsim/material/Ga +11 -0
- gecatsim/material/Gd +11 -0
- gecatsim/material/Ge +11 -0
- gecatsim/material/H +11 -0
- gecatsim/material/He +11 -0
- gecatsim/material/Hf +11 -0
- gecatsim/material/Hg +11 -0
- gecatsim/material/Ho +11 -0
- gecatsim/material/I +11 -0
- gecatsim/material/ICRU_adipose_adult2 +21 -0
- gecatsim/material/ICRU_blood_adult +24 -0
- gecatsim/material/ICRU_brain_adult +26 -0
- gecatsim/material/ICRU_breast_adult2 +22 -0
- gecatsim/material/ICRU_eye_lens_adult +22 -0
- gecatsim/material/ICRU_kidney_adult +24 -0
- gecatsim/material/ICRU_liver_adult +23 -0
- gecatsim/material/ICRU_lung_adult_healthy +23 -0
- gecatsim/material/ICRU_muscle_adult +23 -0
- gecatsim/material/ICRU_pancreas_adult +23 -0
- gecatsim/material/ICRU_skeleton_cortical_bone_adult +23 -0
- gecatsim/material/ICRU_skin_adult +23 -0
- gecatsim/material/ICRU_spleen_adult +23 -0
- gecatsim/material/ICRU_testis_adult +23 -0
- gecatsim/material/In +11 -0
- gecatsim/material/Ir +11 -0
- gecatsim/material/K +11 -0
- gecatsim/material/Kr +11 -0
- gecatsim/material/La +11 -0
- gecatsim/material/Li +11 -0
- gecatsim/material/Lu +11 -0
- gecatsim/material/Lumex +18 -0
- gecatsim/material/Mg +11 -0
- gecatsim/material/Mn +11 -0
- gecatsim/material/Mo +11 -0
- gecatsim/material/N +11 -0
- gecatsim/material/Na +11 -0
- gecatsim/material/NaCl +16 -0
- gecatsim/material/Nb +11 -0
- gecatsim/material/Nd +11 -0
- gecatsim/material/Ne +11 -0
- gecatsim/material/Ni +11 -0
- gecatsim/material/O +11 -0
- gecatsim/material/Os +11 -0
- gecatsim/material/P +11 -0
- gecatsim/material/PMMA +20 -0
- gecatsim/material/PVC_flexible +20 -0
- gecatsim/material/PVC_rigid +20 -0
- gecatsim/material/Pa +11 -0
- gecatsim/material/Pb +11 -0
- gecatsim/material/Pd +11 -0
- gecatsim/material/Pm +11 -0
- gecatsim/material/Po +11 -0
- gecatsim/material/Pr +11 -0
- gecatsim/material/Pt +11 -0
- gecatsim/material/Ra +11 -0
- gecatsim/material/Rb +11 -0
- gecatsim/material/Re +11 -0
- gecatsim/material/Rh +11 -0
- gecatsim/material/Rn +11 -0
- gecatsim/material/Ru +11 -0
- gecatsim/material/S +11 -0
- gecatsim/material/Sb +11 -0
- gecatsim/material/Sc +11 -0
- gecatsim/material/Se +11 -0
- gecatsim/material/Si +11 -0
- gecatsim/material/Sm +11 -0
- gecatsim/material/Sn +11 -0
- gecatsim/material/Sr +11 -0
- gecatsim/material/Ta +11 -0
- gecatsim/material/Tb +11 -0
- gecatsim/material/Tc +11 -0
- gecatsim/material/Te +11 -0
- gecatsim/material/Th +11 -0
- gecatsim/material/Ti +11 -0
- gecatsim/material/Tl +11 -0
- gecatsim/material/Tm +11 -0
- gecatsim/material/U +11 -0
- gecatsim/material/V +11 -0
- gecatsim/material/W +11 -0
- gecatsim/material/Xe +11 -0
- gecatsim/material/Y +11 -0
- gecatsim/material/Yb +11 -0
- gecatsim/material/Zn +11 -0
- gecatsim/material/Zr +11 -0
- gecatsim/material/air +24 -0
- gecatsim/material/bone +25 -0
- gecatsim/material/brass +18 -0
- gecatsim/material/diamond +13 -0
- gecatsim/material/edlp/comp/ce-cs-1.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-10.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-100.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-11.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-12.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-13.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-14.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-15.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-16.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-17.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-18.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-19.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-2.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-20.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-21.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-22.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-23.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-24.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-25.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-26.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-27.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-28.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-29.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-3.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-30.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-31.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-32.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-33.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-34.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-35.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-36.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-37.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-38.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-39.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-4.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-40.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-41.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-42.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-43.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-44.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-45.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-46.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-47.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-48.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-49.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-5.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-50.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-51.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-52.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-53.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-54.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-55.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-56.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-57.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-58.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-59.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-6.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-60.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-61.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-62.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-63.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-64.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-65.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-66.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-67.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-68.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-69.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-7.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-70.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-71.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-72.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-73.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-74.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-75.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-76.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-77.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-78.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-79.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-8.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-80.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-81.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-82.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-83.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-84.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-85.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-86.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-87.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-88.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-89.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-9.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-90.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-91.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-92.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-93.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-94.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-95.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-96.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-97.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-98.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-99.dat +124 -0
- gecatsim/material/edlp/comp/ce-cs-all.dat +0 -0
- gecatsim/material/edlp/comp/ce-sf-1.dat +107 -0
- gecatsim/material/edlp/comp/ce-sf-10.dat +179 -0
- gecatsim/material/edlp/comp/ce-sf-100.dat +150 -0
- gecatsim/material/edlp/comp/ce-sf-11.dat +187 -0
- gecatsim/material/edlp/comp/ce-sf-12.dat +180 -0
- gecatsim/material/edlp/comp/ce-sf-13.dat +166 -0
- gecatsim/material/edlp/comp/ce-sf-14.dat +170 -0
- gecatsim/material/edlp/comp/ce-sf-15.dat +166 -0
- gecatsim/material/edlp/comp/ce-sf-16.dat +165 -0
- gecatsim/material/edlp/comp/ce-sf-17.dat +169 -0
- gecatsim/material/edlp/comp/ce-sf-18.dat +161 -0
- gecatsim/material/edlp/comp/ce-sf-19.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-2.dat +144 -0
- gecatsim/material/edlp/comp/ce-sf-20.dat +168 -0
- gecatsim/material/edlp/comp/ce-sf-21.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-22.dat +163 -0
- gecatsim/material/edlp/comp/ce-sf-23.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-24.dat +169 -0
- gecatsim/material/edlp/comp/ce-sf-25.dat +164 -0
- gecatsim/material/edlp/comp/ce-sf-26.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-27.dat +165 -0
- gecatsim/material/edlp/comp/ce-sf-28.dat +173 -0
- gecatsim/material/edlp/comp/ce-sf-29.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-3.dat +149 -0
- gecatsim/material/edlp/comp/ce-sf-30.dat +168 -0
- gecatsim/material/edlp/comp/ce-sf-31.dat +166 -0
- gecatsim/material/edlp/comp/ce-sf-32.dat +168 -0
- gecatsim/material/edlp/comp/ce-sf-33.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-34.dat +169 -0
- gecatsim/material/edlp/comp/ce-sf-35.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-36.dat +158 -0
- gecatsim/material/edlp/comp/ce-sf-37.dat +160 -0
- gecatsim/material/edlp/comp/ce-sf-38.dat +161 -0
- gecatsim/material/edlp/comp/ce-sf-39.dat +161 -0
- gecatsim/material/edlp/comp/ce-sf-4.dat +151 -0
- gecatsim/material/edlp/comp/ce-sf-40.dat +170 -0
- gecatsim/material/edlp/comp/ce-sf-41.dat +172 -0
- gecatsim/material/edlp/comp/ce-sf-42.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-43.dat +164 -0
- gecatsim/material/edlp/comp/ce-sf-44.dat +160 -0
- gecatsim/material/edlp/comp/ce-sf-45.dat +160 -0
- gecatsim/material/edlp/comp/ce-sf-46.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-47.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-48.dat +164 -0
- gecatsim/material/edlp/comp/ce-sf-49.dat +165 -0
- gecatsim/material/edlp/comp/ce-sf-5.dat +148 -0
- gecatsim/material/edlp/comp/ce-sf-50.dat +158 -0
- gecatsim/material/edlp/comp/ce-sf-51.dat +156 -0
- gecatsim/material/edlp/comp/ce-sf-52.dat +158 -0
- gecatsim/material/edlp/comp/ce-sf-53.dat +163 -0
- gecatsim/material/edlp/comp/ce-sf-54.dat +163 -0
- gecatsim/material/edlp/comp/ce-sf-55.dat +158 -0
- gecatsim/material/edlp/comp/ce-sf-56.dat +161 -0
- gecatsim/material/edlp/comp/ce-sf-57.dat +168 -0
- gecatsim/material/edlp/comp/ce-sf-58.dat +167 -0
- gecatsim/material/edlp/comp/ce-sf-59.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-6.dat +155 -0
- gecatsim/material/edlp/comp/ce-sf-60.dat +157 -0
- gecatsim/material/edlp/comp/ce-sf-61.dat +169 -0
- gecatsim/material/edlp/comp/ce-sf-62.dat +169 -0
- gecatsim/material/edlp/comp/ce-sf-63.dat +160 -0
- gecatsim/material/edlp/comp/ce-sf-64.dat +166 -0
- gecatsim/material/edlp/comp/ce-sf-65.dat +163 -0
- gecatsim/material/edlp/comp/ce-sf-66.dat +158 -0
- gecatsim/material/edlp/comp/ce-sf-67.dat +168 -0
- gecatsim/material/edlp/comp/ce-sf-68.dat +159 -0
- gecatsim/material/edlp/comp/ce-sf-69.dat +164 -0
- gecatsim/material/edlp/comp/ce-sf-7.dat +174 -0
- gecatsim/material/edlp/comp/ce-sf-70.dat +169 -0
- gecatsim/material/edlp/comp/ce-sf-71.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-72.dat +163 -0
- gecatsim/material/edlp/comp/ce-sf-73.dat +165 -0
- gecatsim/material/edlp/comp/ce-sf-74.dat +164 -0
- gecatsim/material/edlp/comp/ce-sf-75.dat +161 -0
- gecatsim/material/edlp/comp/ce-sf-76.dat +155 -0
- gecatsim/material/edlp/comp/ce-sf-77.dat +152 -0
- gecatsim/material/edlp/comp/ce-sf-78.dat +150 -0
- gecatsim/material/edlp/comp/ce-sf-79.dat +148 -0
- gecatsim/material/edlp/comp/ce-sf-8.dat +176 -0
- gecatsim/material/edlp/comp/ce-sf-80.dat +153 -0
- gecatsim/material/edlp/comp/ce-sf-81.dat +158 -0
- gecatsim/material/edlp/comp/ce-sf-82.dat +154 -0
- gecatsim/material/edlp/comp/ce-sf-83.dat +159 -0
- gecatsim/material/edlp/comp/ce-sf-84.dat +156 -0
- gecatsim/material/edlp/comp/ce-sf-85.dat +162 -0
- gecatsim/material/edlp/comp/ce-sf-86.dat +154 -0
- gecatsim/material/edlp/comp/ce-sf-87.dat +154 -0
- gecatsim/material/edlp/comp/ce-sf-88.dat +153 -0
- gecatsim/material/edlp/comp/ce-sf-89.dat +151 -0
- gecatsim/material/edlp/comp/ce-sf-9.dat +184 -0
- gecatsim/material/edlp/comp/ce-sf-90.dat +153 -0
- gecatsim/material/edlp/comp/ce-sf-91.dat +151 -0
- gecatsim/material/edlp/comp/ce-sf-92.dat +157 -0
- gecatsim/material/edlp/comp/ce-sf-93.dat +152 -0
- gecatsim/material/edlp/comp/ce-sf-94.dat +154 -0
- gecatsim/material/edlp/comp/ce-sf-95.dat +151 -0
- gecatsim/material/edlp/comp/ce-sf-96.dat +151 -0
- gecatsim/material/edlp/comp/ce-sf-97.dat +150 -0
- gecatsim/material/edlp/comp/ce-sf-98.dat +152 -0
- gecatsim/material/edlp/comp/ce-sf-99.dat +152 -0
- gecatsim/material/edlp/comp/ce-sf-all.dat +0 -0
- gecatsim/material/edlp/pair/pp-cs-1.dat +96 -0
- gecatsim/material/edlp/pair/pp-cs-10.dat +110 -0
- gecatsim/material/edlp/pair/pp-cs-100.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-11.dat +112 -0
- gecatsim/material/edlp/pair/pp-cs-12.dat +111 -0
- gecatsim/material/edlp/pair/pp-cs-13.dat +112 -0
- gecatsim/material/edlp/pair/pp-cs-14.dat +113 -0
- gecatsim/material/edlp/pair/pp-cs-15.dat +113 -0
- gecatsim/material/edlp/pair/pp-cs-16.dat +114 -0
- gecatsim/material/edlp/pair/pp-cs-17.dat +112 -0
- gecatsim/material/edlp/pair/pp-cs-18.dat +113 -0
- gecatsim/material/edlp/pair/pp-cs-19.dat +113 -0
- gecatsim/material/edlp/pair/pp-cs-2.dat +100 -0
- gecatsim/material/edlp/pair/pp-cs-20.dat +114 -0
- gecatsim/material/edlp/pair/pp-cs-21.dat +115 -0
- gecatsim/material/edlp/pair/pp-cs-22.dat +115 -0
- gecatsim/material/edlp/pair/pp-cs-23.dat +116 -0
- gecatsim/material/edlp/pair/pp-cs-24.dat +115 -0
- gecatsim/material/edlp/pair/pp-cs-25.dat +115 -0
- gecatsim/material/edlp/pair/pp-cs-26.dat +116 -0
- gecatsim/material/edlp/pair/pp-cs-27.dat +117 -0
- gecatsim/material/edlp/pair/pp-cs-28.dat +117 -0
- gecatsim/material/edlp/pair/pp-cs-29.dat +117 -0
- gecatsim/material/edlp/pair/pp-cs-3.dat +104 -0
- gecatsim/material/edlp/pair/pp-cs-30.dat +117 -0
- gecatsim/material/edlp/pair/pp-cs-31.dat +118 -0
- gecatsim/material/edlp/pair/pp-cs-32.dat +118 -0
- gecatsim/material/edlp/pair/pp-cs-33.dat +118 -0
- gecatsim/material/edlp/pair/pp-cs-34.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-35.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-36.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-37.dat +118 -0
- gecatsim/material/edlp/pair/pp-cs-38.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-39.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-4.dat +105 -0
- gecatsim/material/edlp/pair/pp-cs-40.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-41.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-42.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-43.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-44.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-45.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-46.dat +119 -0
- gecatsim/material/edlp/pair/pp-cs-47.dat +120 -0
- gecatsim/material/edlp/pair/pp-cs-48.dat +120 -0
- gecatsim/material/edlp/pair/pp-cs-49.dat +120 -0
- gecatsim/material/edlp/pair/pp-cs-5.dat +106 -0
- gecatsim/material/edlp/pair/pp-cs-50.dat +120 -0
- gecatsim/material/edlp/pair/pp-cs-51.dat +120 -0
- gecatsim/material/edlp/pair/pp-cs-52.dat +120 -0
- gecatsim/material/edlp/pair/pp-cs-53.dat +121 -0
- gecatsim/material/edlp/pair/pp-cs-54.dat +121 -0
- gecatsim/material/edlp/pair/pp-cs-55.dat +121 -0
- gecatsim/material/edlp/pair/pp-cs-56.dat +121 -0
- gecatsim/material/edlp/pair/pp-cs-57.dat +122 -0
- gecatsim/material/edlp/pair/pp-cs-58.dat +122 -0
- gecatsim/material/edlp/pair/pp-cs-59.dat +122 -0
- gecatsim/material/edlp/pair/pp-cs-6.dat +107 -0
- gecatsim/material/edlp/pair/pp-cs-60.dat +122 -0
- gecatsim/material/edlp/pair/pp-cs-61.dat +122 -0
- gecatsim/material/edlp/pair/pp-cs-62.dat +123 -0
- gecatsim/material/edlp/pair/pp-cs-63.dat +123 -0
- gecatsim/material/edlp/pair/pp-cs-64.dat +123 -0
- gecatsim/material/edlp/pair/pp-cs-65.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-66.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-67.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-68.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-69.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-7.dat +108 -0
- gecatsim/material/edlp/pair/pp-cs-70.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-71.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-72.dat +124 -0
- gecatsim/material/edlp/pair/pp-cs-73.dat +125 -0
- gecatsim/material/edlp/pair/pp-cs-74.dat +125 -0
- gecatsim/material/edlp/pair/pp-cs-75.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-76.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-77.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-78.dat +125 -0
- gecatsim/material/edlp/pair/pp-cs-79.dat +125 -0
- gecatsim/material/edlp/pair/pp-cs-8.dat +109 -0
- gecatsim/material/edlp/pair/pp-cs-80.dat +125 -0
- gecatsim/material/edlp/pair/pp-cs-81.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-82.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-83.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-84.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-85.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-86.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-87.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-88.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-89.dat +127 -0
- gecatsim/material/edlp/pair/pp-cs-9.dat +109 -0
- gecatsim/material/edlp/pair/pp-cs-90.dat +127 -0
- gecatsim/material/edlp/pair/pp-cs-91.dat +127 -0
- gecatsim/material/edlp/pair/pp-cs-92.dat +127 -0
- gecatsim/material/edlp/pair/pp-cs-93.dat +127 -0
- gecatsim/material/edlp/pair/pp-cs-94.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-95.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-96.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-97.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-98.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-99.dat +126 -0
- gecatsim/material/edlp/pair/pp-cs-all.dat +0 -0
- gecatsim/material/edlp/phot/pe-cs-1.dat +87 -0
- gecatsim/material/edlp/phot/pe-cs-10.dat +388 -0
- gecatsim/material/edlp/phot/pe-cs-100.dat +1513 -0
- gecatsim/material/edlp/phot/pe-cs-11.dat +603 -0
- gecatsim/material/edlp/phot/pe-cs-12.dat +535 -0
- gecatsim/material/edlp/phot/pe-cs-13.dat +819 -0
- gecatsim/material/edlp/phot/pe-cs-14.dat +759 -0
- gecatsim/material/edlp/phot/pe-cs-15.dat +663 -0
- gecatsim/material/edlp/phot/pe-cs-16.dat +659 -0
- gecatsim/material/edlp/phot/pe-cs-17.dat +701 -0
- gecatsim/material/edlp/phot/pe-cs-18.dat +651 -0
- gecatsim/material/edlp/phot/pe-cs-19.dat +795 -0
- gecatsim/material/edlp/phot/pe-cs-2.dat +97 -0
- gecatsim/material/edlp/phot/pe-cs-20.dat +765 -0
- gecatsim/material/edlp/phot/pe-cs-21.dat +912 -0
- gecatsim/material/edlp/phot/pe-cs-22.dat +948 -0
- gecatsim/material/edlp/phot/pe-cs-23.dat +944 -0
- gecatsim/material/edlp/phot/pe-cs-24.dat +904 -0
- gecatsim/material/edlp/phot/pe-cs-25.dat +905 -0
- gecatsim/material/edlp/phot/pe-cs-26.dat +923 -0
- gecatsim/material/edlp/phot/pe-cs-27.dat +863 -0
- gecatsim/material/edlp/phot/pe-cs-28.dat +931 -0
- gecatsim/material/edlp/phot/pe-cs-29.dat +883 -0
- gecatsim/material/edlp/phot/pe-cs-3.dat +193 -0
- gecatsim/material/edlp/phot/pe-cs-30.dat +883 -0
- gecatsim/material/edlp/phot/pe-cs-31.dat +1018 -0
- gecatsim/material/edlp/phot/pe-cs-32.dat +1039 -0
- gecatsim/material/edlp/phot/pe-cs-33.dat +980 -0
- gecatsim/material/edlp/phot/pe-cs-34.dat +973 -0
- gecatsim/material/edlp/phot/pe-cs-35.dat +996 -0
- gecatsim/material/edlp/phot/pe-cs-36.dat +981 -0
- gecatsim/material/edlp/phot/pe-cs-37.dat +1047 -0
- gecatsim/material/edlp/phot/pe-cs-38.dat +975 -0
- gecatsim/material/edlp/phot/pe-cs-39.dat +1181 -0
- gecatsim/material/edlp/phot/pe-cs-4.dat +188 -0
- gecatsim/material/edlp/phot/pe-cs-40.dat +1169 -0
- gecatsim/material/edlp/phot/pe-cs-41.dat +1202 -0
- gecatsim/material/edlp/phot/pe-cs-42.dat +1181 -0
- gecatsim/material/edlp/phot/pe-cs-43.dat +1192 -0
- gecatsim/material/edlp/phot/pe-cs-44.dat +1217 -0
- gecatsim/material/edlp/phot/pe-cs-45.dat +1218 -0
- gecatsim/material/edlp/phot/pe-cs-46.dat +1070 -0
- gecatsim/material/edlp/phot/pe-cs-47.dat +1209 -0
- gecatsim/material/edlp/phot/pe-cs-48.dat +1202 -0
- gecatsim/material/edlp/phot/pe-cs-49.dat +1334 -0
- gecatsim/material/edlp/phot/pe-cs-5.dat +365 -0
- gecatsim/material/edlp/phot/pe-cs-50.dat +1234 -0
- gecatsim/material/edlp/phot/pe-cs-51.dat +1262 -0
- gecatsim/material/edlp/phot/pe-cs-52.dat +1166 -0
- gecatsim/material/edlp/phot/pe-cs-53.dat +1224 -0
- gecatsim/material/edlp/phot/pe-cs-54.dat +1139 -0
- gecatsim/material/edlp/phot/pe-cs-55.dat +1117 -0
- gecatsim/material/edlp/phot/pe-cs-56.dat +1068 -0
- gecatsim/material/edlp/phot/pe-cs-57.dat +1213 -0
- gecatsim/material/edlp/phot/pe-cs-58.dat +1230 -0
- gecatsim/material/edlp/phot/pe-cs-59.dat +1173 -0
- gecatsim/material/edlp/phot/pe-cs-6.dat +369 -0
- gecatsim/material/edlp/phot/pe-cs-60.dat +1237 -0
- gecatsim/material/edlp/phot/pe-cs-61.dat +1196 -0
- gecatsim/material/edlp/phot/pe-cs-62.dat +1210 -0
- gecatsim/material/edlp/phot/pe-cs-63.dat +1167 -0
- gecatsim/material/edlp/phot/pe-cs-64.dat +1309 -0
- gecatsim/material/edlp/phot/pe-cs-65.dat +1140 -0
- gecatsim/material/edlp/phot/pe-cs-66.dat +1172 -0
- gecatsim/material/edlp/phot/pe-cs-67.dat +1175 -0
- gecatsim/material/edlp/phot/pe-cs-68.dat +1168 -0
- gecatsim/material/edlp/phot/pe-cs-69.dat +1222 -0
- gecatsim/material/edlp/phot/pe-cs-7.dat +367 -0
- gecatsim/material/edlp/phot/pe-cs-70.dat +1217 -0
- gecatsim/material/edlp/phot/pe-cs-71.dat +1341 -0
- gecatsim/material/edlp/phot/pe-cs-72.dat +1317 -0
- gecatsim/material/edlp/phot/pe-cs-73.dat +1270 -0
- gecatsim/material/edlp/phot/pe-cs-74.dat +1295 -0
- gecatsim/material/edlp/phot/pe-cs-75.dat +1257 -0
- gecatsim/material/edlp/phot/pe-cs-76.dat +1295 -0
- gecatsim/material/edlp/phot/pe-cs-77.dat +1196 -0
- gecatsim/material/edlp/phot/pe-cs-78.dat +1198 -0
- gecatsim/material/edlp/phot/pe-cs-79.dat +1276 -0
- gecatsim/material/edlp/phot/pe-cs-8.dat +396 -0
- gecatsim/material/edlp/phot/pe-cs-80.dat +1205 -0
- gecatsim/material/edlp/phot/pe-cs-81.dat +1380 -0
- gecatsim/material/edlp/phot/pe-cs-82.dat +1355 -0
- gecatsim/material/edlp/phot/pe-cs-83.dat +1386 -0
- gecatsim/material/edlp/phot/pe-cs-84.dat +1366 -0
- gecatsim/material/edlp/phot/pe-cs-85.dat +1379 -0
- gecatsim/material/edlp/phot/pe-cs-86.dat +1342 -0
- gecatsim/material/edlp/phot/pe-cs-87.dat +1390 -0
- gecatsim/material/edlp/phot/pe-cs-88.dat +1248 -0
- gecatsim/material/edlp/phot/pe-cs-89.dat +1288 -0
- gecatsim/material/edlp/phot/pe-cs-9.dat +384 -0
- gecatsim/material/edlp/phot/pe-cs-90.dat +1400 -0
- gecatsim/material/edlp/phot/pe-cs-91.dat +1517 -0
- gecatsim/material/edlp/phot/pe-cs-92.dat +1571 -0
- gecatsim/material/edlp/phot/pe-cs-93.dat +1602 -0
- gecatsim/material/edlp/phot/pe-cs-94.dat +1432 -0
- gecatsim/material/edlp/phot/pe-cs-95.dat +1456 -0
- gecatsim/material/edlp/phot/pe-cs-96.dat +1494 -0
- gecatsim/material/edlp/phot/pe-cs-97.dat +1522 -0
- gecatsim/material/edlp/phot/pe-cs-98.dat +1498 -0
- gecatsim/material/edlp/phot/pe-cs-99.dat +1573 -0
- gecatsim/material/edlp/phot/pe-cs-all.dat +0 -0
- gecatsim/material/edlp/phot/pe-ss-cs-1.dat +88 -0
- gecatsim/material/edlp/phot/pe-ss-cs-10.dat +474 -0
- gecatsim/material/edlp/phot/pe-ss-cs-100.dat +2821 -0
- gecatsim/material/edlp/phot/pe-ss-cs-11.dat +717 -0
- gecatsim/material/edlp/phot/pe-ss-cs-12.dat +693 -0
- gecatsim/material/edlp/phot/pe-ss-cs-13.dat +978 -0
- gecatsim/material/edlp/phot/pe-ss-cs-14.dat +941 -0
- gecatsim/material/edlp/phot/pe-ss-cs-15.dat +884 -0
- gecatsim/material/edlp/phot/pe-ss-cs-16.dat +861 -0
- gecatsim/material/edlp/phot/pe-ss-cs-17.dat +870 -0
- gecatsim/material/edlp/phot/pe-ss-cs-18.dat +853 -0
- gecatsim/material/edlp/phot/pe-ss-cs-19.dat +993 -0
- gecatsim/material/edlp/phot/pe-ss-cs-2.dat +98 -0
- gecatsim/material/edlp/phot/pe-ss-cs-20.dat +959 -0
- gecatsim/material/edlp/phot/pe-ss-cs-21.dat +1233 -0
- gecatsim/material/edlp/phot/pe-ss-cs-22.dat +1227 -0
- gecatsim/material/edlp/phot/pe-ss-cs-23.dat +1225 -0
- gecatsim/material/edlp/phot/pe-ss-cs-24.dat +1250 -0
- gecatsim/material/edlp/phot/pe-ss-cs-25.dat +1209 -0
- gecatsim/material/edlp/phot/pe-ss-cs-26.dat +1209 -0
- gecatsim/material/edlp/phot/pe-ss-cs-27.dat +1200 -0
- gecatsim/material/edlp/phot/pe-ss-cs-28.dat +1198 -0
- gecatsim/material/edlp/phot/pe-ss-cs-29.dat +1204 -0
- gecatsim/material/edlp/phot/pe-ss-cs-3.dat +207 -0
- gecatsim/material/edlp/phot/pe-ss-cs-30.dat +1199 -0
- gecatsim/material/edlp/phot/pe-ss-cs-31.dat +1471 -0
- gecatsim/material/edlp/phot/pe-ss-cs-32.dat +1456 -0
- gecatsim/material/edlp/phot/pe-ss-cs-33.dat +1419 -0
- gecatsim/material/edlp/phot/pe-ss-cs-34.dat +1425 -0
- gecatsim/material/edlp/phot/pe-ss-cs-35.dat +1392 -0
- gecatsim/material/edlp/phot/pe-ss-cs-36.dat +1395 -0
- gecatsim/material/edlp/phot/pe-ss-cs-37.dat +1460 -0
- gecatsim/material/edlp/phot/pe-ss-cs-38.dat +1407 -0
- gecatsim/material/edlp/phot/pe-ss-cs-39.dat +1819 -0
- gecatsim/material/edlp/phot/pe-ss-cs-4.dat +211 -0
- gecatsim/material/edlp/phot/pe-ss-cs-40.dat +1807 -0
- gecatsim/material/edlp/phot/pe-ss-cs-41.dat +1811 -0
- gecatsim/material/edlp/phot/pe-ss-cs-42.dat +1818 -0
- gecatsim/material/edlp/phot/pe-ss-cs-43.dat +1792 -0
- gecatsim/material/edlp/phot/pe-ss-cs-44.dat +1781 -0
- gecatsim/material/edlp/phot/pe-ss-cs-45.dat +1788 -0
- gecatsim/material/edlp/phot/pe-ss-cs-46.dat +1611 -0
- gecatsim/material/edlp/phot/pe-ss-cs-47.dat +1771 -0
- gecatsim/material/edlp/phot/pe-ss-cs-48.dat +1782 -0
- gecatsim/material/edlp/phot/pe-ss-cs-49.dat +2033 -0
- gecatsim/material/edlp/phot/pe-ss-cs-5.dat +431 -0
- gecatsim/material/edlp/phot/pe-ss-cs-50.dat +1943 -0
- gecatsim/material/edlp/phot/pe-ss-cs-51.dat +1918 -0
- gecatsim/material/edlp/phot/pe-ss-cs-52.dat +1879 -0
- gecatsim/material/edlp/phot/pe-ss-cs-53.dat +1861 -0
- gecatsim/material/edlp/phot/pe-ss-cs-54.dat +1782 -0
- gecatsim/material/edlp/phot/pe-ss-cs-55.dat +1855 -0
- gecatsim/material/edlp/phot/pe-ss-cs-56.dat +1813 -0
- gecatsim/material/edlp/phot/pe-ss-cs-57.dat +2144 -0
- gecatsim/material/edlp/phot/pe-ss-cs-58.dat +2090 -0
- gecatsim/material/edlp/phot/pe-ss-cs-59.dat +2071 -0
- gecatsim/material/edlp/phot/pe-ss-cs-6.dat +436 -0
- gecatsim/material/edlp/phot/pe-ss-cs-60.dat +2066 -0
- gecatsim/material/edlp/phot/pe-ss-cs-61.dat +2064 -0
- gecatsim/material/edlp/phot/pe-ss-cs-62.dat +2063 -0
- gecatsim/material/edlp/phot/pe-ss-cs-63.dat +2043 -0
- gecatsim/material/edlp/phot/pe-ss-cs-64.dat +2405 -0
- gecatsim/material/edlp/phot/pe-ss-cs-65.dat +2035 -0
- gecatsim/material/edlp/phot/pe-ss-cs-66.dat +2023 -0
- gecatsim/material/edlp/phot/pe-ss-cs-67.dat +2026 -0
- gecatsim/material/edlp/phot/pe-ss-cs-68.dat +2029 -0
- gecatsim/material/edlp/phot/pe-ss-cs-69.dat +2018 -0
- gecatsim/material/edlp/phot/pe-ss-cs-7.dat +440 -0
- gecatsim/material/edlp/phot/pe-ss-cs-70.dat +2048 -0
- gecatsim/material/edlp/phot/pe-ss-cs-71.dat +2348 -0
- gecatsim/material/edlp/phot/pe-ss-cs-72.dat +2333 -0
- gecatsim/material/edlp/phot/pe-ss-cs-73.dat +2320 -0
- gecatsim/material/edlp/phot/pe-ss-cs-74.dat +2313 -0
- gecatsim/material/edlp/phot/pe-ss-cs-75.dat +2290 -0
- gecatsim/material/edlp/phot/pe-ss-cs-76.dat +2280 -0
- gecatsim/material/edlp/phot/pe-ss-cs-77.dat +2145 -0
- gecatsim/material/edlp/phot/pe-ss-cs-78.dat +2268 -0
- gecatsim/material/edlp/phot/pe-ss-cs-79.dat +2262 -0
- gecatsim/material/edlp/phot/pe-ss-cs-8.dat +445 -0
- gecatsim/material/edlp/phot/pe-ss-cs-80.dat +2271 -0
- gecatsim/material/edlp/phot/pe-ss-cs-81.dat +2497 -0
- gecatsim/material/edlp/phot/pe-ss-cs-82.dat +2494 -0
- gecatsim/material/edlp/phot/pe-ss-cs-83.dat +2467 -0
- gecatsim/material/edlp/phot/pe-ss-cs-84.dat +2453 -0
- gecatsim/material/edlp/phot/pe-ss-cs-85.dat +2423 -0
- gecatsim/material/edlp/phot/pe-ss-cs-86.dat +2379 -0
- gecatsim/material/edlp/phot/pe-ss-cs-87.dat +2451 -0
- gecatsim/material/edlp/phot/pe-ss-cs-88.dat +2367 -0
- gecatsim/material/edlp/phot/pe-ss-cs-89.dat +2696 -0
- gecatsim/material/edlp/phot/pe-ss-cs-9.dat +457 -0
- gecatsim/material/edlp/phot/pe-ss-cs-90.dat +2694 -0
- gecatsim/material/edlp/phot/pe-ss-cs-91.dat +3131 -0
- gecatsim/material/edlp/phot/pe-ss-cs-92.dat +3130 -0
- gecatsim/material/edlp/phot/pe-ss-cs-93.dat +3142 -0
- gecatsim/material/edlp/phot/pe-ss-cs-94.dat +2794 -0
- gecatsim/material/edlp/phot/pe-ss-cs-95.dat +2810 -0
- gecatsim/material/edlp/phot/pe-ss-cs-96.dat +3103 -0
- gecatsim/material/edlp/phot/pe-ss-cs-97.dat +3126 -0
- gecatsim/material/edlp/phot/pe-ss-cs-98.dat +2835 -0
- gecatsim/material/edlp/phot/pe-ss-cs-99.dat +2851 -0
- gecatsim/material/edlp/rayl/re-cs-1.dat +375 -0
- gecatsim/material/edlp/rayl/re-cs-10.dat +453 -0
- gecatsim/material/edlp/rayl/re-cs-100.dat +1555 -0
- gecatsim/material/edlp/rayl/re-cs-11.dat +607 -0
- gecatsim/material/edlp/rayl/re-cs-12.dat +561 -0
- gecatsim/material/edlp/rayl/re-cs-13.dat +903 -0
- gecatsim/material/edlp/rayl/re-cs-14.dat +830 -0
- gecatsim/material/edlp/rayl/re-cs-15.dat +745 -0
- gecatsim/material/edlp/rayl/re-cs-16.dat +698 -0
- gecatsim/material/edlp/rayl/re-cs-17.dat +666 -0
- gecatsim/material/edlp/rayl/re-cs-18.dat +597 -0
- gecatsim/material/edlp/rayl/re-cs-19.dat +760 -0
- gecatsim/material/edlp/rayl/re-cs-2.dat +343 -0
- gecatsim/material/edlp/rayl/re-cs-20.dat +796 -0
- gecatsim/material/edlp/rayl/re-cs-21.dat +869 -0
- gecatsim/material/edlp/rayl/re-cs-22.dat +869 -0
- gecatsim/material/edlp/rayl/re-cs-23.dat +839 -0
- gecatsim/material/edlp/rayl/re-cs-24.dat +826 -0
- gecatsim/material/edlp/rayl/re-cs-25.dat +914 -0
- gecatsim/material/edlp/rayl/re-cs-26.dat +913 -0
- gecatsim/material/edlp/rayl/re-cs-27.dat +901 -0
- gecatsim/material/edlp/rayl/re-cs-28.dat +888 -0
- gecatsim/material/edlp/rayl/re-cs-29.dat +844 -0
- gecatsim/material/edlp/rayl/re-cs-3.dat +517 -0
- gecatsim/material/edlp/rayl/re-cs-30.dat +801 -0
- gecatsim/material/edlp/rayl/re-cs-31.dat +1202 -0
- gecatsim/material/edlp/rayl/re-cs-32.dat +1113 -0
- gecatsim/material/edlp/rayl/re-cs-33.dat +1010 -0
- gecatsim/material/edlp/rayl/re-cs-34.dat +928 -0
- gecatsim/material/edlp/rayl/re-cs-35.dat +894 -0
- gecatsim/material/edlp/rayl/re-cs-36.dat +719 -0
- gecatsim/material/edlp/rayl/re-cs-37.dat +892 -0
- gecatsim/material/edlp/rayl/re-cs-38.dat +891 -0
- gecatsim/material/edlp/rayl/re-cs-39.dat +906 -0
- gecatsim/material/edlp/rayl/re-cs-4.dat +493 -0
- gecatsim/material/edlp/rayl/re-cs-40.dat +930 -0
- gecatsim/material/edlp/rayl/re-cs-41.dat +918 -0
- gecatsim/material/edlp/rayl/re-cs-42.dat +1068 -0
- gecatsim/material/edlp/rayl/re-cs-43.dat +1085 -0
- gecatsim/material/edlp/rayl/re-cs-44.dat +1085 -0
- gecatsim/material/edlp/rayl/re-cs-45.dat +1124 -0
- gecatsim/material/edlp/rayl/re-cs-46.dat +853 -0
- gecatsim/material/edlp/rayl/re-cs-47.dat +1087 -0
- gecatsim/material/edlp/rayl/re-cs-48.dat +1001 -0
- gecatsim/material/edlp/rayl/re-cs-49.dat +1508 -0
- gecatsim/material/edlp/rayl/re-cs-5.dat +619 -0
- gecatsim/material/edlp/rayl/re-cs-50.dat +1370 -0
- gecatsim/material/edlp/rayl/re-cs-51.dat +1234 -0
- gecatsim/material/edlp/rayl/re-cs-52.dat +1138 -0
- gecatsim/material/edlp/rayl/re-cs-53.dat +1062 -0
- gecatsim/material/edlp/rayl/re-cs-54.dat +925 -0
- gecatsim/material/edlp/rayl/re-cs-55.dat +1130 -0
- gecatsim/material/edlp/rayl/re-cs-56.dat +1176 -0
- gecatsim/material/edlp/rayl/re-cs-57.dat +1172 -0
- gecatsim/material/edlp/rayl/re-cs-58.dat +1243 -0
- gecatsim/material/edlp/rayl/re-cs-59.dat +1232 -0
- gecatsim/material/edlp/rayl/re-cs-6.dat +647 -0
- gecatsim/material/edlp/rayl/re-cs-60.dat +1195 -0
- gecatsim/material/edlp/rayl/re-cs-61.dat +1229 -0
- gecatsim/material/edlp/rayl/re-cs-62.dat +1297 -0
- gecatsim/material/edlp/rayl/re-cs-63.dat +1324 -0
- gecatsim/material/edlp/rayl/re-cs-64.dat +1384 -0
- gecatsim/material/edlp/rayl/re-cs-65.dat +1356 -0
- gecatsim/material/edlp/rayl/re-cs-66.dat +1401 -0
- gecatsim/material/edlp/rayl/re-cs-67.dat +1374 -0
- gecatsim/material/edlp/rayl/re-cs-68.dat +1264 -0
- gecatsim/material/edlp/rayl/re-cs-69.dat +1327 -0
- gecatsim/material/edlp/rayl/re-cs-7.dat +669 -0
- gecatsim/material/edlp/rayl/re-cs-70.dat +1243 -0
- gecatsim/material/edlp/rayl/re-cs-71.dat +1384 -0
- gecatsim/material/edlp/rayl/re-cs-72.dat +1338 -0
- gecatsim/material/edlp/rayl/re-cs-73.dat +1181 -0
- gecatsim/material/edlp/rayl/re-cs-74.dat +1009 -0
- gecatsim/material/edlp/rayl/re-cs-75.dat +1138 -0
- gecatsim/material/edlp/rayl/re-cs-76.dat +1106 -0
- gecatsim/material/edlp/rayl/re-cs-77.dat +1040 -0
- gecatsim/material/edlp/rayl/re-cs-78.dat +1176 -0
- gecatsim/material/edlp/rayl/re-cs-79.dat +1123 -0
- gecatsim/material/edlp/rayl/re-cs-8.dat +662 -0
- gecatsim/material/edlp/rayl/re-cs-80.dat +1126 -0
- gecatsim/material/edlp/rayl/re-cs-81.dat +1668 -0
- gecatsim/material/edlp/rayl/re-cs-82.dat +1641 -0
- gecatsim/material/edlp/rayl/re-cs-83.dat +1448 -0
- gecatsim/material/edlp/rayl/re-cs-84.dat +1338 -0
- gecatsim/material/edlp/rayl/re-cs-85.dat +1236 -0
- gecatsim/material/edlp/rayl/re-cs-86.dat +1099 -0
- gecatsim/material/edlp/rayl/re-cs-87.dat +1368 -0
- gecatsim/material/edlp/rayl/re-cs-88.dat +1448 -0
- gecatsim/material/edlp/rayl/re-cs-89.dat +1592 -0
- gecatsim/material/edlp/rayl/re-cs-9.dat +584 -0
- gecatsim/material/edlp/rayl/re-cs-90.dat +1504 -0
- gecatsim/material/edlp/rayl/re-cs-91.dat +1547 -0
- gecatsim/material/edlp/rayl/re-cs-92.dat +1633 -0
- gecatsim/material/edlp/rayl/re-cs-93.dat +1625 -0
- gecatsim/material/edlp/rayl/re-cs-94.dat +1427 -0
- gecatsim/material/edlp/rayl/re-cs-95.dat +1465 -0
- gecatsim/material/edlp/rayl/re-cs-96.dat +1794 -0
- gecatsim/material/edlp/rayl/re-cs-97.dat +1638 -0
- gecatsim/material/edlp/rayl/re-cs-98.dat +1554 -0
- gecatsim/material/edlp/rayl/re-cs-99.dat +1528 -0
- gecatsim/material/edlp/rayl/re-cs-all.dat +0 -0
- gecatsim/material/edlp/rayl/re-ff-1.dat +103 -0
- gecatsim/material/edlp/rayl/re-ff-10.dat +175 -0
- gecatsim/material/edlp/rayl/re-ff-100.dat +146 -0
- gecatsim/material/edlp/rayl/re-ff-11.dat +183 -0
- gecatsim/material/edlp/rayl/re-ff-12.dat +176 -0
- gecatsim/material/edlp/rayl/re-ff-13.dat +162 -0
- gecatsim/material/edlp/rayl/re-ff-14.dat +166 -0
- gecatsim/material/edlp/rayl/re-ff-15.dat +162 -0
- gecatsim/material/edlp/rayl/re-ff-16.dat +161 -0
- gecatsim/material/edlp/rayl/re-ff-17.dat +165 -0
- gecatsim/material/edlp/rayl/re-ff-18.dat +157 -0
- gecatsim/material/edlp/rayl/re-ff-19.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-2.dat +140 -0
- gecatsim/material/edlp/rayl/re-ff-20.dat +164 -0
- gecatsim/material/edlp/rayl/re-ff-21.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-22.dat +159 -0
- gecatsim/material/edlp/rayl/re-ff-23.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-24.dat +165 -0
- gecatsim/material/edlp/rayl/re-ff-25.dat +160 -0
- gecatsim/material/edlp/rayl/re-ff-26.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-27.dat +161 -0
- gecatsim/material/edlp/rayl/re-ff-28.dat +169 -0
- gecatsim/material/edlp/rayl/re-ff-29.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-3.dat +145 -0
- gecatsim/material/edlp/rayl/re-ff-30.dat +164 -0
- gecatsim/material/edlp/rayl/re-ff-31.dat +162 -0
- gecatsim/material/edlp/rayl/re-ff-32.dat +164 -0
- gecatsim/material/edlp/rayl/re-ff-33.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-34.dat +165 -0
- gecatsim/material/edlp/rayl/re-ff-35.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-36.dat +154 -0
- gecatsim/material/edlp/rayl/re-ff-37.dat +156 -0
- gecatsim/material/edlp/rayl/re-ff-38.dat +157 -0
- gecatsim/material/edlp/rayl/re-ff-39.dat +157 -0
- gecatsim/material/edlp/rayl/re-ff-4.dat +147 -0
- gecatsim/material/edlp/rayl/re-ff-40.dat +166 -0
- gecatsim/material/edlp/rayl/re-ff-41.dat +168 -0
- gecatsim/material/edlp/rayl/re-ff-42.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-43.dat +160 -0
- gecatsim/material/edlp/rayl/re-ff-44.dat +156 -0
- gecatsim/material/edlp/rayl/re-ff-45.dat +156 -0
- gecatsim/material/edlp/rayl/re-ff-46.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-47.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-48.dat +160 -0
- gecatsim/material/edlp/rayl/re-ff-49.dat +161 -0
- gecatsim/material/edlp/rayl/re-ff-5.dat +144 -0
- gecatsim/material/edlp/rayl/re-ff-50.dat +154 -0
- gecatsim/material/edlp/rayl/re-ff-51.dat +152 -0
- gecatsim/material/edlp/rayl/re-ff-52.dat +154 -0
- gecatsim/material/edlp/rayl/re-ff-53.dat +159 -0
- gecatsim/material/edlp/rayl/re-ff-54.dat +159 -0
- gecatsim/material/edlp/rayl/re-ff-55.dat +154 -0
- gecatsim/material/edlp/rayl/re-ff-56.dat +157 -0
- gecatsim/material/edlp/rayl/re-ff-57.dat +164 -0
- gecatsim/material/edlp/rayl/re-ff-58.dat +163 -0
- gecatsim/material/edlp/rayl/re-ff-59.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-6.dat +151 -0
- gecatsim/material/edlp/rayl/re-ff-60.dat +153 -0
- gecatsim/material/edlp/rayl/re-ff-61.dat +165 -0
- gecatsim/material/edlp/rayl/re-ff-62.dat +165 -0
- gecatsim/material/edlp/rayl/re-ff-63.dat +156 -0
- gecatsim/material/edlp/rayl/re-ff-64.dat +162 -0
- gecatsim/material/edlp/rayl/re-ff-65.dat +159 -0
- gecatsim/material/edlp/rayl/re-ff-66.dat +154 -0
- gecatsim/material/edlp/rayl/re-ff-67.dat +164 -0
- gecatsim/material/edlp/rayl/re-ff-68.dat +155 -0
- gecatsim/material/edlp/rayl/re-ff-69.dat +160 -0
- gecatsim/material/edlp/rayl/re-ff-7.dat +170 -0
- gecatsim/material/edlp/rayl/re-ff-70.dat +165 -0
- gecatsim/material/edlp/rayl/re-ff-71.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-72.dat +159 -0
- gecatsim/material/edlp/rayl/re-ff-73.dat +161 -0
- gecatsim/material/edlp/rayl/re-ff-74.dat +160 -0
- gecatsim/material/edlp/rayl/re-ff-75.dat +157 -0
- gecatsim/material/edlp/rayl/re-ff-76.dat +151 -0
- gecatsim/material/edlp/rayl/re-ff-77.dat +148 -0
- gecatsim/material/edlp/rayl/re-ff-78.dat +146 -0
- gecatsim/material/edlp/rayl/re-ff-79.dat +144 -0
- gecatsim/material/edlp/rayl/re-ff-8.dat +172 -0
- gecatsim/material/edlp/rayl/re-ff-80.dat +149 -0
- gecatsim/material/edlp/rayl/re-ff-81.dat +154 -0
- gecatsim/material/edlp/rayl/re-ff-82.dat +150 -0
- gecatsim/material/edlp/rayl/re-ff-83.dat +155 -0
- gecatsim/material/edlp/rayl/re-ff-84.dat +152 -0
- gecatsim/material/edlp/rayl/re-ff-85.dat +158 -0
- gecatsim/material/edlp/rayl/re-ff-86.dat +150 -0
- gecatsim/material/edlp/rayl/re-ff-87.dat +150 -0
- gecatsim/material/edlp/rayl/re-ff-88.dat +149 -0
- gecatsim/material/edlp/rayl/re-ff-89.dat +147 -0
- gecatsim/material/edlp/rayl/re-ff-9.dat +180 -0
- gecatsim/material/edlp/rayl/re-ff-90.dat +149 -0
- gecatsim/material/edlp/rayl/re-ff-91.dat +147 -0
- gecatsim/material/edlp/rayl/re-ff-92.dat +153 -0
- gecatsim/material/edlp/rayl/re-ff-93.dat +148 -0
- gecatsim/material/edlp/rayl/re-ff-94.dat +150 -0
- gecatsim/material/edlp/rayl/re-ff-95.dat +147 -0
- gecatsim/material/edlp/rayl/re-ff-96.dat +147 -0
- gecatsim/material/edlp/rayl/re-ff-97.dat +146 -0
- gecatsim/material/edlp/rayl/re-ff-98.dat +148 -0
- gecatsim/material/edlp/rayl/re-ff-99.dat +148 -0
- gecatsim/material/edlp/rayl/re-ff-all.dat +0 -0
- gecatsim/material/graphite +13 -0
- gecatsim/material/ncat_adipose +19 -0
- gecatsim/material/ncat_air +18 -0
- gecatsim/material/ncat_aluminum +14 -0
- gecatsim/material/ncat_bladder +23 -0
- gecatsim/material/ncat_blood +24 -0
- gecatsim/material/ncat_blood_with_0_7pct_iodine +25 -0
- gecatsim/material/ncat_blood_with_0_8pct_iodine +25 -0
- gecatsim/material/ncat_blood_with_0_9pct_iodine +25 -0
- gecatsim/material/ncat_blood_with_1_0pct_iodine +25 -0
- gecatsim/material/ncat_blood_with_1_1pct_iodine +25 -0
- gecatsim/material/ncat_blood_with_2_0pct_iodine +25 -0
- gecatsim/material/ncat_blood_with_3_0pct_iodine +25 -0
- gecatsim/material/ncat_brain +23 -0
- gecatsim/material/ncat_breast_mammary +22 -0
- gecatsim/material/ncat_cartilage +22 -0
- gecatsim/material/ncat_dry_rib +23 -0
- gecatsim/material/ncat_dry_spine +24 -0
- gecatsim/material/ncat_eye_lens +22 -0
- gecatsim/material/ncat_graphite +14 -0
- gecatsim/material/ncat_heart +23 -0
- gecatsim/material/ncat_intestine +23 -0
- gecatsim/material/ncat_iodine +14 -0
- gecatsim/material/ncat_iodine_blood +25 -0
- gecatsim/material/ncat_iron +14 -0
- gecatsim/material/ncat_kidney +24 -0
- gecatsim/material/ncat_lead +14 -0
- gecatsim/material/ncat_liver +23 -0
- gecatsim/material/ncat_lung +23 -0
- gecatsim/material/ncat_lymph +21 -0
- gecatsim/material/ncat_muscle +23 -0
- gecatsim/material/ncat_ovary +23 -0
- gecatsim/material/ncat_pancreas +23 -0
- gecatsim/material/ncat_pmma +17 -0
- gecatsim/material/ncat_red_marrow +23 -0
- gecatsim/material/ncat_skin +23 -0
- gecatsim/material/ncat_skull +23 -0
- gecatsim/material/ncat_spleen +23 -0
- gecatsim/material/ncat_testis +23 -0
- gecatsim/material/ncat_thyroid +24 -0
- gecatsim/material/ncat_titanium +14 -0
- gecatsim/material/ncat_water +16 -0
- gecatsim/material/ncat_yellow_marrow +21 -0
- gecatsim/material/plexi +21 -0
- gecatsim/material/polyethylene +14 -0
- gecatsim/material/polyethylene_HDPE +16 -0
- gecatsim/material/polyethylene_LDPE +16 -0
- gecatsim/material/polyethylene_MDPE +16 -0
- gecatsim/material/polyethylene_legacy +20 -0
- gecatsim/material/polystyrene +18 -0
- gecatsim/material/polystyrene_legacy +21 -0
- gecatsim/material/pvc_legacy +22 -0
- gecatsim/material/water +16 -0
- gecatsim/material/water_20C +16 -0
- gecatsim/material/water_20C_NaCl_0p9_pct +18 -0
- gecatsim/material/water_20C_iodine_100mg +17 -0
- gecatsim/material/water_20C_iodine_10mg +17 -0
- gecatsim/material/water_20C_iodine_15mg +17 -0
- gecatsim/material/water_20C_iodine_1mg +17 -0
- gecatsim/material/water_20C_iodine_20mg +17 -0
- gecatsim/material/water_20C_iodine_2mg +17 -0
- gecatsim/material/water_20C_iodine_30mg +17 -0
- gecatsim/material/water_20C_iodine_40mg +17 -0
- gecatsim/material/water_20C_iodine_50mg +17 -0
- gecatsim/material/water_20C_iodine_5mg +17 -0
- gecatsim/material/water_37C +16 -0
- gecatsim/phantom/CTDI_16cm_WaterAirPEBoneChambers.ppm +62 -0
- gecatsim/phantom/CatSimLogo_1024/CatSimLogo_1024_128mmZ.json +51 -0
- gecatsim/phantom/CatSimLogo_1024/CatSim_logo_1024.json +51 -0
- gecatsim/phantom/CatSimLogo_1024/CatSim_logo_1024_bone_1024x1024x1.raw +0 -0
- gecatsim/phantom/CatSimLogo_1024/CatSim_logo_1024_water_1024x1024x1.raw +0 -0
- gecatsim/phantom/W20.ppm +22 -0
- gecatsim/phantom/W30.ppm +22 -0
- gecatsim/phantom/W35.ppm +22 -0
- gecatsim/phantom/analyticArtifactPhantom.ppm +41 -0
- gecatsim/phantom/female_adult_average_lung_lesions_reduced.nrb +49874 -0
- gecatsim/phantom/poly_bin/poly10 +0 -0
- gecatsim/phantom/poly_bin/poly100 +0 -0
- gecatsim/phantom/poly_bin/poly12 +0 -0
- gecatsim/phantom/poly_bin/poly14 +0 -0
- gecatsim/phantom/poly_bin/poly17 +0 -0
- gecatsim/phantom/poly_bin/poly20 +0 -0
- gecatsim/phantom/poly_bin/poly21 +0 -0
- gecatsim/phantom/poly_bin/poly22 +0 -0
- gecatsim/phantom/poly_bin/poly23 +0 -0
- gecatsim/phantom/poly_bin/poly24 +0 -0
- gecatsim/phantom/poly_bin/poly25 +0 -0
- gecatsim/phantom/poly_bin/poly26 +0 -0
- gecatsim/phantom/poly_bin/poly28 +0 -0
- gecatsim/phantom/poly_bin/poly32 +0 -0
- gecatsim/phantom/poly_bin/poly33 +0 -0
- gecatsim/phantom/poly_bin/poly34 +0 -0
- gecatsim/phantom/poly_bin/poly36 +0 -0
- gecatsim/phantom/poly_bin/poly38 +0 -0
- gecatsim/phantom/poly_bin/poly4 +0 -0
- gecatsim/phantom/poly_bin/poly40 +0 -0
- gecatsim/phantom/poly_bin/poly41 +0 -0
- gecatsim/phantom/poly_bin/poly44 +0 -0
- gecatsim/phantom/poly_bin/poly49 +0 -0
- gecatsim/phantom/poly_bin/poly5 +0 -0
- gecatsim/phantom/poly_bin/poly50 +0 -0
- gecatsim/phantom/poly_bin/poly52 +0 -0
- gecatsim/phantom/poly_bin/poly55 +0 -0
- gecatsim/phantom/poly_bin/poly58 +0 -0
- gecatsim/phantom/poly_bin/poly6 +0 -0
- gecatsim/phantom/poly_bin/poly60 +0 -0
- gecatsim/phantom/poly_bin/poly62 +0 -0
- gecatsim/phantom/poly_bin/poly66 +0 -0
- gecatsim/phantom/poly_bin/poly68 +0 -0
- gecatsim/phantom/poly_bin/poly7 +0 -0
- gecatsim/phantom/poly_bin/poly71 +0 -0
- gecatsim/phantom/poly_bin/poly75 +0 -0
- gecatsim/phantom/poly_bin/poly77 +0 -0
- gecatsim/phantom/poly_bin/poly79 +0 -0
- gecatsim/phantom/poly_bin/poly86 +0 -0
- gecatsim/phantom/poly_bin/poly9 +0 -0
- gecatsim/phantom/poly_bin/poly92 +0 -0
- gecatsim/phantom/poly_bin/poly96 +0 -0
- gecatsim/phantom/tungsten_wire.ppm +12 -0
- gecatsim/phantom/vmale50_chest_less_surfaces.nrb +41545 -0
- gecatsim/pyfiles/C_DD3Proj.py +57 -0
- gecatsim/pyfiles/C_DD3Proj_mm.py +64 -0
- gecatsim/pyfiles/C_Materials_CrossSectionDB_Initialize.py +18 -0
- gecatsim/pyfiles/C_Materials_CrossSectionMAC_ByProc_Get.py +25 -0
- gecatsim/pyfiles/C_Phantom_Analytic_FORBILD_to_tmp.py +13 -0
- gecatsim/pyfiles/C_Projector_Analytic.py +62 -0
- gecatsim/pyfiles/C_Projector_NCAT.py +66 -0
- gecatsim/pyfiles/C_Projector_Polygon.py +60 -0
- gecatsim/pyfiles/C_Projector_SetData.py +166 -0
- gecatsim/pyfiles/C_Projector_Voxelized.py +75 -0
- gecatsim/pyfiles/C_Source_Analytic_Set.py +17 -0
- gecatsim/pyfiles/C_Source_NCAT_Set.py +17 -0
- gecatsim/pyfiles/C_Source_Voxelized_Set.py +17 -0
- gecatsim/pyfiles/C_Volume_Get.py +24 -0
- gecatsim/pyfiles/C_Volume_NCAT_Get.py +24 -0
- gecatsim/pyfiles/C_Volume_Poly_Get.py +24 -0
- gecatsim/pyfiles/CalcCrossTalk.py +42 -0
- gecatsim/pyfiles/CalcOptCrossTalk.py +39 -0
- gecatsim/pyfiles/CatSim.py +88 -0
- gecatsim/pyfiles/CheckModules.py +59 -0
- gecatsim/pyfiles/Check_Replace_Old_Names.py +85 -0
- gecatsim/pyfiles/CommonTools.py +445 -0
- gecatsim/pyfiles/Detection_DAS.py +25 -0
- gecatsim/pyfiles/Detection_EI.py +84 -0
- gecatsim/pyfiles/Detection_Flux.py +47 -0
- gecatsim/pyfiles/Detection_Lag.py +28 -0
- gecatsim/pyfiles/Detection_PC.py +120 -0
- gecatsim/pyfiles/Detection_prefilter.py +35 -0
- gecatsim/pyfiles/Detector_RayAngles_2D.py +86 -0
- gecatsim/pyfiles/Detector_ThirdgenCurved.py +119 -0
- gecatsim/pyfiles/FlatPanel/Detection_DAS_FlatPanel.py +101 -0
- gecatsim/pyfiles/FlatPanel/Detection_OpticalCrosstalk_FlatPanel.py +39 -0
- gecatsim/pyfiles/FlatPanel/Detector_FlatPanel.py +120 -0
- gecatsim/pyfiles/Gantry_Helical.py +56 -0
- gecatsim/pyfiles/GetMu.py +68 -0
- gecatsim/pyfiles/LowSignalCorr.py +32 -0
- gecatsim/pyfiles/OneScan.py +144 -0
- gecatsim/pyfiles/PhantomProjectorWrapper.py +65 -0
- gecatsim/pyfiles/Phantom_Analytic.py +936 -0
- gecatsim/pyfiles/Phantom_CAD_to_Polygonal.py +82 -0
- gecatsim/pyfiles/Phantom_NCAT.py +96 -0
- gecatsim/pyfiles/Phantom_Polygonal.py +122 -0
- gecatsim/pyfiles/Phantom_Polygonal_ReadPolygon.py +58 -0
- gecatsim/pyfiles/Phantom_Voxelized.py +120 -0
- gecatsim/pyfiles/PrepView.py +56 -0
- gecatsim/pyfiles/Prep_BHC_Accurate.py +69 -0
- gecatsim/pyfiles/ReadMaterialFile.py +29 -0
- gecatsim/pyfiles/Scatter_ConvolutionModel.py +44 -0
- gecatsim/pyfiles/Scatter_Correction.py +52 -0
- gecatsim/pyfiles/SetFocalspot.py +239 -0
- gecatsim/pyfiles/Spectrum.py +130 -0
- gecatsim/pyfiles/Spectrum_heel.py +146 -0
- gecatsim/pyfiles/WriteRawView.py +32 -0
- gecatsim/pyfiles/WriteRawViewChunk.py +40 -0
- gecatsim/pyfiles/Xray_Filter.py +93 -0
- gecatsim/pyfiles/__init__.py +0 -0
- gecatsim/pyfiles/catvoxel.py +161 -0
- gecatsim/pyfiles/randpf.py +27 -0
- gecatsim/reconstruction/lib/fdk_equiAngle.dll +0 -0
- gecatsim/reconstruction/lib/fdk_equiAngle.so +0 -0
- gecatsim/reconstruction/lib/fdk_equiAngle_macos.so +0 -0
- gecatsim/reconstruction/lib/helicalrecon.dll +0 -0
- gecatsim/reconstruction/lib/helicalrecon.so +0 -0
- gecatsim/reconstruction/lib/readme.md +20 -0
- gecatsim/reconstruction/pyfiles/createHSP.py +81 -0
- gecatsim/reconstruction/pyfiles/fdk_equiAngle.py +245 -0
- gecatsim/reconstruction/pyfiles/helical_equiAngle.py +284 -0
- gecatsim/reconstruction/pyfiles/mapConfigVariablesToFDK.py +38 -0
- gecatsim/reconstruction/pyfiles/mapConfigVariablesToHelical.py +50 -0
- gecatsim/reconstruction/pyfiles/recon.py +172 -0
- gecatsim/reconstruction/src/Parallel_FDK_Helical_3DWeighting.c +211 -0
- gecatsim/reconstruction/src/interface_fdk_angle.c +162 -0
- gecatsim/response_matrix/PC_spectral_response_CZT0.25x0.25x1.6.mat +0 -0
- gecatsim/scatter/scatter_kernel.dat +0 -0
- gecatsim/spectrum/XCISTspectrum.m +262 -0
- gecatsim/spectrum/convert.py +21 -0
- gecatsim/spectrum/readme.md +17 -0
- gecatsim/spectrum/tungsten_tar10.0_100_filt.dat +201 -0
- gecatsim/spectrum/tungsten_tar10.0_110_filt.dat +221 -0
- gecatsim/spectrum/tungsten_tar10.0_120_filt.dat +241 -0
- gecatsim/spectrum/tungsten_tar10.0_130_filt.dat +261 -0
- gecatsim/spectrum/tungsten_tar10.0_140_filt.dat +281 -0
- gecatsim/spectrum/tungsten_tar10.0_70_filt.dat +141 -0
- gecatsim/spectrum/tungsten_tar10.0_80_filt.dat +161 -0
- gecatsim/spectrum/tungsten_tar10.0_90_filt.dat +181 -0
- gecatsim/spectrum/tungsten_tar7.0_100_filt.dat +201 -0
- gecatsim/spectrum/tungsten_tar7.0_110_filt.dat +221 -0
- gecatsim/spectrum/tungsten_tar7.0_120_filt.dat +241 -0
- gecatsim/spectrum/tungsten_tar7.0_130_filt.dat +261 -0
- gecatsim/spectrum/tungsten_tar7.0_140_filt.dat +281 -0
- gecatsim/spectrum/tungsten_tar7.0_70_filt.dat +141 -0
- gecatsim/spectrum/tungsten_tar7.0_80_filt.dat +161 -0
- gecatsim/spectrum/tungsten_tar7.0_90_filt.dat +181 -0
- gecatsim/spectrum/xcist_kVp100_tar7_bin1.dat +103 -0
- gecatsim/spectrum/xcist_kVp120_tar7_bin1.dat +123 -0
- gecatsim/spectrum/xcist_kVp140_tar7_bin1.dat +143 -0
- gecatsim/spectrum/xcist_kVp80_tar7_bin1.dat +83 -0
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
# Copyright 2024, GE Precision HealthCare. All rights reserved. See https://github.com/xcist/main/tree/master/license
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from ctypes import *
|
|
6
|
+
from numpy.ctypeslib import ndpointer
|
|
7
|
+
from gecatsim.pyfiles.GetMu import GetMu
|
|
8
|
+
from gecatsim.pyfiles.CommonTools import *
|
|
9
|
+
from gecatsim.pyfiles.C_Phantom_Analytic_FORBILD_to_tmp import C_Phantom_Analytic_FORBILD_to_tmp
|
|
10
|
+
|
|
11
|
+
def Phantom_Analytic(cfg):
|
|
12
|
+
|
|
13
|
+
print("Starting to read ANALYTIC phantom...")
|
|
14
|
+
|
|
15
|
+
phobj, phobject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D = Phantom_Analytic_Get(cfg)
|
|
16
|
+
|
|
17
|
+
cfg.phantom.numberOfMaterials = len(phobject['materialList'])
|
|
18
|
+
cfg.phantom.Materials = phobject['materialList']
|
|
19
|
+
set_materials(cfg)
|
|
20
|
+
set_volume(cfg, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D)
|
|
21
|
+
|
|
22
|
+
print('... done reading phantom.')
|
|
23
|
+
return cfg
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def set_materials(cfg):
|
|
27
|
+
materialList = cfg.phantom.Materials
|
|
28
|
+
Evec = cfg.spec.Evec
|
|
29
|
+
nMat = len(materialList)
|
|
30
|
+
Mus = np.zeros([Evec.size, nMat], dtype=np.float64)
|
|
31
|
+
for i in range(nMat):
|
|
32
|
+
Mus[:, i] = GetMu(materialList[i], Evec)/10
|
|
33
|
+
|
|
34
|
+
# analytic_projector.c: void set_material_info(int materialCount, int eBinCount, double *muTable)
|
|
35
|
+
fun = cfg.clib.set_material_info
|
|
36
|
+
fun.argtypes = [c_int, c_int, ndpointer(c_double)]
|
|
37
|
+
fun.restype = None
|
|
38
|
+
fun(nMat, Evec.size, Mus)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def set_volume(cfg, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D):
|
|
42
|
+
X = X.T.ravel()
|
|
43
|
+
K = K.T.ravel()
|
|
44
|
+
Eta = Eta.T.ravel()
|
|
45
|
+
|
|
46
|
+
# analytic_projector.c: void set_phantom_info(int numObjs, int *objType, int *clipStInd, int *nPlanes, int *matInd, double *objCent, double *shp, double *Qmat, double *clipNormVec, double *clipDist, double *den, int totalNumPlanes)
|
|
47
|
+
# in matlabe: calllib(CatSimLib, 'set_phantom_info', numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D, cumCP_end);
|
|
48
|
+
fun = cfg.clib.set_phantom_info
|
|
49
|
+
fun.argtypes = [c_int, ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), c_int]
|
|
50
|
+
fun.restype = None
|
|
51
|
+
fun(numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D, cumCP[-1])
|
|
52
|
+
|
|
53
|
+
'''
|
|
54
|
+
NOTE: phobject here is object in matlab [simply the parsed phantom], phantobject here is phobject in matlab
|
|
55
|
+
'''
|
|
56
|
+
def Phantom_Analytic_Get(cfg):
|
|
57
|
+
###----------- phantom file
|
|
58
|
+
cfg.phantom.filename = my_path.find('phantom', cfg.phantom.filename, '')
|
|
59
|
+
|
|
60
|
+
PhantomFilename=cfg.phantom.filename
|
|
61
|
+
Scale=cfg.phantom.scale
|
|
62
|
+
print('Reading phantom file {}...'.format(PhantomFilename))
|
|
63
|
+
|
|
64
|
+
PhantomPath = os.path.dirname(PhantomFilename)
|
|
65
|
+
BaseName = os.path.basename(PhantomFilename)
|
|
66
|
+
PhantomBaseName, PhantomExtension = BaseName.split('.')
|
|
67
|
+
if 'pp' == PhantomExtension:
|
|
68
|
+
ppmPhantomFilename = PhantomFilename.replace('.pp','.ppm')
|
|
69
|
+
if cfg.phantom.force_phantom_conversion or os.path.getmtime(PhantomFilename) > os.path.getmtime(ppmPhantomFilename):
|
|
70
|
+
print("Converting pp format to ppm...")
|
|
71
|
+
if os.path.exists(PhantomFilename):
|
|
72
|
+
# first, replace potential CRLF to LF, to avoid issues in the c parser code
|
|
73
|
+
PhantomFilename = Phantom_Analytic_replace_CRLF(PhantomFilename)
|
|
74
|
+
Phantom_Analytic_pp_to_ppm(os.path.splitext(PhantomFilename)[0], ppmPhantomFilename)
|
|
75
|
+
if "_tmpCRLF" in PhantomFilename: os.remove(PhantomFilename)
|
|
76
|
+
else:
|
|
77
|
+
sys.exit('Phantom file {} not found'.format(PhantomFilename))
|
|
78
|
+
else:
|
|
79
|
+
if 'ppm' == PhantomExtension:
|
|
80
|
+
ppmPhantomFilename = PhantomFilename
|
|
81
|
+
|
|
82
|
+
print('Reading phantom file {}.'.format(ppmPhantomFilename))
|
|
83
|
+
|
|
84
|
+
phobject = parse_analytical_ppm(ppmPhantomFilename)
|
|
85
|
+
|
|
86
|
+
#FIXME: will fix this part
|
|
87
|
+
#if isfield(cfg,'phantom_rotation_y') and any(cfg.phantom_rotation_y) != 0:
|
|
88
|
+
# cfg.phantom_rotation_y_analytic = copy(cfg.phantom_rotation_y)
|
|
89
|
+
#
|
|
90
|
+
#if isfield(cfg,'phantom_rotation_y_analytic') and cfg.phantom_rotation_y_analytic != 0:
|
|
91
|
+
# ang=cfg.phantom_rotation_y_analytic
|
|
92
|
+
# sina=sin(dot(- ang / 180,pi))
|
|
93
|
+
# cosa=cos(dot(- ang / 180,pi))
|
|
94
|
+
# transmat=concat([[cosa,0,sina],[0,1,0],[- sina,0,cosa]])
|
|
95
|
+
# for ii in arange(1,length(object.type)).reshape(-1):
|
|
96
|
+
# if any(object.euler_angs(ii,arange(2,3)) != 0) or all(object.euler_angs(ii,1) != concat([0,90,- 90])):
|
|
97
|
+
# error('CatSim: phantom rotation currently only works without original rotation')
|
|
98
|
+
# object.center[ii,arange()]=dot(object.center(ii,arange()),transmat)
|
|
99
|
+
# object.euler_angs[ii,arange()]=concat([90,ang,90])
|
|
100
|
+
# if logical_not(isempty(object.clip[ii])):
|
|
101
|
+
# for jj in arange(1,size(object.clip[ii],1)).reshape(-1):
|
|
102
|
+
# if all(abs(object.clip[ii](jj,arange(1,3))) == concat([1,0,0])):
|
|
103
|
+
# object.clip[ii][jj,arange(1,3)]=dot(object.clip[ii](jj,arange(1,3)),transmat)
|
|
104
|
+
#
|
|
105
|
+
# phantom position offset, Mingye
|
|
106
|
+
if hasattr(cfg.phantom,'centerOffset') and not np.allclose(cfg.phantom.centerOffset, 0):
|
|
107
|
+
setattr(cfg.phantom, "centerOffset_analytic", cfg.phantom.centerOffset)
|
|
108
|
+
|
|
109
|
+
if hasattr(cfg.phantom, 'centerOffset_analytic') and not np.allclose(cfg.phantom.centerOffset_analytic, 0):
|
|
110
|
+
for ii in range(len(phobject['type'])):
|
|
111
|
+
phobject['center'][ii] = np.array(phobject['center'][ii])
|
|
112
|
+
phobject['center'][ii] += cfg.phantom.centerOffset_analytic
|
|
113
|
+
if len(phobject['clip'][ii]) > 0:
|
|
114
|
+
# Mingye Wu, Sept 15 2017
|
|
115
|
+
# get the delta D of clip distance
|
|
116
|
+
for jj in range(len(phobject['clip'][ii])):
|
|
117
|
+
d = get_clip_dD(phobject['clip'][ii][jj][:3], cfg.phantom.centerOffset_analytic)
|
|
118
|
+
phobject['clip'][ii][jj][3] += d
|
|
119
|
+
|
|
120
|
+
if len(phobject['materialList']) < max(phobject['material']):
|
|
121
|
+
sys.exit('Phantom cannot reference a material that is not in the list')
|
|
122
|
+
objs = {'params': [[] for _ in range(len(phobject['type']))],
|
|
123
|
+
'clip': [[] for _ in range(len(phobject['type']))]}
|
|
124
|
+
if np.any(np.array(phobject['type'])==100):
|
|
125
|
+
#FIXME: finish this part
|
|
126
|
+
#Phantom_Polygonal(object,Scale)
|
|
127
|
+
pass
|
|
128
|
+
else:
|
|
129
|
+
print('Converting boxes to cylinders with clipping.')
|
|
130
|
+
for i in range(len(phobject['type'])):
|
|
131
|
+
if phobject['type'][i] == 8:
|
|
132
|
+
phobject['type'][i] = 2
|
|
133
|
+
Bt = Rmat(phobject['euler_angs'][i]).T
|
|
134
|
+
phobject['clip'][i] = np.vstack((
|
|
135
|
+
np.hstack((Bt[:,0].T, phobject['half_axes'][i][0] + np.array(phobject['center'][i])@Bt[:,0])),
|
|
136
|
+
np.hstack((-Bt[:,0].T, phobject['half_axes'][i][0] - np.array(phobject['center'][i])@Bt[:,0])),
|
|
137
|
+
np.hstack((Bt[:,1].T, phobject['half_axes'][i][1] + np.array(phobject['center'][i])@Bt[:,1])),
|
|
138
|
+
np.hstack((-Bt[:,1].T, phobject['half_axes'][i][1] - np.array(phobject['center'][i])@Bt[:,1]))))
|
|
139
|
+
phobject['half_axes'][i][:2]= np.array(phobject['half_axes'][i][:2])*np.sqrt(2)
|
|
140
|
+
|
|
141
|
+
print('Scaling and compacting format.')
|
|
142
|
+
indsToScale= list(range(6)) + [13,14]
|
|
143
|
+
|
|
144
|
+
for i in range(len(phobject['type'])):
|
|
145
|
+
if not phobject['type'][i] in [3,7]:
|
|
146
|
+
tmp = list(phobject['center'][i]) + phobject['half_axes'][i] + phobject['euler_angs'][i] + [phobject['density'][i]] + [phobject['type'][i]] + [0] + [phobject['shape'][i]] + phobject['axial_lims'][i] + [phobject['material'][i]]
|
|
147
|
+
tmp = np.array(tmp)
|
|
148
|
+
tmp[indsToScale] = tmp[indsToScale]*Scale
|
|
149
|
+
objs['params'][i] = tmp
|
|
150
|
+
tmp2 = np.array(phobject['clip'][i])
|
|
151
|
+
if len(tmp2)!=0:
|
|
152
|
+
tmp2[:,3]= tmp2[:,3]*Scale
|
|
153
|
+
objs['clip'][i] = tmp2
|
|
154
|
+
else:
|
|
155
|
+
objs['params'][i] = np.vstack([phobject['center'][i],phobject['half_axes'][i],phobject['euler_angs'][i],phobject['density'][i],phobject['type'][i],0,phobject['shape'][i],phobject['axial_lims'][i],phobject['material'][i]])
|
|
156
|
+
objs['clip'][i] = phobject['clip'][i]
|
|
157
|
+
# Set the objects, and pass to C.
|
|
158
|
+
objs['params'] = np.array(objs['params'])
|
|
159
|
+
phantObject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D = Phantom_Analytic_SetObjects(objs)
|
|
160
|
+
objs['params'] = Phantom_Analytic_ConvertTori(phantObject,objs['params'],objs['clip'])
|
|
161
|
+
phantObject = Phantom_Analytic_BoundObjects(phantObject,objs['params'])
|
|
162
|
+
print('... done with phantom.')
|
|
163
|
+
|
|
164
|
+
return phantObject, phobject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def Rmat(p=None):
|
|
168
|
+
p=np.array(p)*3.141592653589793 / 180
|
|
169
|
+
p1=p[0]
|
|
170
|
+
p2=p[1]
|
|
171
|
+
p3=p[2]
|
|
172
|
+
R=np.vstack(([np.cos(p1)*np.cos(p3) - np.sin(p1)*np.cos(p2)*np.sin(p3), np.cos(p1)*np.sin(p3) + np.sin(p1)*np.cos(p2)*np.cos(p3), np.sin(p1)*np.sin(p2)],
|
|
173
|
+
[-np.sin(p1)*np.cos(p3) - np.cos(p1)*np.cos(p2)*np.sin(p3), -np.sin(p1)*np.sin(p3) + np.cos(p1)*np.cos(p2)*np.cos(p3),np.cos(p1)*np.sin(p2)],
|
|
174
|
+
[np.sin(p2)*np.sin(p3), -np.sin(p2)*np.cos(p3), np.cos(p2)]))
|
|
175
|
+
return R
|
|
176
|
+
|
|
177
|
+
# Mingye Wu, Sept 15 2017
|
|
178
|
+
# get the delta D of clip
|
|
179
|
+
# c0: original clip vector
|
|
180
|
+
# c1: phantom off-centering coordinates
|
|
181
|
+
def get_clip_dD(c0=None,c1=None):
|
|
182
|
+
|
|
183
|
+
c0 = np.array(c0)
|
|
184
|
+
c1 = np.array(c1)
|
|
185
|
+
r0 = np.linalg.norm(c0)
|
|
186
|
+
r1 = np.linalg.norm(c1)
|
|
187
|
+
d = np.linalg.norm(c0 - c1)
|
|
188
|
+
cosA = (r0**2 + r1**2 - d**2)/(2*r0*r1)
|
|
189
|
+
cosA = np.nan_to_num(cosA)
|
|
190
|
+
#cosA[cosA==np.inf] = 0.
|
|
191
|
+
delta = r1*cosA
|
|
192
|
+
|
|
193
|
+
return delta
|
|
194
|
+
|
|
195
|
+
def Phantom_Analytic_replace_CRLF(PhantomFilename):
|
|
196
|
+
WINDOWS_LINE_ENDING = b'\r\n'
|
|
197
|
+
UNIX_LINE_ENDING = b'\n'
|
|
198
|
+
|
|
199
|
+
with open(PhantomFilename, 'rb') as open_file:
|
|
200
|
+
content = open_file.read()
|
|
201
|
+
|
|
202
|
+
if WINDOWS_LINE_ENDING not in content: return PhantomFilename
|
|
203
|
+
|
|
204
|
+
print("Warning: found windows EOL symbols in the phantom file.\n")
|
|
205
|
+
|
|
206
|
+
content = content.replace(WINDOWS_LINE_ENDING, UNIX_LINE_ENDING)
|
|
207
|
+
|
|
208
|
+
tmpPhantomFilename = PhantomFilename.replace(".pp", "_tmpCRLF.pp")
|
|
209
|
+
with open(tmpPhantomFilename, 'wb') as open_file:
|
|
210
|
+
open_file.write(content)
|
|
211
|
+
|
|
212
|
+
return tmpPhantomFilename
|
|
213
|
+
|
|
214
|
+
def Phantom_Analytic_BoundObjects(phantObject=None,params=None):
|
|
215
|
+
|
|
216
|
+
print('Bounding objects in the ANALYTIC phantom.')
|
|
217
|
+
speedup = 0
|
|
218
|
+
|
|
219
|
+
Good = [4,4,4,4,5,6,7,9,9,10,12,12,14,14,17,17,17,20,20,20,21,22,23,24,25,26,28,28,32,32,32,32,33,34,36,36,38,38,40,40,41,44,44,44,49,49,49,49,49,50,52,52,55,55,55,58,58,58,60,60,62,62,66,66,66,66,68,68,71,71,71,75,75,75,75,77,77,79,79,86,86,86,86,86,86,86,92,92,92,92,92,92,96,96,96,96,100,100,100,100]
|
|
220
|
+
numObjects = len(params)
|
|
221
|
+
|
|
222
|
+
for i in range(numObjects):
|
|
223
|
+
pars = params[i]
|
|
224
|
+
typ = pars[10]
|
|
225
|
+
if typ == 1:
|
|
226
|
+
c = 2.5
|
|
227
|
+
Volume = np.prod(pars[3:6])
|
|
228
|
+
Verts = Good[min(100, int(np.ceil(Volume**(4/15)*c)))-1]
|
|
229
|
+
Vx, nV = Phantom_Polygonal_ReadPolygon(Verts)
|
|
230
|
+
tmp = np.vstack(([pars[3],0,0],[0,pars[4],0],[0,0,pars[5]]))
|
|
231
|
+
Vx = phantObject[i]['R'].T@tmp@Vx + pars[:3, None]@np.ones((1,Verts))
|
|
232
|
+
elif typ == 2:
|
|
233
|
+
c = 2
|
|
234
|
+
Volume = np.prod(pars[3:6])
|
|
235
|
+
nodes=max(round(c*Volume ** (2 / 15)),3)
|
|
236
|
+
ang = np.linspace(0, 2*np.pi ,nodes + 1)
|
|
237
|
+
ang = ang[:-1]
|
|
238
|
+
sc = 1/np.cos(np.pi / nodes)
|
|
239
|
+
x = np.cos(ang)*sc
|
|
240
|
+
y = np.sin(ang)*sc
|
|
241
|
+
z = x*0
|
|
242
|
+
Vx = np.stack((np.concatenate((x,x), axis=0),
|
|
243
|
+
np.concatenate((y,y), axis=0),
|
|
244
|
+
np.concatenate((z-1,z+1), axis=0)), axis=0)
|
|
245
|
+
Vx_old = Vx.copy()
|
|
246
|
+
tmp1 = (np.arange(1,nodes+1) - 2)%nodes + 1
|
|
247
|
+
tmp2 = (np.arange(1,nodes+1))%nodes + 1
|
|
248
|
+
tmp3 = np.arange(1,nodes+1) + nodes
|
|
249
|
+
nV = np.stack((np.concatenate((tmp1, tmp2 + nodes), axis=0),
|
|
250
|
+
np.concatenate((tmp2, tmp1 + nodes), axis=0),
|
|
251
|
+
np.concatenate((tmp3, tmp3 - nodes), axis=0)), axis=0)
|
|
252
|
+
Verts = Vx.shape[1]
|
|
253
|
+
tmp_mat = np.array(([pars[3],0,0],[0,pars[4],0],[0,0,pars[5]]))
|
|
254
|
+
Vx = np.matmul(phantObject[i]['R'].T, np.matmul(tmp_mat,Vx)) + pars[:3, None]*np.ones((1,Verts))
|
|
255
|
+
else: print("new types need attention:", typ)
|
|
256
|
+
#if i==9: breakpoint()
|
|
257
|
+
#elif typ == 3:
|
|
258
|
+
# c=2
|
|
259
|
+
# s=pars(13)
|
|
260
|
+
# Volume=dot(dot(prod(pars(arange(4,6))),(1 + s) ** 2),s)
|
|
261
|
+
# nodes=max(round(dot(c,Volume ** (2 / 15))),3)
|
|
262
|
+
# ang=linspace(0,dot(2,pi),nodes + 1)
|
|
263
|
+
# ang=ang(arange(1,end() - 1))
|
|
264
|
+
# sc=dot(1 / cos(pi / nodes),(1 + s))
|
|
265
|
+
# x=dot(cos(ang),sc)
|
|
266
|
+
# y=dot(sin(ang),sc)
|
|
267
|
+
# z=dot(x,0)
|
|
268
|
+
# Vx=concat([[x,x],[y,y],[z - s,z + s]])
|
|
269
|
+
|
|
270
|
+
# tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
|
|
271
|
+
# tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
|
|
272
|
+
# tmp3=concat([arange(1,nodes)]) + nodes
|
|
273
|
+
# nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
|
|
274
|
+
# Verts=size(Vx,2)
|
|
275
|
+
# Vx=dot(dot(phantObject[i].R.T,concat([[pars(4),0,0],[0,pars(5),0],[0,0,pars(6)]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
|
|
276
|
+
#elif typ == 4:
|
|
277
|
+
# c=2
|
|
278
|
+
# alim=sort(pars(arange(14,15)))
|
|
279
|
+
# rat=alim(2) / pars(6)
|
|
280
|
+
# Volume=dot(dot(dot(pars(4),pars(5)),rat ** 2),alim(2)) / 3
|
|
281
|
+
# nodes=max(round(dot(c,Volume ** (2 / 15))),3)
|
|
282
|
+
# ang=linspace(0,dot(2,pi),nodes + 1)
|
|
283
|
+
# ang=ang(arange(1,end() - 1))
|
|
284
|
+
# sc=1 / cos(pi / nodes)
|
|
285
|
+
# x=dot(cos(ang),sc)
|
|
286
|
+
# y=dot(sin(ang),sc)
|
|
287
|
+
# z=dot(x,0)
|
|
288
|
+
# scl=max(alim(1) / alim(2),0.05)
|
|
289
|
+
# Vx=concat([[dot(x,scl),x],[dot(y,scl),y],[z + alim(1),z + alim(2)]])
|
|
290
|
+
# tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
|
|
291
|
+
# tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
|
|
292
|
+
# tmp3=concat([arange(1,nodes)]) + nodes
|
|
293
|
+
# nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
|
|
294
|
+
# Verts=size(Vx,2)
|
|
295
|
+
# Vx=dot(dot(phantObject[i].R.T,concat([[dot(pars(4),rat),0,0],[0,dot(pars(5),rat),0],[0,0,1]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
|
|
296
|
+
#if typ == 5:
|
|
297
|
+
# c=2
|
|
298
|
+
# alim=sort(pars(arange(14,15)))
|
|
299
|
+
# mag=sqrt(1 + alim ** 2 / pars(6) ** 2)
|
|
300
|
+
# Volume=dot(dot(dot(pars(4),pars(5)),prod(mag)),(alim(2) - alim(1)))
|
|
301
|
+
# nodes=max(round(dot(c,Volume ** (2 / 15))),3)
|
|
302
|
+
# ang=linspace(0,dot(2,pi),nodes + 1)
|
|
303
|
+
# ang=ang(arange(1,end() - 1))
|
|
304
|
+
# sc=1 / cos(pi / nodes)
|
|
305
|
+
# x=dot(cos(ang),sc)
|
|
306
|
+
# y=dot(sin(ang),sc)
|
|
307
|
+
# z=dot(x,0)
|
|
308
|
+
# Vx=concat([[dot(x,mag(1)),dot(x,mag(2))],[dot(y,mag(1)),dot(y,mag(2))],[z + alim(1),z + alim(2)]])
|
|
309
|
+
# tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
|
|
310
|
+
# tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
|
|
311
|
+
# tmp3=concat([arange(1,nodes)]) + nodes
|
|
312
|
+
# nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
|
|
313
|
+
# Verts=size(Vx,2)
|
|
314
|
+
# Vx=dot(dot(phantObject[i].R.T,concat([[pars(4),0,0],[0,pars(5),0],[0,0,1]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
|
|
315
|
+
#if typ == 6:
|
|
316
|
+
# c=2
|
|
317
|
+
# alim=sort(pars(arange(14,15)))
|
|
318
|
+
# lim=max(abs(alim))
|
|
319
|
+
# if (alim(1) > - pars(6)) and (alim(1) < pars(6)):
|
|
320
|
+
# alim[1]=min(pars(6),alim(2))
|
|
321
|
+
# if (alim(2) > - pars(6)) and (alim(2) < pars(6)):
|
|
322
|
+
# alim[2]=max(- pars(6),alim(1))
|
|
323
|
+
# mag=sqrt(- 1 + lim ** 2 / pars(6) ** 2)
|
|
324
|
+
# Volume=dot(dot(dot(pars(4),pars(5)),prod(mag)),(alim(2) - alim(1)))
|
|
325
|
+
# nodes=max(round(dot(c,Volume ** (2 / 15))),3)
|
|
326
|
+
# ang=linspace(0,dot(2,pi),nodes + 1)
|
|
327
|
+
# ang=ang(arange(1,end() - 1))
|
|
328
|
+
# sc=1 / cos(pi / nodes)
|
|
329
|
+
# x=dot(cos(ang),sc)
|
|
330
|
+
# y=dot(sin(ang),sc)
|
|
331
|
+
# z=dot(x,0)
|
|
332
|
+
# Vx=concat([[dot(x,mag),dot(x,mag)],[dot(y,mag),dot(y,mag)],[z + alim(1),z + alim(2)]])
|
|
333
|
+
# tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
|
|
334
|
+
# tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
|
|
335
|
+
# tmp3=concat([arange(1,nodes)]) + nodes
|
|
336
|
+
# nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
|
|
337
|
+
# Verts=size(Vx,2)
|
|
338
|
+
# Vx=dot(dot(phantObject[i].R.T,concat([[pars(4),0,0],[0,pars(5),0],[0,0,1]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
|
|
339
|
+
#if typ == 7:
|
|
340
|
+
# C=pars(13)
|
|
341
|
+
# A=pars(6)
|
|
342
|
+
# T=pars(15)
|
|
343
|
+
# theta=pars(14)
|
|
344
|
+
# delta=pars(5)
|
|
345
|
+
# k=pars(4)
|
|
346
|
+
# if C <= 0:
|
|
347
|
+
# error('Torus shape value must be > 0.')
|
|
348
|
+
# # st_ang=(pi/2-theta)*T;
|
|
349
|
+
# st_ang=pi / 4 + T - theta / 2
|
|
350
|
+
# en_ang=st_ang + theta
|
|
351
|
+
# deltas=dot(delta,cos(dot(2,concat([st_ang,en_ang]))))
|
|
352
|
+
# if sign1(sin(st_ang)) != sign1(sin(en_ang)):
|
|
353
|
+
# delta_max=copy(delta)
|
|
354
|
+
# else:
|
|
355
|
+
# delta_max=max(deltas)
|
|
356
|
+
# alphas=dot(2 / C ** 2,(1 + concat([deltas,delta_max]) / 2))
|
|
357
|
+
# s1=sqrt(alphas - k + sqrt(alphas ** 2 - dot(dot(2,alphas),k)))
|
|
358
|
+
# s2=sqrt(alphas - k - sqrt(alphas ** 2 - dot(dot(2,alphas),k)))
|
|
359
|
+
# rmax=((s1(3) - s2(3)) / 2 + sqrt(alphas(3) / 2)) / A
|
|
360
|
+
# r=(- (s1(3) - s2(3)) / 2 + sqrt(alphas(arange(1,2)) / 2)) / A / rmax
|
|
361
|
+
# s=(s1(3) - s2(3)) / 2 / A
|
|
362
|
+
# c=2
|
|
363
|
+
# shp=(s1(3) - s2(3)) / 2 / sqrt(alphas(3) / 2)
|
|
364
|
+
# Volume=dot(dot(theta,C ** 3),shp ** 2)
|
|
365
|
+
# nodes=max(round(dot(c,Volume ** (2 / 15))),3)
|
|
366
|
+
# ang=linspace(st_ang,en_ang,nodes)
|
|
367
|
+
# sc=dot(1 / cos(theta / 2 / (nodes - 1)),(rmax))
|
|
368
|
+
# x=dot(cos(ang),sc)
|
|
369
|
+
# y=dot(sin(ang),sc)
|
|
370
|
+
# z=dot(x,0)
|
|
371
|
+
# if min(r) <= 0.1:
|
|
372
|
+
# Vx=concat([[x,0,x,0],[y,0,y,0],[z - s,- s,z + s,s]])
|
|
373
|
+
# nodes=nodes + 1
|
|
374
|
+
# else:
|
|
375
|
+
# Vx=concat([[concat([x,dot(r(2),x(end())),dot(r(1),x(1)),x,dot(r(2),x(end())),dot(r(1),x(1))])],[concat([y,dot(r(2),y(end())),dot(r(1),y(1)),y,dot(r(2),y(end())),dot(r(1),y(1))])],[concat([z - s,- s,- s,z + s,s,s])]])
|
|
376
|
+
# nodes=nodes + 2
|
|
377
|
+
# tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
|
|
378
|
+
# tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
|
|
379
|
+
# tmp3=concat([arange(1,nodes)]) + nodes
|
|
380
|
+
# nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
|
|
381
|
+
# Verts=size(Vx,2)
|
|
382
|
+
# Vx=dot(phantObject[i].R.T,Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
|
|
383
|
+
|
|
384
|
+
if speedup:
|
|
385
|
+
for j in range(phantObject[i]['cp']):
|
|
386
|
+
Vx,nV=clip_polygon(Vx,nV,phantObject[i]['eta'][:,j],phantObject[i]['s'][j])
|
|
387
|
+
phantObject[i]['Vx'] = Vx
|
|
388
|
+
|
|
389
|
+
Vx_all = np.hstack([this['Vx'] for this in phantObject])
|
|
390
|
+
nm1 = [this['Vx'].shape[1] for this in phantObject]
|
|
391
|
+
|
|
392
|
+
cum = np.cumsum(nm1)
|
|
393
|
+
cum = np.concatenate(([0], cum))
|
|
394
|
+
|
|
395
|
+
clib = load_C_lib()
|
|
396
|
+
func = clib.set_bounding_info
|
|
397
|
+
func.argtypes = [c_int, ndpointer(c_int), ndpointer(c_double), c_int]
|
|
398
|
+
func.restype = None
|
|
399
|
+
cum = cum.astype(np.int32)
|
|
400
|
+
Vx_all = Vx_all.T.ravel()
|
|
401
|
+
|
|
402
|
+
func(numObjects, cum, Vx_all, cum[-1])
|
|
403
|
+
|
|
404
|
+
return phantObject, cum, Vx_all
|
|
405
|
+
|
|
406
|
+
#FIXME: not tested
|
|
407
|
+
def clip_polygon(vX=None,nV=None,clipVec=None,clipS=None):
|
|
408
|
+
"""
|
|
409
|
+
This function clips the bounding polyhedron with the clipping planes.
|
|
410
|
+
This helps to reduce the volume of the bounding polyhedron and thereby improves efficiency.
|
|
411
|
+
In some (rare) cases, this clipping is also necessary to prevent the source from being inside the polyhedron.
|
|
412
|
+
If the source is inside the bounding polyhedron, no horizon can be computed and the simulator will fail.
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
numVert = vX.shape[1]
|
|
416
|
+
newVerts = 0
|
|
417
|
+
thresh = 0.01
|
|
418
|
+
distOutside = clipVec.T*vX - clipS
|
|
419
|
+
if max(distOutside) > thresh:
|
|
420
|
+
outside = (distOutside > 0)
|
|
421
|
+
for i in range(1,numVert+1):
|
|
422
|
+
# This won't happen when we are at index 1 so we start with index 2.
|
|
423
|
+
numNeighbors = sum(np.logical_not(np.isinf(nV[i])))
|
|
424
|
+
for j in range(numNeighbors):
|
|
425
|
+
neighbor = nV[i,j]
|
|
426
|
+
if neighbor < i:
|
|
427
|
+
if outside[i] + outsize[neighbor] == 1:
|
|
428
|
+
newVerts += 1
|
|
429
|
+
wt = abs(distOutside(neighbor)) / (abs(distOutside(neighbor)) + abs(distOutside(i)))
|
|
430
|
+
vX = [vX, wt*vX[:,i] +(1 - wt)*vX[:, neighbor]]
|
|
431
|
+
if outside[i]:
|
|
432
|
+
ind = find(nV(neighbor,arange()) == i)
|
|
433
|
+
nV[neighbor,ind]=numVert + newVerts
|
|
434
|
+
nV[numVert + newVerts,arange()]=inf
|
|
435
|
+
nV[numVert + newVerts,1]=neighbor
|
|
436
|
+
else:
|
|
437
|
+
nV[i,j]=numVert + newVerts
|
|
438
|
+
nV[numVert + newVerts,arange()]=inf
|
|
439
|
+
nV[numVert + newVerts,1]=i
|
|
440
|
+
# Next, we connect the dots on the new vertices
|
|
441
|
+
# Find a point on the face
|
|
442
|
+
newFaceCenter=mean(vX(arange(),numVert + concat([arange(1,newVerts)])),2)
|
|
443
|
+
vec1=vX(arange(),numVert + 1) - newFaceCenter
|
|
444
|
+
vec1=vec1 / norm_cs(vec1)
|
|
445
|
+
vec2=cross(clipVec,vec1)
|
|
446
|
+
vec2=vec2 / norm_cs(vec2)
|
|
447
|
+
coords=dot(concat([[vec1.T],[vec2]]),(vX(arange(),numVert + concat([arange(1,newVerts)])) - dot(newFaceCenter,ones(1,newVerts))))
|
|
448
|
+
angles=atan2(coords(2,arange()),coords(1,arange()))
|
|
449
|
+
angles,order=sort(angles,nargout=2)
|
|
450
|
+
order=order + numVert
|
|
451
|
+
nV[order,2]=order(concat([arange(2,end()),1]))
|
|
452
|
+
nV[order,3]=order(concat([end(),arange(1,end() - 1)]))
|
|
453
|
+
outside[numVert + concat([arange(1,newVerts)])]=0
|
|
454
|
+
ind=find(outside == 0)
|
|
455
|
+
newIndex[ind]=concat([arange(1,length(ind))])
|
|
456
|
+
nV=nV(ind,arange())
|
|
457
|
+
vX=vX(arange(),ind)
|
|
458
|
+
ii=find(logical_not(isinf(nV)))
|
|
459
|
+
nV[ii]=newIndex(nV(ii))
|
|
460
|
+
if sum(nV == 0):
|
|
461
|
+
sys.exit('Unexpected.')
|
|
462
|
+
# show_poly_stereographic(vX,nV,newFaceCenter,cross(vec1,vec2)',[vec1 vec2'])
|
|
463
|
+
# FIXME : Need to eliminate any very small faces to prevent precision errors
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
return vX,nV
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
#def show_poly_stereographic(vX=None,nV=None,newfacecenter=None,newfacevector=None,orthogonalvecs=None,*args,**kwargs):
|
|
470
|
+
# varargin = show_poly_stereographic.varargin
|
|
471
|
+
# nargin = show_poly_stereographic.nargin
|
|
472
|
+
#
|
|
473
|
+
# focus=newfacecenter + dot(newfacevector,5)
|
|
474
|
+
# vX2=dot(concat([orthogonalvecs,newfacevector]).T,(vX - repmat(focus,concat([1,size(vX,2)]))))
|
|
475
|
+
# x=- vX2(1,arange()) / vX2(3,arange())
|
|
476
|
+
# y=- vX2(2,arange()) / vX2(3,arange())
|
|
477
|
+
# figure(1)
|
|
478
|
+
# hold('off')
|
|
479
|
+
# for i in arange(1,size(vX,2)).reshape(-1):
|
|
480
|
+
# text(x(i),y(i),sprintf('%d',i))
|
|
481
|
+
# hold('on')
|
|
482
|
+
# nb=nV(i,find(logical_not(isinf(nV(i,arange())))))
|
|
483
|
+
# for j in arange(1,length(nb)).reshape(-1):
|
|
484
|
+
# h=plot(x(concat([i,nb(j)])),y(concat([i,nb(j)])))
|
|
485
|
+
#
|
|
486
|
+
#
|
|
487
|
+
# return
|
|
488
|
+
|
|
489
|
+
def Phantom_Analytic_ConvertTori(phantObject=None,params=None,clip=None):
|
|
490
|
+
pi = 3.141592653589793
|
|
491
|
+
|
|
492
|
+
print('Converting tori in the ANALYTIC phantom.')
|
|
493
|
+
for i in range(params.shape[0]):
|
|
494
|
+
pars = params[i]
|
|
495
|
+
clp = clip[i]
|
|
496
|
+
if pars[10] == 3:
|
|
497
|
+
if clp.shape[0] == 2:
|
|
498
|
+
ax = phantObject[i]['R'][2].T
|
|
499
|
+
dot = clp[:,:3]*ax
|
|
500
|
+
center = pars[:3]
|
|
501
|
+
dot2 = clp[:,:3]*center - clp[:,3]
|
|
502
|
+
if max(abs(dot) + abs(dot2)) < 5e-05:
|
|
503
|
+
if np.std(pars[4:6]) == 0:
|
|
504
|
+
clip_ax_vec[:,1] = np.cross(ax,clp[1,:3]).T
|
|
505
|
+
clip_ax_vec[:,2] = np.cross(ax,clp[2,:3]).T
|
|
506
|
+
clip_ax_vec = phantObject[i]['R']*clip_ax_vec
|
|
507
|
+
ang = np.arctan2(clip_ax_vec[2], clip_ax_vec[1])
|
|
508
|
+
if (ang(2) - ang(1))%(2*pi) > pi:
|
|
509
|
+
ang[2] += pi
|
|
510
|
+
else:
|
|
511
|
+
ang[1] += pi
|
|
512
|
+
ang = [[ang[2]],[ang[1]]]
|
|
513
|
+
ang = ang%(2*pi)
|
|
514
|
+
l = (ang(2) - ang(1))%(2*pi)
|
|
515
|
+
relative_cent_ang = ang(1) + l / 2 - pi / 4
|
|
516
|
+
C = pars(6)
|
|
517
|
+
A = 1 / C ** 2
|
|
518
|
+
shp = pars(13)
|
|
519
|
+
pars[4] = A*(1 - shp ** 2)
|
|
520
|
+
pars[5] = 0
|
|
521
|
+
pars[6] = A
|
|
522
|
+
pars[13] = C
|
|
523
|
+
pars[14] = l
|
|
524
|
+
pars[15] = relative_cent_ang
|
|
525
|
+
pars[11] = 7
|
|
526
|
+
params[i] = pars
|
|
527
|
+
|
|
528
|
+
#
|
|
529
|
+
# Info on parameter storage:
|
|
530
|
+
# --------------------------
|
|
531
|
+
#
|
|
532
|
+
# vessel seg. par # original objects
|
|
533
|
+
# ------------------------------------------
|
|
534
|
+
# center 1:3 - object center
|
|
535
|
+
# k,d,A 4:6 - object half axes
|
|
536
|
+
# Euler angles 7:9 - Euler angles
|
|
537
|
+
# intensity 10 - intensity
|
|
538
|
+
# 7 11 - obj. type (1=ell,2=cyl,3=tor,4=cone,5=hyp1,6=hyp2,7=vessel seg.)
|
|
539
|
+
# trans 12 - transparency (vis)
|
|
540
|
+
# C 13 - torus shape
|
|
541
|
+
# l,T 14,15 - ax. lim.
|
|
542
|
+
# min OS 16 - minimum detector oversampling
|
|
543
|
+
#
|
|
544
|
+
# vessel definition
|
|
545
|
+
# -----------------
|
|
546
|
+
#
|
|
547
|
+
# start_point (x,y,z)
|
|
548
|
+
# start_direction (theta,phi)
|
|
549
|
+
# start_curvature_direction (gamma)
|
|
550
|
+
# start_radius (R)
|
|
551
|
+
#
|
|
552
|
+
# R_scaling_factor (vector [Num_segs]) default:1
|
|
553
|
+
# length (vector [Num_segs]) default:pi/4
|
|
554
|
+
# ellipticity (vector [Num_segs]) default:0
|
|
555
|
+
# curvature (vector [Num_segs]) default:20
|
|
556
|
+
# torsion (vector [Num_segs]) default:0
|
|
557
|
+
# tapering nature (rel_cent_ang) (vector [Num_segs]) default:0
|
|
558
|
+
#
|
|
559
|
+
#
|
|
560
|
+
# Program reads in and converts to:
|
|
561
|
+
#
|
|
562
|
+
# vessel seg store
|
|
563
|
+
# ----------------
|
|
564
|
+
#
|
|
565
|
+
# center point
|
|
566
|
+
# clipping planes (array[2 by 4])
|
|
567
|
+
# k
|
|
568
|
+
# ellipticity (d)
|
|
569
|
+
# A
|
|
570
|
+
# curvature (C)
|
|
571
|
+
# length (l) ( 0 < l < pi )
|
|
572
|
+
# tapering nature (T)
|
|
573
|
+
# Ql,Qr,R
|
|
574
|
+
#
|
|
575
|
+
# Also can convert circular torus segments to the above form if there are exactly two clipping planes and they
|
|
576
|
+
# both contain the major axis of the torus (C=radius of curvature;A=1/C^2; s=1-shape^2; k=A*s;d=0;T=0;)
|
|
577
|
+
|
|
578
|
+
return params
|
|
579
|
+
|
|
580
|
+
def parse_analytical_ppm(ppmPhantomFilename):
|
|
581
|
+
#NOTE: consider change obj to a class
|
|
582
|
+
obj = dict.fromkeys(['materialList', 'center', 'half_axes', 'euler_angs', 'density', 'type', 'material', 'axial_lims', 'shape', 'clip'])
|
|
583
|
+
with open(ppmPhantomFilename, 'r') as f:
|
|
584
|
+
all_lines = f.readlines()
|
|
585
|
+
|
|
586
|
+
key_indice = []
|
|
587
|
+
for line in all_lines:
|
|
588
|
+
if "materialList" in line:
|
|
589
|
+
material_list = line.strip().rstrip(";").split('=')[-1].lstrip('{').rstrip('}').split()
|
|
590
|
+
material_list = [tmp.strip().lstrip('{').rstrip('}').strip("'") for tmp in material_list]
|
|
591
|
+
obj['materialList'] = material_list
|
|
592
|
+
elif len(line) < 4: continue
|
|
593
|
+
else:
|
|
594
|
+
key_str, value_str = line.rstrip(";").split('=')
|
|
595
|
+
key_idx = int(''.join(filter(str.isdigit, key_str)))
|
|
596
|
+
key_indice.append(key_idx)
|
|
597
|
+
|
|
598
|
+
key_indice = set(key_indice)
|
|
599
|
+
for key in obj.keys():
|
|
600
|
+
if key != 'materialList': obj[key] = [[] for _ in range(len(key_indice))]
|
|
601
|
+
|
|
602
|
+
for line in all_lines:
|
|
603
|
+
if len(line) < 4: continue
|
|
604
|
+
elif "materialList" not in line:
|
|
605
|
+
key_str, value_str = line.rstrip(";").split('=')
|
|
606
|
+
key_word = key_str.split('.')[-1].split('(')[0].split('{')[0]
|
|
607
|
+
key_word = str(key_word)
|
|
608
|
+
key_idx = int(''.join(filter(str.isdigit, key_str)))
|
|
609
|
+
|
|
610
|
+
if '[' in value_str:
|
|
611
|
+
# extract substring in []
|
|
612
|
+
value_str = re.findall(r'\[([^]]*)\]', value_str)[0]
|
|
613
|
+
split_valstr = value_str.rstrip(';').split(';')
|
|
614
|
+
if len(split_valstr) == 1:
|
|
615
|
+
this_str = split_valstr[0].strip().rstrip(";").split(' ')
|
|
616
|
+
if len(this_str)==1 and this_str[0] == '':
|
|
617
|
+
value = []
|
|
618
|
+
else:
|
|
619
|
+
value = [eval(x) for x in this_str]
|
|
620
|
+
else:
|
|
621
|
+
value = []
|
|
622
|
+
for this_splvalstr in split_valstr:
|
|
623
|
+
_tmp = this_splvalstr.split(' ')
|
|
624
|
+
#breakpoint()
|
|
625
|
+
this_value = [eval(x) for x in _tmp]
|
|
626
|
+
value.append(this_value)
|
|
627
|
+
else:
|
|
628
|
+
this_str = value_str.strip().rstrip(";")
|
|
629
|
+
value = eval(this_str)
|
|
630
|
+
if 'clip' in key_word and len(value)>0 and len(np.array(value).shape)==1: value=[value]
|
|
631
|
+
|
|
632
|
+
obj[key_word][key_idx-1] = value
|
|
633
|
+
|
|
634
|
+
return obj
|
|
635
|
+
|
|
636
|
+
def Phantom_Analytic_SetObjects(objs=None, debug=False):
|
|
637
|
+
numObjects = objs['params'].shape[0]
|
|
638
|
+
print('Setting {} objects in the ANALYTIC phantom.'.format(numObjects))
|
|
639
|
+
phantObject = []
|
|
640
|
+
for i in range(numObjects):
|
|
641
|
+
tmp_dict = dict.fromkeys(('eta', 's', 'k', 'Q', 'xo', 'cp', 'matIndex', 'R'))
|
|
642
|
+
phantObject.append(tmp_dict)
|
|
643
|
+
|
|
644
|
+
pars = objs['params'][i]
|
|
645
|
+
cp = len(objs['clip'][i])
|
|
646
|
+
if cp > 0:
|
|
647
|
+
phantObject[i]['eta'] = objs['clip'][i][:,:3].T
|
|
648
|
+
phantObject[i]['s'] = objs['clip'][i][:,3].T
|
|
649
|
+
else:
|
|
650
|
+
#TODO: consider change to []
|
|
651
|
+
#phantObject[i]['eta'] = []
|
|
652
|
+
#phantObject[i]['s'] = []
|
|
653
|
+
phantObject[i]['eta'] = None
|
|
654
|
+
phantObject[i]['s'] = None
|
|
655
|
+
p1=pars[6]*np.pi / 180
|
|
656
|
+
p2=pars[7]*np.pi / 180
|
|
657
|
+
p3=pars[8]*np.pi / 180
|
|
658
|
+
R = np.array([[np.cos(p1)*np.cos(p3) - np.sin(p1)*np.cos(p2)*np.sin(p3), np.cos(p1)*np.sin(p3) + np.sin(p1)*np.cos(p2)*np.cos(p3), np.sin(p1)*np.sin(p2)],
|
|
659
|
+
[-np.sin(p1)*np.cos(p3) - np.cos(p1)*np.cos(p2)*np.sin(p3), -np.sin(p1)*np.sin(p3) + np.cos(p1)*np.cos(p2)*np.cos(p3), np.cos(p1)*np.sin(p2)],
|
|
660
|
+
[np.sin(p2)*np.sin(p3), - np.sin(p2)*np.cos(p3), np.cos(p2)]])
|
|
661
|
+
|
|
662
|
+
if (pars[10] != 3) and (pars[10] != 7):
|
|
663
|
+
if pars[10] == 1:
|
|
664
|
+
phantObject[i]['k'] = 1.
|
|
665
|
+
d=np.array(pars[3:6]) ** 2
|
|
666
|
+
elif pars[10] == 2:
|
|
667
|
+
phantObject[i]['k'] = 1.
|
|
668
|
+
d = np.concatenate((pars[3:5], [np.inf])) ** 2
|
|
669
|
+
|
|
670
|
+
if phantObject[i]['eta'] is None:
|
|
671
|
+
phantObject[i]['eta'] = np.vstack((R[2], -R[2])).T
|
|
672
|
+
else:
|
|
673
|
+
phantObject[i]['eta'] = np.hstack((phantObject[i]['eta'], R[2][:,None], -R[2][:,None]))
|
|
674
|
+
if phantObject[i]['s'] is None:
|
|
675
|
+
phantObject[i]['s'] = np.vstack((pars[5] + pars[:3]@R[2].T, pars[5] - pars[:3]@R[2].T))
|
|
676
|
+
else:
|
|
677
|
+
phantObject[i]['s'] = np.hstack((phantObject[i]['s'], pars[5] + pars[:3]@R[2].T, pars[5] - pars[:3]@R[2].T))
|
|
678
|
+
else:
|
|
679
|
+
print("Error! New materials, need to fix", pars[10])
|
|
680
|
+
sys.exit(1)
|
|
681
|
+
#elif pars(11) == 4:
|
|
682
|
+
# phantObject[i].k = copy(0)
|
|
683
|
+
# d=concat([pars(arange(4,5)) ** 2,- pars(6) ** 2])
|
|
684
|
+
# phantObject[i].eta = copy(concat([phantObject[i].eta,R(3,arange()).T,- R(3,arange()).T]))
|
|
685
|
+
# phantObject[i].s = copy(concat([phantObject[i].s,pars(15) + dot(pars(arange(1,3)),R(3,arange()).T),- pars(14) - dot(pars(arange(1,3)),R(3,arange()).T)]))
|
|
686
|
+
#elif pars(11) == 5:
|
|
687
|
+
# phantObject[i].k = copy(1)
|
|
688
|
+
# d=concat([pars(arange(4,5)) ** 2,- pars(6) ** 2])
|
|
689
|
+
# phantObject[i].eta = copy(concat([phantObject[i].eta,R(3,arange()).T,- R(3,arange()).T]))
|
|
690
|
+
# phantObject[i].s = copy(concat([phantObject[i].s,pars(15) + dot(pars(arange(1,3)),R(3,arange()).T),- pars(14) - dot(pars(arange(1,3)),R(3,arange()).T)]))
|
|
691
|
+
#elif pars(11) == 6:
|
|
692
|
+
# phantObject[i].k = copy(- 1)
|
|
693
|
+
# d=concat([pars(arange(4,5)) ** 2,- pars(6) ** 2])
|
|
694
|
+
# phantObject[i].eta = copy(concat([phantObject[i].eta,R(3,arange()).T,- R(3,arange()).T]))
|
|
695
|
+
# phantObject[i].s = copy(concat([phantObject[i].s,pars(15) + dot(pars(arange(1,3)),R(3,arange()).T),- pars(14) - dot(pars(arange(1,3)),R(3,arange()).T)]))
|
|
696
|
+
S = np.zeros((3,3), dtype=np.float64)
|
|
697
|
+
np.fill_diagonal(S, 1.0 / d) #in place ops
|
|
698
|
+
phantObject[i]['Q'] = R.T@S@R
|
|
699
|
+
elif pars[10] == 3:
|
|
700
|
+
Sl=np.zeros((3,3))
|
|
701
|
+
Sr=np.copy(Sl)
|
|
702
|
+
parst = pars[3:6]
|
|
703
|
+
np.fill_diagonal(S, 1.0 / parst**2)
|
|
704
|
+
Sr[0,0]=1.0 / parst[0] ** 2
|
|
705
|
+
Sr[1,1]=1.0 / parst[1] ** 2
|
|
706
|
+
phantObject[i]['Q'] = np.vstack((R.T*Sl*R, R.T*Sr*R))
|
|
707
|
+
phantObject[i]['k'] = 1. - pars[12] ** 2
|
|
708
|
+
#elif pars[11] == 7:
|
|
709
|
+
# # error('attempt to use incomplete code')
|
|
710
|
+
# C=pars(13)
|
|
711
|
+
# delta=pars(5)
|
|
712
|
+
# A=pars(6)
|
|
713
|
+
# k=pars(4)
|
|
714
|
+
# s=k / A
|
|
715
|
+
# shape=sqrt(1 - s)
|
|
716
|
+
# D_true=dot(1 / C ** 2,(1 + delta / 2))
|
|
717
|
+
# E_true=dot(1 / C ** 2,(1 - delta / 2))
|
|
718
|
+
# Sl=zeros(3)
|
|
719
|
+
# Sr=copy(Sl)
|
|
720
|
+
# Sl[concat([1,5,9])]=dot(concat([1,1,1]),A)
|
|
721
|
+
# Sr[concat([1,5])]=concat([D_true,E_true])
|
|
722
|
+
# phantObject[i].Q = copy(concat([dot(dot(R.T,Sl),R),dot(dot(R.T,Sr),R)]))
|
|
723
|
+
# phantObject[i].k = copy(s)
|
|
724
|
+
else:
|
|
725
|
+
sys.exit('Unknown object type.')
|
|
726
|
+
|
|
727
|
+
phantObject[i]['xo'] = pars[:3].T
|
|
728
|
+
if phantObject[i]['s'] is None:
|
|
729
|
+
phantObject[i]['cp'] = 0
|
|
730
|
+
else:
|
|
731
|
+
phantObject[i]['cp'] = len(phantObject[i]['s'])
|
|
732
|
+
phantObject[i]['typ'] = pars[10]
|
|
733
|
+
phantObject[i]['matIndex'] = pars[15]
|
|
734
|
+
phantObject[i]['R'] = R
|
|
735
|
+
|
|
736
|
+
# Write some of the data in phantObject to the memory of C
|
|
737
|
+
Q=[]
|
|
738
|
+
qt=np.zeros((3,6), dtype=np.float64)
|
|
739
|
+
Eta= np.hstack([x['eta'] for x in phantObject if x['eta'] is not None])
|
|
740
|
+
S = []
|
|
741
|
+
for x in phantObject:
|
|
742
|
+
if x['s'] is not None:
|
|
743
|
+
S += list(x['s'].ravel())
|
|
744
|
+
NumCP = []
|
|
745
|
+
for x in phantObject:
|
|
746
|
+
if x['s'] is not None:
|
|
747
|
+
NumCP.append(len(x['s']))
|
|
748
|
+
else:
|
|
749
|
+
NumCP.append(0)
|
|
750
|
+
K = np.hstack([x['k'] for x in phantObject if x['k'] is not None])
|
|
751
|
+
X = np.vstack([x['xo'] for x in phantObject if x['xo'] is not None])
|
|
752
|
+
C = np.hstack([x['cp'] for x in phantObject if x['cp'] is not None])
|
|
753
|
+
T = np.hstack([int(x['typ']) for x in phantObject if x['typ'] is not None])
|
|
754
|
+
D = np.hstack([x[9] for x in objs['params'] if x[9] is not None])
|
|
755
|
+
materialIndex = np.hstack([x['matIndex'] for x in phantObject if x['matIndex'] is not None])
|
|
756
|
+
for i in range(numObjects):
|
|
757
|
+
if phantObject[i]['Q'].shape[1] == 3:
|
|
758
|
+
Q.append(np.vstack((phantObject[i]['Q'], phantObject[i]['Q'])))
|
|
759
|
+
else:
|
|
760
|
+
Q.append(phantObject[i]['Q'])
|
|
761
|
+
|
|
762
|
+
Q = np.vstack(Q).T
|
|
763
|
+
|
|
764
|
+
materialCount = len(materialIndex)
|
|
765
|
+
cumCP = np.cumsum(NumCP)
|
|
766
|
+
cumCP= np.insert(cumCP, 0, 0)
|
|
767
|
+
if debug:
|
|
768
|
+
print("Q: sum={}, std={}\n".format(np.sum(Q), np.std(Q)))
|
|
769
|
+
breakpoint()
|
|
770
|
+
T = T.astype(np.int32)
|
|
771
|
+
S = np.array(S, dtype=np.float64)
|
|
772
|
+
X = X.T
|
|
773
|
+
cumCP = cumCP.astype(np.int32)
|
|
774
|
+
NumCP = np.array(NumCP).astype(np.int32)
|
|
775
|
+
materialIndex = materialIndex.astype(np.int32)
|
|
776
|
+
clib = load_C_lib()
|
|
777
|
+
func = clib.set_phantom_info
|
|
778
|
+
func.argtypes = [c_int, ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), c_int]
|
|
779
|
+
func.restype = None
|
|
780
|
+
func(numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D, cumCP[-1])
|
|
781
|
+
|
|
782
|
+
return phantObject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D
|
|
783
|
+
|
|
784
|
+
def read_object(lines, offset):
|
|
785
|
+
obj = {}
|
|
786
|
+
clip = []
|
|
787
|
+
obj['type'] = lines[1 + offset].strip().split()[1]
|
|
788
|
+
A = np.zeros((4, 4))
|
|
789
|
+
for i in range(4):
|
|
790
|
+
A[i, :] = [float(x) for x in lines[i + 5 + offset].strip().split()]
|
|
791
|
+
if np.linalg.norm(A[3, :] - np.array([0, 0, 0, 1])) > 1e-5:
|
|
792
|
+
raise ValueError('Unexpected transform')
|
|
793
|
+
|
|
794
|
+
obj['cent'] = A[0:3, 3]
|
|
795
|
+
B = A[0:3, 0:3]
|
|
796
|
+
obj['hax'] = np.sqrt(np.sum(B * B, axis=0))
|
|
797
|
+
B = B / obj['hax']
|
|
798
|
+
B = B.T
|
|
799
|
+
try:
|
|
800
|
+
obj['ea'] = euler_angs(B) * 180 / np.pi
|
|
801
|
+
except ValueError:
|
|
802
|
+
breakpoint()
|
|
803
|
+
|
|
804
|
+
obj['transform'] = A
|
|
805
|
+
tmp = lines[15 + offset].strip().split()[0]
|
|
806
|
+
if tmp[0] == 'C': # clipping planes
|
|
807
|
+
i = 0
|
|
808
|
+
while tmp[0] == 'C':
|
|
809
|
+
v = [float(x) for x in lines[15 + offset].strip().split(',')[1:]]
|
|
810
|
+
clip.append(v)
|
|
811
|
+
clip[i][3] = float(lines[16 + offset].strip().split()[1])
|
|
812
|
+
clip[i] = [-x for x in clip[i]]
|
|
813
|
+
offset += 3
|
|
814
|
+
tmp = lines[15 + offset].strip().split()[0]
|
|
815
|
+
i += 1
|
|
816
|
+
else:
|
|
817
|
+
clip = []
|
|
818
|
+
|
|
819
|
+
if obj['type'][:3] == 'Cyl':
|
|
820
|
+
obj['type'] = 2
|
|
821
|
+
obj['hax'][2] = obj['hax'][2] / 2 # length needs to be divided by two for half axis
|
|
822
|
+
else:
|
|
823
|
+
if obj['type'][:3] == 'Cub':
|
|
824
|
+
obj['type'] = 2 # change to cylinder
|
|
825
|
+
old = False
|
|
826
|
+
if old:
|
|
827
|
+
Bt = B
|
|
828
|
+
else:
|
|
829
|
+
Bt = B.T
|
|
830
|
+
clip.extend([np.concatenate((Bt[:, 0], [obj['hax'][0] / 2 + np.dot(obj['cent'], Bt[:, 0])])),
|
|
831
|
+
np.concatenate((-Bt[:, 0], [obj['hax'][0] / 2 - np.dot(obj['cent'], Bt[:, 0])])),
|
|
832
|
+
np.concatenate((Bt[:, 1], [obj['hax'][1] / 2 + np.dot(obj['cent'], Bt[:, 1])])),
|
|
833
|
+
np.concatenate((-Bt[:, 1], [obj['hax'][1] / 2 - np.dot(obj['cent'], Bt[:, 1])]))])
|
|
834
|
+
obj['hax'][0:2] = obj['hax'][0:2] * np.sqrt(2) # cyl needs to be larger by sqrt(2) to contain cube
|
|
835
|
+
obj['hax'] = obj['hax'] / 2 # (/2 changes from full width to half)
|
|
836
|
+
else:
|
|
837
|
+
if obj['type'][:3] == 'Sph':
|
|
838
|
+
obj['type'] = 1
|
|
839
|
+
else:
|
|
840
|
+
if obj['type'][:3] == 'Ell':
|
|
841
|
+
obj['type'] = 1
|
|
842
|
+
else:
|
|
843
|
+
raise ValueError('Unrecognized obj type')
|
|
844
|
+
|
|
845
|
+
obj['material'] = int(lines[18 + offset].strip().split()[1])
|
|
846
|
+
obj['density'] = float(lines[19 + offset].strip().split()[1])
|
|
847
|
+
offset += 21
|
|
848
|
+
|
|
849
|
+
return obj, np.array(clip), lines, offset
|
|
850
|
+
|
|
851
|
+
def euler_angs(R):
|
|
852
|
+
p2 = np.real(np.arccos(R[2, 2])) # could also be -arccos, but we don't care which it is since the end result (R matrix) is the same
|
|
853
|
+
if np.abs(np.sin(p2)) > 1e-6:
|
|
854
|
+
p1 = np.arctan2(R[0, 2] / np.sin(p2), R[1, 2] / np.sin(p2))
|
|
855
|
+
p3 = np.arctan2(R[2, 0] / np.sin(p2), -R[2, 1] / np.sin(p2))
|
|
856
|
+
elif np.sign(np.cos(p2)) > 0:
|
|
857
|
+
p2 = 0
|
|
858
|
+
p3 = 0
|
|
859
|
+
p1 = np.arctan2(R[0, 1], R[0, 0])
|
|
860
|
+
else:
|
|
861
|
+
p2 = np.pi
|
|
862
|
+
p3 = 0
|
|
863
|
+
p1 = np.arctan2(-R[0, 1], R[0, 0])
|
|
864
|
+
Rnew = np.array([[np.cos(p1) * np.cos(p3) - np.sin(p1) * np.cos(p2) * np.sin(p3),
|
|
865
|
+
np.cos(p1) * np.sin(p3) + np.sin(p1) * np.cos(p2) * np.cos(p3),
|
|
866
|
+
np.sin(p1) * np.sin(p2)],
|
|
867
|
+
[-np.sin(p1) * np.cos(p3) - np.cos(p1) * np.cos(p2) * np.sin(p3),
|
|
868
|
+
-np.sin(p1) * np.sin(p3) + np.cos(p1) * np.cos(p2) * np.cos(p3),
|
|
869
|
+
np.cos(p1) * np.sin(p2)],
|
|
870
|
+
[np.sin(p2) * np.sin(p3),
|
|
871
|
+
-np.sin(p2) * np.cos(p3),
|
|
872
|
+
np.cos(p2)]])
|
|
873
|
+
|
|
874
|
+
err = np.linalg.norm((Rnew - R).reshape(-1))
|
|
875
|
+
if err > 1e-5:
|
|
876
|
+
breakpoint()
|
|
877
|
+
raise ValueError('Error computing Euler angles')
|
|
878
|
+
return np.array([p1, p2, p3])
|
|
879
|
+
|
|
880
|
+
def Phantom_Polygonal_ReadPolygon(Verts):
|
|
881
|
+
|
|
882
|
+
ddir = my_path.find_dir("phantom", "poly_bin")
|
|
883
|
+
filename = 'poly{}'.format(Verts)
|
|
884
|
+
with open(os.path.join(ddir, filename),'rb') as fid:
|
|
885
|
+
data_array = np.fromfile(fid, dtype=np.int32, count=4)
|
|
886
|
+
nv_sz1, nv_sz2, vx_sz1, vx_sz2 = data_array
|
|
887
|
+
tmp = np.fromfile(fid, dtype=np.float64)
|
|
888
|
+
nV = tmp[:nv_sz1*nv_sz2].reshape(nv_sz2,nv_sz1).T
|
|
889
|
+
Vx = tmp[nv_sz1*nv_sz2:].reshape(vx_sz2,vx_sz1).T
|
|
890
|
+
|
|
891
|
+
return Vx,nV
|
|
892
|
+
|
|
893
|
+
def Phantom_Analytic_pp_to_ppm(PhantomFileBasename, ppmPhantomFilename, Scale=1):
|
|
894
|
+
|
|
895
|
+
if not PhantomFileBasename:
|
|
896
|
+
raise ValueError('PhantomFileBasename must be specified')
|
|
897
|
+
|
|
898
|
+
ppPhantomFilename = f'{PhantomFileBasename}.pp'
|
|
899
|
+
tmpPhantomFilename = f'{PhantomFileBasename}.tmp'
|
|
900
|
+
|
|
901
|
+
C_Phantom_Analytic_FORBILD_to_tmp(np.double(Scale), ppPhantomFilename, tmpPhantomFilename)
|
|
902
|
+
|
|
903
|
+
with open(tmpPhantomFilename, 'r') as f:
|
|
904
|
+
lns = f.readlines()
|
|
905
|
+
# Delete the temporary file
|
|
906
|
+
os.remove(tmpPhantomFilename)
|
|
907
|
+
|
|
908
|
+
with open(ppmPhantomFilename, 'w') as f:
|
|
909
|
+
ind = [i for i, line in enumerate(lns) if line.startswith('#')]
|
|
910
|
+
if len(ind) < 2:
|
|
911
|
+
raise ValueError('material table not found')
|
|
912
|
+
else:
|
|
913
|
+
f.write('materialList = {')
|
|
914
|
+
for i in range(ind[0] + 1, ind[1]):
|
|
915
|
+
mn = lns[i].strip().split()
|
|
916
|
+
f.write(f"'{mn[0]}' ")
|
|
917
|
+
f.write('};\n\n')
|
|
918
|
+
offset = ind[1]
|
|
919
|
+
|
|
920
|
+
i = 0
|
|
921
|
+
while offset < len(lns) - 15:
|
|
922
|
+
i += 1
|
|
923
|
+
tmpo, tmpc, lns, offset = read_object(lns, offset)
|
|
924
|
+
f.write(f'object.center({i},:) = [{tmpo["cent"][0]:.6f} {tmpo["cent"][1]:.6f} {tmpo["cent"][2]:.6f}];\n')
|
|
925
|
+
f.write(f'object.half_axes({i},:) = [{tmpo["hax"][0]:.6f} {tmpo["hax"][1]:.6f} {tmpo["hax"][2]:.6f}];\n')
|
|
926
|
+
f.write(f'object.euler_angs({i},:) = [{tmpo["ea"][0]:.6f} {tmpo["ea"][1]:.6f} {tmpo["ea"][2]:.6f}];\n')
|
|
927
|
+
f.write(f'object.density({i}) = {tmpo["density"]:.6f};\n')
|
|
928
|
+
f.write(f'object.type({i}) = {tmpo["type"]};\n')
|
|
929
|
+
f.write(f'object.material({i}) = {tmpo["material"]};\n')
|
|
930
|
+
f.write(f'object.axial_lims({i},:) = [0 0];\n')
|
|
931
|
+
f.write(f'object.shape({i}) = 0;\n')
|
|
932
|
+
f.write(f'object.clip{{{i}}} = [')
|
|
933
|
+
for j in range(tmpc.shape[0]):
|
|
934
|
+
f.write(f'{tmpc[j, 0]:.6f} {tmpc[j, 1]:.6f} {tmpc[j, 2]:.6f} {tmpc[j, 3]:.6f};')
|
|
935
|
+
f.write('];\n\n')
|
|
936
|
+
|