An application for visualising and aligning contours in kV projections.
For the LEARN trial Patient Selection Tool see this README.
The Contour Alignment Tool is a MATLAB-based application designed for aligning 3D structure contours with 2D kilovoltage projections.
- Load projections along with CT, structure set, and treatment plan files.
- Visualise and manually align 2D contours generated from 3D structures.
- Export aligned contours as binary masks for machine learning applications.
- Supports a wide range of 2D projection formats.
- OS: Windows
- MATLAB Runtime: Version 23.2
Download Runtime
About MATLAB Runtime
- Download the latest release:
ContourAlignmentTool v1.3.7 - Extract contents to a local directory.
Required data types:
- CT DICOMs
- Structure DICOM
- Plan DICOM
- Kilovoltage images (
.tiff,.xim,.hnd,.hnc,.his,.dcm)
Sample data is available from the SPARK Database.
-
Launch the application by running the
ContourAlignmentTool.exe.⏳ It may take several minutes to load depending on the system.
-
Load data via:
- Individual Browse: Manually select CT, plan, structure, and image files.
- Clinical Data Browse: Load entire patient datasets. For ROCK-RT data, choose YourHospital/liver for automatically patients load. (As Below)
-
Set parameters:
- Number of projections
- Pixel spacing
- SID, SDD, detector offset (if not found in headers)
-
Select the Structure of Interest from the dropdown.
-
Click Proceed to begin processing (execution time varies).
Validate projections using the DRR Viewer under the
Displaymenu.
- Use on-screen navigation buttons or arrow keys to switch projections.
- Click any projection from the list to jump to it.
- Use:
- Arrow keys / UI buttons
- Mouse drag
- Reset with the center reset button.
- Mark each projection's alignment confidence for tracking.
Located under the Display menu:
- DRR Viewer: Shows full DRR view with true contour locations.
- Contour Fill: Switch between filled or border display.
- Contour Colour: Set custom contour colours.
- Invert Intensity: Toggle image intensity inversion.
- Use sliders to manually adjust contrast.
- Additional tools for:
- Auto adjust
- ROI-based adjust
- Contour-based adjust
- Navigate to
File→ExportorExport As...:- Export: Saves to the default or previously set directory.
- Export As...: Choose a new export location.
Outputs are binary PNG masks aligned with each projection.
To modify or build the tool, use MATLAB App Designer.
Project files:
ContourAlignmentTool.mlapp— main application file.ContourAlignmentTool.prj— packaging project config.
/ContourAlignmentTool_resources— application graphics/Dependencies— core processing modules/Supporting Apps— additional GUI components
Geometry simulation and projection rendering powered by the
Reconstruction Toolkit (RTK).
Adam Mylonas
Email: adam.mylonas@sydney.edu.au
Image X Institute, The University of Sydney
Faculty of Medicine and Health


