TPS-Independent DICOM MLC Complexity Analyzer (Python Script)
Unlock plan-complexity insights directly from DICOM RTPLAN — no TPS required.
This Python-based tool analyzes MLC geometry and modulation behavior to help you identify delivery-challenging segments before QA. Works with plans from any TPS including RayStation, Eclipse, Monaco, and more.
✅ What It Detects
• Extremely narrow MLC segments
• Long, thin apertures
• Excessive leaf travel / dynamic motion
• High modulation factor (MU inefficiency)
✅ Metrics Computed
✔ Segment Area
✔ Average Leaf Opening Width
✔ Leaf Travel per Leaf Pair
✔ Modulation Factor (MU / cGy)
✅ Why It Matters
Small/complex segments are strongly associated with:
• QA failures
• Dose-calculation uncertainty
• Mechanical delivery issues
This script enables early detection so you can proactively flag risky beams before they reach the linac.
✅ Key Features
• Pure DICOM-based — TPS-independent
• Easy Python implementation (pydicom)
• Clear printed warnings with thresholds
• Works on single or multiple beams
• Adjustable limits for clinical preference
✅ Output Includes
• Per-segment area + average opening
• Cumulative leaf travel metrics
• Beam-level modulation factor
• Summary table of flagged segments
📦 What You Get
• Python script (.py)
Perfect for:
• Clinical physicists
• QA teams
• TPS-independent automation workflows
• DICOM-based research tools
Streamline your plan-assessment workflow and anticipate QA issues before they happen.