Merging plans - cerr/CERR GitHub Wiki
Merging using the GUI
-
Select
File-->Merge Plans--> Click theBrowsebutton in the pop-up window to select the plan(.mat,.bz2) to be merged. -
The UI lists all components (scans, doses and structures) in the selected plan archive. Select/deselect desired components and click
Merge. -
To view the new (merged) scan, select it from the the
ScanMenu.
Merging programmatically
To merge part or all of planD into planC, use:
planC = loadPlanC('path\to\firstplan',tempdir);
planD = loadPlanC('path\to\secondplan',tempdir);
planC = planMerge(planC, planD, scanIndV, doseIndV, structIndV, mergefileName)
Example
planC = planMerge(planC, planD, 'all', [], [1,2,3], 'path\to\outputFileName');
-
If no other parameters beyond the two plans are provided, all doses, scans, structures, and uniformized data from
planDare added toplanC. -
If it exists, the scan numbers in
scanIndVfromplanDare merged intoplanC. IfscanIndV= [], no scans are merged. IfscanIndV='all', all scans are merged. -
If it exists, the dose numbers in
doseIndVfromplanDare merged intoplanC. IfdoseIndV= [], no doses are merged. IfdoseIndV= 'all', all doses are merged. -
If it exists, the dose numbers in
doseIndVfromplanDare merged intoplanC. IfdoseIndV= [], no doses are merged. IfdoseIndV='all' all doses are merged.