Skip to content

Commit

Permalink
register only the CT scan
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaapte committed Jan 3, 2019
1 parent 645a03f commit 1ccbdb2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CERR_core/Contouring/BABS/registerToAtlasMultipleScans.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function registerToAtlasMultipleScans(baseScanFile,movScanFileC,destnDir,...

% Get masks for the dental artifacts
baseMask3M = planC{indexS.scan}(1).scanArray < 3500;
%movMask3M = planD{indexSD.scan}(1).scanArray < 3500;
movMask3M = ~getUniformStr(7,planD); % hand delineated noise
movMask3M = planD{indexSD.scan}(1).scanArray < 3500;
%movMask3M = ~getUniformStr(7,planD); % hand delineated noise

% Create a starting registration transformation based on CT that will
% be used by all the image representations
Expand Down Expand Up @@ -85,7 +85,7 @@ function registerToAtlasMultipleScans(baseScanFile,movScanFileC,destnDir,...
% Register all image representations to each other starting from the
% transformation generated previously
numScans = length(planC{indexS.scan});
numScans = 3;
numScans = 1;
allStrNumV = 1:length(planD{indexSD.structures})-1; % -1 to omit the "noise" structure
assocScanV = getStructureAssociatedScan(allStrNumV,planD);

Expand All @@ -98,8 +98,8 @@ function registerToAtlasMultipleScans(baseScanFile,movScanFileC,destnDir,...
movScanNum = scanNum;
movStructNumsV = find(assocScanV == scanNum);
strCreationScanNum = scanNum;
%algorithm = 'BSPLINE PLASTIMATCH';
algorithm = 'DEMONS PLASTIMATCH';
algorithm = 'BSPLINE PLASTIMATCH';
%algorithm = 'DEMONS PLASTIMATCH';
%baseMask3M = [];
%movMask3M = [];
if scanNum == 1
Expand All @@ -118,7 +118,7 @@ function registerToAtlasMultipleScans(baseScanFile,movScanFileC,destnDir,...
algorithm, baseMask3M, movMask3M, threshold_bone, refinePlmCmdFile, ...
inBspFile, outBspFile);
tic;
while ~exist(outBspFile,'file')
while strcmpi(algorithm,'DEMONS PLASTIMATCH') && ~exist(outBspFile,'file')
pause(1)
if toc > 10
break;
Expand Down

0 comments on commit 1ccbdb2

Please sign in to comment.