No description
Find a file
Xiao Furen 2ae08ac2cd refactor(imaging): improve orientation detection and segmentation robustness
Refactor the preprocessing and segmentation pipeline to handle AP orientation
variations and improve anatomical boundary detection.

Key changes include:
- Implement automated AP orientation detection in `process_single_image`
  to handle prone scans by flipping CT and labels when necessary.
- Enhance `segment_spinous_process` using a gap-based approach to identify
  the spinal canal, providing more stable thresholds for spinous process
  and vertebral body segmentation.
- Improve optimization search space by using the vertebral body (VBODY)
  projection for x/z bounding box calculation instead of the whole bone.
- Refactor `render_bone_figure` to unify 2D/3D visualization and support
  detailed anatomical coloring (VBODY, spinous process).
- Update `cl_score_torch_xfr` with more robust penalty handling for
  out-of-bone and null-voxel regions.
- Add `retry_robust` utility to handle transient NFS file system errors.
- Update `xfr_preprocess.py` to include anatomical segmentation coloring
  in rotated level visualizations.
2026-09-07 18:46:06 +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 refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +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 refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +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_check_spinous.py feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +08:00
xfr_debug.py feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +08:00
xfr_plot_level.py feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +08:00
xfr_preprocess.py refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +08:00
xfr_reprocess_ap.py refactor(imaging): improve orientation detection and segmentation robustness 2026-09-07 18:46:06 +08:00