A Means of Enforcing Image Alignment at Compile Time for Improved Safety when Processing Surgical or Radiotherapy Images

Motivation: Image flipping and mixing differently-oriented images can cause software crashes or patient adverse events in high-risk settings. Goal(s): To describe an architectural pattern for most static-typing compilers (e.g. C++, Iron Python, C#) that guarantees orientations match at compile time, even if orientations are not known until runtime. Approach: Statically defining image types by their intended orientation (e.g. Native CT Space) allows generic methods that only accept image pairs that, by definition, are aligned. Misuse is rejected during compilation. Results: We present a framework that guarantees processing steps and outputs are orientation-safe at compile time. Runtime checks are only needed for disk-reads and transforms. Impact: Preventing image-orientation errors at compilation time reduces risks in clinical environments, and accelerates software development. The proposed pattern is readily implementable across many programming languages, and our framework making this available to all .Net languages, including Python via Iron Python.

Authors

Publication Details

Journal
Proceedings on CD-ROM - International Society for Magnetic Resonance in Medicine. Scientific Meeting and Exhibition/Proceedings of the International Society for Magnetic Resonance in Medicine, Scientific Meeting and Exhibition
Published
2025-09-16
DOI
https://doi.org/10.58530/2025/0958
Primary Topic
Advanced Radiotherapy Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Means of Enforcing Image Alignment at Compile Time for Improved Safety when Processing Surgical or Radiotherapy Images

Doris D. Wang, Philip A. Starr, Melanie A. Morrison, Lee B. Reid et al.
Proceedings on CD-ROM - International Society for Magnetic Resonance in Medicine. Scientific Meeting and Exhibition/Proceedings of the International Society for Magnetic Resonance in Medicine, Scientific Meeting and Exhibition
Advanced Radiotherapy Techniques
article

A Means of Enforcing Image Alignment at Compile Time for Improved Safety when Processing Surgical or Radiotherapy Images

Doris D. Wang, Philip A. Starr, Melanie A. Morrison, Lee B. Reid, Andrew G. Lee
article en

Abstract

Motivation: Image flipping and mixing differently-oriented images can cause software crashes or patient adverse events in high-risk settings. Goal(s): To describe an architectural pattern for most static-typing compilers (e.g. C++, Iron Python, C#) that guarantees orientations match at compile time, even if orientations are not known until runtime. Approach: Statically defining image types by their intended orientation (e.g. Native CT Space) allows generic methods that only accept image pairs that, by definition, are aligned. Misuse is rejected during compilation. Results: We present a framework that guarantees processing steps and outputs are orientation-safe at compile time. Runtime checks are only needed for disk-reads and transforms. Impact: Preventing image-orientation errors at compilation time reduces risks in clinical environments, and accelerates software development. The proposed pattern is readily implementable across many programming languages, and our framework making this available to all .Net languages, including Python via Iron Python.

Proceedings on CD-ROM - International Society for Magnetic Resonance in Medicine. Scientific Meeting and Exhibition/Proceedings of the International Society for Magnetic Resonance in Medicine, Scientific Meeting and Exhibition
Openalex Percentile: Top 68%
Advanced Radiotherapy Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.