Permalink
Browse files

copied structure from PC scan to the original CT and deleted the PC.

  • Loading branch information...
adityaapte committed Aug 28, 2018
1 parent 746f8e4 commit 5fed85425aa7e67635664af42858ac3936b1e1b7
Showing with 5 additions and 1 deletion.
  1. +5 −1 CERR_core/Contouring/BABS/exportCERRtoDICOM.m
@@ -19,13 +19,17 @@ function exportCERRtoDICOM(cerrPath,registeredDirLoc,outputCERRPath,outputDicomP
planC = loadPlanC(origFileName);
planD = loadPlanC(segFileName);
indexSD = planD{end};
scanIndV = [];
scanIndV = 1;
doseIndV = [];
numStr = length(planD{indexSD.structures});
structIndV = [numStr-1 numStr];
planC = planMerge(planC, planD, scanIndV, doseIndV, structIndV, '');
indexS = planC{end};
numStr = length(planC{indexS.structures});
planC = copyStrToScan(numStr-1,1,planC);
planC = copyStrToScan(numStr,1,planC);
planC = deleteScan(planC, 2);
numStr = length(planC{indexS.structures});
for structNum = numStr-2:-1:1
planC = deleteStructure(planC, structNum);
end

0 comments on commit 5fed854

Please sign in to comment.