Skip to content

Commit

Permalink
fix in photon dose calculation to consider quadratic field shape in e…
Browse files Browse the repository at this point in the history
…ffictive cutoff computation (and some comment spelling errors fixed)
  • Loading branch information
wahln committed Feb 21, 2021
1 parent 6fad1b8 commit 9dc5973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matRad_calcPhotonDose.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
intConvResolution: ...
(kernelLimit-1)*intConvResolution);

% precalculate convoluted kernel size and distances
% precalculate convolved kernel size and distances
kernelConvLimit = fieldLimit + gaussLimit + kernelLimit;
[convMx_X, convMx_Z] = meshgrid(-kernelConvLimit*intConvResolution: ...
intConvResolution: ...
Expand All @@ -134,7 +134,7 @@

% define an effective lateral cutoff where dose will be calculated. note
% that storage within the influence matrix may be subject to sampling
effectiveLateralCutoff = lateralCutoff + fieldWidth/2;
effectiveLateralCutoff = lateralCutoff + fieldWidth/sqrt(2);

counter = 0;
matRad_cfg.dispInfo('matRad: Photon dose calculation...\n');
Expand Down Expand Up @@ -206,7 +206,7 @@
% apply the primary fluence to the field
Fx = F .* Psi;

% convolute with the gaussian
% convolve with the gaussian
Fx = real( ifft2(fft2(Fx,gaussConvSize,gaussConvSize).* fft2(gaussFilter,gaussConvSize,gaussConvSize)) );

% 2D convolution of Fluence and Kernels in fourier domain
Expand Down

0 comments on commit 9dc5973

Please sign in to comment.