No description
Find a file
Xiao Furen 523ec7ee16 feat(core): implement vertebral body rewards and enhanced segmentation logic
Introduces a new scoring component for vertebral body (VBODY) rewards
to improve optimization accuracy. The update includes:

- Added `vbody_tensor` to `OptimizationContext` and scoring functions
  to reward screw placement within the vertebral body.
- Enhanced `segment_spinous_process` with diagnostic capabilities to
  detect spinous process absence (e.g., post-laminectomy).
- Improved `resample_img` to prevent physical boundary clipping and
  handle interpolation more robustly for CT and label data.
- Implemented a metadata cache using TinyDB in the preprocessing
  pipeline to skip low-resolution or insufficient scans efficiently.
- Added robust error handling for NFS-based file operations and
  directory creation.
- Added new visualization tools for bone figures and level plotting.

refactor(imaging): improve segmentation and resampling precision

- Refactored `seg_bone` to support original resolution binary masks and
  Signed Maurer Distance Maps (SMD) for more accurate boundary handling.
- Updated `resample_img` to use `ceil` for output size calculation to
  ensure full physical coverage.
- Optimized `process_single_image` to utilize metadata for skipping
  processing of invalid or low-quality scans.
2026-09-05 04:30:10 +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(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
core feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +08:00
imaging feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +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 first commit 2026-04-10 13:25:27 +08:00
visualization feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +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 feat(core): implement vertebral body rewards and enhanced segmentation logic 2026-09-05 04:30:10 +08:00