Skip to content

Commit

Permalink
Merge pull request e0404#599 from JenHardt/dev
Browse files Browse the repository at this point in the history
BUG: ssd calculation should use actual ray distance instead of SAD
  • Loading branch information
wahln authored Feb 24, 2023
2 parents 27ad9ff + aab03e9 commit 2ff9f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matRad_computeSSD.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
for i = 1:size(stf,2)
SSD = cell(1,stf(i).numOfRays);
for j = 1:stf(i).numOfRays
[alpha,~,rho,~,~] = matRad_siddonRayTracer(stf(i).isoCenter, ...
[alpha,~,rho,d12,~] = matRad_siddonRayTracer(stf(i).isoCenter, ...
ct.resolution, ...
stf(i).sourcePoint, ...
stf(i).ray(j).targetPoint, ...
Expand All @@ -65,7 +65,7 @@
end

% calculate SSD
SSD{j} = double(2 * stf(i).SAD * alpha(ixSSD));
SSD{j} = double(d12* alpha(ixSSD));
stf(i).ray(j).SSD = SSD{j};
end

Expand Down

0 comments on commit 2ff9f09

Please sign in to comment.