matRad_indicatorWrapper

Purpose ^

matRad indictor wrapper

Synopsis ^

function [dvh,qi] = matRad_indicatorWrapper(cst,pln,resultGUI,refGy,refVol,param)

Description ^

 matRad indictor wrapper
 
 call
   [dvh,qi] = matRad_indicatorWrapper(cst,pln,resultGUI,param)
   [dvh,qi] = matRad_indicatorWrapper(cst,pln,resultGUI,refGy,refVol,param)

 input
   cst:                  matRad cst struct
   pln:                  matRad pln struct
   resultGUI:            matRad resultGUI struct
   refGy: (optional)     array of dose values used for V_XGy calculation
                         default is [40 50 60]
   refVol:(optional)     array of volumes (0-100) used for D_X calculation
                         default is [2 5 95 98]
                         NOTE: Call either both or none!

 output
   dvh: matRad dvh result struct
   qi:  matRad quality indicator result struct
   graphical display of all results

 References
   -

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 Copyright 2017 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.

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Cross-reference information ^

This function calls: This function is called by:

Source code ^

0001 function [dvh,qi] = matRad_indicatorWrapper(cst,pln,resultGUI,refGy,refVol,param)
0002 % matRad indictor wrapper
0003 %
0004 % call
0005 %   [dvh,qi] = matRad_indicatorWrapper(cst,pln,resultGUI,param)
0006 %   [dvh,qi] = matRad_indicatorWrapper(cst,pln,resultGUI,refGy,refVol,param)
0007 %
0008 % input
0009 %   cst:                  matRad cst struct
0010 %   pln:                  matRad pln struct
0011 %   resultGUI:            matRad resultGUI struct
0012 %   refGy: (optional)     array of dose values used for V_XGy calculation
0013 %                         default is [40 50 60]
0014 %   refVol:(optional)     array of volumes (0-100) used for D_X calculation
0015 %                         default is [2 5 95 98]
0016 %                         NOTE: Call either both or none!
0017 %
0018 % output
0019 %   dvh: matRad dvh result struct
0020 %   qi:  matRad quality indicator result struct
0021 %   graphical display of all results
0022 %
0023 % References
0024 %   -
0025 %
0026 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0027 %
0028 % Copyright 2017 the matRad development team.
0029 %
0030 % This file is part of the matRad project. It is subject to the license
0031 % terms in the LICENSE file found in the top-level directory of this
0032 % distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part
0033 % of the matRad project, including this file, may be copied, modified,
0034 % propagated, or distributed except according to the terms contained in the
0035 % LICENSE file.
0036 %
0037 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0038 
0039 if isfield(resultGUI,'RBExDose')
0040     doseCube = resultGUI.RBExDose;
0041 else
0042     doseCube = resultGUI.physicalDose;
0043 end
0044 
0045 if ~exist('refVol', 'var') 
0046     refVol = [];
0047 end
0048 
0049 if ~exist('refGy', 'var')
0050     refGy = [];
0051 end
0052 
0053 dvh = matRad_calcDVH(cst,doseCube,'cum');
0054 qi  = matRad_calcQualityIndicators(cst,pln,doseCube,refGy,refVol);
0055 
0056 figure,set(gcf,'Color',[1 1 1]);
0057 subplot(2,1,1)
0058 matRad_showDVH(dvh,cst,pln);
0059 subplot(2,1,2)
0060 ixVoi = cellfun(@(c) c.Visible == 1,cst(:,5));
0061 qi = qi(ixVoi);
0062 matRad_showQualityIndicators(qi);
0063 
0064 
0065

| Generated by m2html © 2005