No description
Find a file
Xiao Furen d167c1f7c7 feat(imaging): implement coordinate transformation pipeline and directory restructuring
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.
2026-09-09 13:39:47 +08:00
.kilo/agents refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
.vscode refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
config refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +08:00
core refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +08:00
imaging feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
references refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
results first commit 2026-04-10 13:25:27 +08:00
utils refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +08:00
visualization feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
.gitignore feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +08:00
__init__.py first commit 2026-04-10 13:25:27 +08:00
experiment.ipynb first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_DE.csv first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_NM.csv first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_PSO.csv first commit 2026-04-10 13:25:27 +08:00
progress.json refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
run_all_cases.py first commit 2026-04-10 13:25:27 +08:00
run_benchmark.py first commit 2026-04-10 13:25:27 +08:00
run_de.py first commit 2026-04-10 13:25:27 +08:00
run_pso.py first commit 2026-04-10 13:25:27 +08:00
structure.txt first commit 2026-04-10 13:25:27 +08:00
xfr_cbt_native.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_check_spinous.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_debug.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_inverse_transform.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_migrate_crop.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_orig_labels.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_plot_level.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_preprocess.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00
xfr_reprocess_ap.py feat(imaging): implement coordinate transformation pipeline and directory restructuring 2026-09-09 13:39:47 +08:00