forked from markbangert/matRad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matRad_calcLQParameter.m
47 lines (41 loc) · 1.67 KB
/
matRad_calcLQParameter.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function [vAlpha, vBeta] = matRad_calcLQParameter(vRadDepths,mTissueClass,baseData)
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% matRad inverse planning wrapper function
%
% call
% [vAlpha, vBeta] = matRad_calcLQParameter(vRadDepths,mTissueClass,baseData)
%
% input
% vRadDepths: radiological depths of voxels
% mTissueClass: tissue classes of voxels
% baseData: biological base data
%
% output
% vAlpha: alpha values for voxels interpolated from base data
% vBeta: beta values for voxels interpolated from base data
%
% References
% -
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright 2015 the matRad development team.
%
% This file is part of the matRad project. It is subject to the license
% terms in the LICENSE file found in the top-level directory of this
% distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part
% of the matRad project, including this file, may be copied, modified,
% propagated, or distributed except according to the terms contained in the
% LICENSE file.
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
vAlpha = NaN*ones(numel(vRadDepths),1);
vBeta = NaN*ones(numel(vRadDepths),1);
numOfTissueClass = size(baseData(1).alpha,2);
% range shift
depths = baseData.depths + baseData.offset;
for i = 1:numOfTissueClass
vAlpha(mTissueClass==i) = matRad_interp1(depths,baseData.alpha(:,i),vRadDepths(mTissueClass==i));
vBeta(mTissueClass==i) = matRad_interp1(depths,baseData.beta(:,i), vRadDepths(mTissueClass==i));
end