Skip to content

Empowering Radiotherapy with OncoSharp – A Modern C# Toolkit for Oncology

In the evolving world of radiation oncology, software plays a pivotal role in treatment planning, image analysis, and dosimetric evaluation. While many solutions are tightly integrated into vendor-specific systems or rely on legacy technologies, OncoSharp emerges as a refreshing, modern alternative. Built entirely in C#, OncoSharp is an open-source toolkit designed to streamline and empower the development of radiotherapy applications.

What is OncoSharp?
OncoSharp is a modular and extensible framework for handling DICOM RT data, dose-volume histograms (DVHs), treatment plans, structure sets, and more. It’s optimized for research, prototyping, and clinical support tools, with an emphasis on clarity, type safety, and modern .NET features.

Key Features:
🧠 Radiobiological Modeling (TCP/NTCP):
OncoSharp includes robust tools for modeling Tumor Control Probability (TCP) and Normal Tissue Complication Probability (NTCP) using maximum likelihood estimation. It supports models like Poisson TCP and Lyman-Kutcher-Burman NTCP, along with advanced features like adaptive profile likelihood confidence intervals and custom model injection for research use.

📊 DVH Analysis (Cumulative + Differential):
Easily parse Eclipse-generated CDVH and DDVH files, compute metrics like D95, V20, and mean dose, and perform statistical comparisons across cohorts or plans.

📦 Full DICOM RT Support: (in upcoming versions)
Load RTSTRUCT, RTDOSE, and CT series to construct a complete patient imaging context. OncoSharp allows spatial registration, dose resampling, and structure-volume extraction—ready for analysis or visualization.

📐 Type-Safe Quantity System:
Built-in support for units like DoseValue, VolumeValue, EQD2Value, EQD0Value and ProbabilityValue, all using a shared logic core that prevents unit mismatches and improves readability.

🚀 Optimization-Ready:
Plug in optimization engines like NLoptNet, Math.NET, CMA-ES, or your own algorithm to perform dose-response fitting, DVH optimization, or model calibration—fully integrated with OncoSharp’s quantity-aware system.

🧪 Research-Friendly & Modular:
Whether you’re developing custom bioeffect models or prototyping a new planning algorithm, OncoSharp is structured to let you plug in just the components you need.

Why C# for Oncology?
While Python and C++ dominate medical software, C# brings a unique combination of strong typing, performance, and developer productivity. With .NET 8 and beyond, you get native SIMD, excellent async support, and a rapidly growing scientific computing ecosystem.

OncoSharp isn’t just another DICOM parser—it’s a radiotherapy modeling platform built for the future. Whether you’re modeling TCP curves for a new protocol, analyzing NTCP risk across cohorts, or building a dose visualization tool, OncoSharp gives you the building blocks you need—with elegance, performance, and scientific rigor.

👉 Explore the project: https://github.com/isachpaz/OncoSharp

Published inDICOMNTCPRadiation oncologySoftwarestatistics