Load a DICOM series in step 1 to begin. To try it straight away, use the demo datasets shipped with the app (
demo-data/demo_frame_ct, demo-data/demo_mask_ct).AxialRLA
CoronalRLS
SagittalAPS
Selected trajectory
Frame settings
Navigation plan (mask coordinates)
Tolerance margins (95 %)
Entry-point map
Every candidate entry on a 2° grid. Darker blue = lower cost; grey-green = infeasible (hover to see why). Click a cell to inspect that trajectory.
lowest costhigher costviolates a constraintoutside angle limits① … ⑤ ranked alternatives
Ranked alternatives
| # | Arc ° | Ring ° | Depth mm | Incid. ° | Closest structure | Clear. mm | Cost |
|---|
Error budget at the target (share of 3-D variance)
Clearance along the track
Distance from the planned track to the nearest critical structure, by depth from the skin. The solid line must stay above the dashed required-clearance curve.
Distance to nearest structureRequired clearance (95 % lateral tube + buffer)Scalp + skull
Procedure sheet
Method
- DICOM import. CT/MR series (implicit/explicit VR, deflated, RLE, JPEG Lossless, baseline JPEG) are decoded on this computer and sorted along the slice normal into a volume; oblique orientations are handled through the full image-to-patient affine. RT Structure Set contours are rasterised on a 1 mm grid and turned into signed-distance maps (exact Euclidean distance transform), so clearance is measured to the true contoured surface.
- Frame registration. Rods are found per slice as small bright blobs outside the head, linked across slices into straight tracks, classified as vertical or diagonal, grouped into plates and identified (left/right/anterior). For each diagonal point, f = |P₁P₃|/|P₁P₂| gives its frame coordinate. A rigid least-squares fit (Horn) maps image → frame.
- Mask registration. Markers are found as compact 3-D blobs at the head surface and matched to the template by distance-invariant triplet search (any order, false positives rejected). Image → mask is a rigid fit. The error at the target combines bootstrap image-side error with the OR digitisation error, simulated on the same marker geometry. With only ~8 markers the target's position relative to the marker centroid matters, so Fitzpatrick's formula is reported too.
- Entry optimisation. For each direction on a 2° grid, the line from the target is traced outward through the inner table, outer table and skin (CT thresholds or the simulated anatomy). Hard limits: angles, skull base and face, skull incidence, midline, and depth-dependent clearance to the vessels, ventricles, eloquent cortex and brainstem. Cost = path length + soft clearance penalty + incidence penalty.
- Approval, export and audit. A planner re-enters their password to approve the exact plan (SHA-256 hash); any change voids the approval. Approved plans export as a DICOM RT Structure Set (target, entry, trajectory, 95 % tip region) and a PDF report. Every sign-in, case, registration, approval and export is written to a hash-chained audit trail.
- Navigation (mask). Tracked tools arrive over OpenIGTLink through a local bridge. Mask markers are digitised with the pointer (or imported as CSV) and registered to the template; the measured OR registration error feeds the tolerance model, and live guidance shows the tool's offset, angle and predicted miss at the target.
- Tolerance. A Monte Carlo propagates every error source to the tip and along the path. With an isocentric arc, angular errors pivot about the target and barely move the tip. With a burr-hole guide they pivot at the entry, so lateral tip error grows as depth × angle. Outputs: depth and lateral 95 % margins, 3-D R95, entry-point scatter, P(tip in target) and P(track contacts a vessel).