Skip to main content

Dual-Domain Differentiable Fourier Volume Rendering (Diff-FVR) for Real-Time Biplanar 3D–2D Spine Registration

CI Pages Live Cockpit License: MIT Python 3.10+

Author: Pareel Amre
Affiliation: Faculty of Computer Science, Technische Universität Dresden (TU Dresden), 01062 Dresden, Germany
Email: pareel.amre@gmail.com
Target Venue: IEEE Transactions on Medical Imaging / Medical Image Analysis


🔬 Scientific Overview

Intensity-based 3D–2D registration between pre-operative volumetric Computed Tomography (pCT) and intra-operative 2D fluoroscopy is essential for computer-assisted spine surgery (e.g. pedicle screw navigation). However, conventional ray-casting DRR synthesis scales cubically ($\mathcal{O}(N^3)$), requiring $> 1.0\text{ s}$ per projection on CPU.

Diff-FVR formulates Digitally Reconstructed Radiographs (DRRs) via the continuous Fourier Projection-Slice Theorem, reducing rendering complexity to $\mathcal{O}(N^2)$ frequency slice extraction:

$$ \mathcal{F}{2D}{\mathcal{P}[f(x,y,z)]} = \mathcal{S}{2D}{\mathcal{F}_{3D}[f(x,y,z)]} $$

  1. Mathematical Anti-Aliasing: Enforces $2\times$ spatial zero-padding bound ($Z_p = 2.0 \ge \sqrt{3}$) and $\text{sinc}^2$ spatial pre-multiplication to eliminate boundary wrap-around and peripheral roll-off.
  2. Exact 1:1 Scale Preservation: Implements full-bandwidth frequency slicing to preserve physical anatomical scale.
  3. Normalized Spectral Cross-Correlation (Spectral-NCC): Computes similarity directly in 2D Fourier space via Parseval's identity ($< 1.0\text{ ms}$ per pose) with zero inverse Fourier transforms inside the optimization loop.
  4. Articulated Multi-Vertebra Kinematics: Models inter-vertebral flexion (L3–L4–L5) on surgical tables using Fourier linearity: $$ \mathcal{F}\left{\sum_i I_i\right} = \sum_i S_i(\mathbf{k}, \mathbf{T}_i) $$
  5. Robustness to Physical Failure Limits: Automatic radio-opaque metal hardware saturation masking + Masked Spatial Loss (achieving $0.000\text{ mm}$ error under $30%$ occlusion) and isocenter geometric calibration ($1/\text{mag} = \text{SAD}/\text{SDD}$).

📊 Comprehensive Experimental Suite (23 Benchmarks)

Experiment Title Key Quantitative Finding
Exp 1 O(N²) vs O(N³) Asymptotic Complexity 11.5× to 72.5× speedup over spatial raycasting (1.38 ms DRR).
Exp 2 Rotational Invariance (72 Angles) PSNR = 23.96 dB, SSIM = 0.9329, NCC = 0.9943 ± 0.0007.
Exp 3 Zero-Padding & Sinc² Premultiplication 2× padding eliminates high-frequency wrap-around; roll-off removed.
Exp 4 Spectral-NCC 50-Trial Benchmark 0.84 mm mTRE (98.0% success < 2.0 mm) in 1.82 s (212× per-pose acceleration).
Exp 5 Energy Landscape & Capture Range Smooth, strictly convex basin over ±25° / ±25 mm displacement.
Exp 6 Biplanar vs. Monoplanar 6-DoF Depth error Δtx reduced from 3.59 mm down to 0.03 ± 0.04 mm.
Exp 7 Real Hospital Patient DICOM CT Series mTRE = 0.020 mm (Clean), 0.031 mm (Low-Dose); 100% success.
Exp 8 Capture Basin Sensitivity Bounds 100% success at ±5° / ±5 mm; 90% at ±16° / ±16 mm.
Exp 9 Cone-Beam Perspective Divergence Identified 1.4× magnification distortion; isocenter calibration cuts error by 89%.
Exp 10 Surgical Metal Hardware Occlusion Automatic saturation threshold + Masked Spatial Loss drops error from 49.15 mm to 0.000 mm.
Exp 11 Radiation Exposure Starvation Sweep Sub-0.05 mm mTRE maintained across 6 orders of magnitude (10⁶ down to 10³ ph/px).
Exp 12 Multi-Center Kaggle Lumbar CT Cohort mTRE = 1.341 mm (Clean), 1.351 mm (Low-Dose); 85.0% success.
Exp 13 Multi-Center AMOS Cohort (NCT Dresden) mTRE = 1.118 mm (Clean), 1.121 mm (Low-Dose); 90.0% success.
Exp 14 Resolved Failure Limits Verification Unit tests confirm 0.000 mm precision under 30% metal occlusion.
Exp 15 Articulated Multi-Vertebra Kinematics Hierarchical L3-L4-L5 model recovers base pose (0.767 mm) and in-vivo flexion (Δloss = −54.7%).
Exp 16 Unified Multi-Center CED Benchmark Standardized linear and logarithmic CED curves across all 3 independent cohorts.
Exp 17 Detector FOV Truncation & Clipping 2D Tukey cosine tapering preserves 0.75 mm mTRE up to 30% clipping.
Exp 18 Non-Orthogonal C-Arm Angulations Sub-millimeter (0.021–0.055 mm) down to Δϕ = 30° safe operating angle.
Exp 19 Polychromatic Beam Hardening & Soft Tissue High-Pass Spectral-NCC achieves 100% sub-mm (0.028–0.358 mm) across all tiers.
Exp 20 Intraoperative Respiratory Motion Blur Phase invariance preserves sub-millimeter tracking across 0–5 mm breathing smear.
Exp 21 Preoperative CT Anisotropic Slice Thickness Biplanar decoupling preserves sub-millimeter precision (0.0008 mm) on 5.0 mm trauma slices.
Exp 22 Dynamic Streaming Fluoroscopy Tracking Real-time video tracking across 60 frames with warm-start analytical gradients.
Exp 23 Joint Articulation + Metal Implants Base mTRE 0.776 mm, cuts residual loss by 48.2%, recovers in-vivo flexion angles.

🎮 Interactive Surgical Registration Cockpit

An interactive in-browser simulator demonstrating real-time 6-DoF biplanar registration, pedicle screw metal saturation, and physical breakdown regimes is live:

👉 Launch Interactive Cockpit


🚀 Installation & CLI Quick Start

# Install package in editable mode
pip install -e .

# 1. Synthesize a fast 2D DRR from 3D CT:
fvr-render --ct data/dicom --yaw 15.0 --pitch -5.0 --view ap --res 96 --out drr_ap.png

# 2. Run biplanar 6-DoF spine registration:
fvr-register --ct data/dicom --ap data/ap_xray.png --lat data/lat_xray.png --handle-metal --out pose_result.json

# 3. Run production integration test suite:
python tests/test_core_engine.py

📁 Repository Structure

fft-drr-project/
├── data/
│   ├── dicom/                 # Real clinical hospital patient CT DICOM series
│   ├── kaggle_lumbar/         # Multi-center Kaggle lumbar spine CT
│   └── amos/                  # AMOS multi-organ abdominal CT cohort (NCT Dresden)
├── docs/                      # GitHub Pages interactive surgical cockpit simulator
├── src/fvr/
│   ├── core_engine.py         # Production engine (calibration, metal masking, bounded search)
│   ├── diff_fvr.py            # Core Differentiable Fourier Volume Renderer
│   ├── articulated_spine.py   # Multi-body kinematic chain (L3-L4-L5)
│   ├── gradients.py           # Closed-form analytical Fourier phase & spectral gradients
│   ├── robust_registration.py # Masked spatial loss engine
│   └── dicom_loader.py        # DICOM series loader & Hounsfield-to-attenuation converter
├── experiments/               # Complete 23 benchmark experiment scripts
├── outputs/paper_figures/     # High-resolution 300 DPI publication figures & CSV tables
├── tests/                     # Verification and regression test suite
├── main.tex                   # IEEE Transactions on Medical Imaging manuscript
└── paper_manuscript.md        # Comprehensive audited research report

Metadata

Release files for diff-fvr 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diff-fvr 1.0.0
File Size Uploaded Provenance Actions
diff_fvr-1.0.0.tar.gz 26.5 kB With provenance Details for diff_fvr-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for diff-fvr 1.0.0
File Interpreter ABI Platform Actions
diff_fvr-1.0.0-py3-none-any.whl Python 3 none any Details for diff_fvr-1.0.0-py3-none-any.whl

Total release size: 57.0 kB

Release files / diff_fvr-1.0.0.tar.gz

Download URL diff_fvr-1.0.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b195ba1143f6e68d88d8a9522d81d1ff974647d6e4fe36fbfd6edf2b9bb4d16b
BLAKE2b-256 checksum
How to use checksums
9cec521373c7b1af0c5665c561dec24a0af2f3845f7195129334be26be5271b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / diff_fvr-1.0.0-py3-none-any.whl

Download URL diff_fvr-1.0.0-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cb4a8af4f1ca869ff7bf037040d1c512a89c9de98fe85ed0556d2646a4b83d0
BLAKE2b-256 checksum
How to use checksums
73bf3ecd0528e44391a1702808794b423f624adfe4a753a4f5ca36d577d17842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for diff-fvr 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for diff_fvr-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page