No description
Introduce a robust coordinate transformation system to manage the relationship between original CT space and rotated/standardized segmentation spaces. This includes a new directory hierarchy to separate unrotated crops from rotated outputs and utility functions for geometric mapping. Key changes: - Implement `imaging/transforms.py` to handle bounding box metadata, affine standardization, and coordinate mapping between spaces. - Restructure dataset output: unrotated segmentation files (binary, SDF, ROI, etc.) are now stored in a `<vol>/crop/` subdirectory to distinguish them from `<vol>/rotated/` aligned versions. - Add `level_file_path` utility to abstract file discovery across legacy (top-level) and new (crop-based) directory structures. - Enhance `seg_bone` to capture and export bounding box metadata (`bbox2`, `nn_bbox`, `bbox_orig`) into `transform.json`. - Implement `xfr_cbt_native.py` for mapping screw positions back to original CT space. - Update preprocessing and visualization scripts to support the new directory layout and transformation metadata. - Improve TinyDB metadata migration logic to prevent accidental corruption of existing database structures. |
||
|---|---|---|
| .kilo/agents | ||
| .vscode | ||
| config | ||
| core | ||
| imaging | ||
| references | ||
| results | ||
| utils | ||
| visualization | ||
| .gitignore | ||
| __init__.py | ||
| experiment.ipynb | ||
| optimization_benchmark_results_DE.csv | ||
| optimization_benchmark_results_NM.csv | ||
| optimization_benchmark_results_PSO.csv | ||
| progress.json | ||
| run_all_cases.py | ||
| run_benchmark.py | ||
| run_de.py | ||
| run_pso.py | ||
| structure.txt | ||
| xfr_cbt_native.py | ||
| xfr_check_spinous.py | ||
| xfr_debug.py | ||
| xfr_inverse_transform.py | ||
| xfr_migrate_crop.py | ||
| xfr_orig_labels.py | ||
| xfr_plot_level.py | ||
| xfr_preprocess.py | ||
| xfr_reprocess_ap.py | ||