matRad_calcInversDVH

Purpose ^

matRad inverse DVH (Dose Volume Histogram) calculation

Synopsis ^

function dose = matRad_calcInversDVH(volume,doseVec)

Description ^

 matRad inverse DVH (Dose Volume Histogram) calculation
 
 call
   dose = matRad_calcInversDVH(volume,doseVec)

 input
   volume:     rel volume of structure
   doseVec:    dose vector of specific structure

 output
   dose:       dose that corresponds to rel volume

 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.

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

Cross-reference information ^

This function calls: This function is called by:

Source code ^

0001 function dose = matRad_calcInversDVH(volume,doseVec)
0002 % matRad inverse DVH (Dose Volume Histogram) calculation
0003 %
0004 % call
0005 %   dose = matRad_calcInversDVH(volume,doseVec)
0006 %
0007 % input
0008 %   volume:     rel volume of structure
0009 %   doseVec:    dose vector of specific structure
0010 %
0011 % output
0012 %   dose:       dose that corresponds to rel volume
0013 %
0014 % References
0015 %   -
0016 %
0017 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 %
0019 % Copyright 2015 the matRad development team.
0020 %
0021 % This file is part of the matRad project. It is subject to the license
0022 % terms in the LICENSE file found in the top-level directory of this
0023 % distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part
0024 % of the matRad project, including this file, may be copied, modified,
0025 % propagated, or distributed except according to the terms contained in the
0026 % LICENSE file.
0027 %
0028 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0029 
0030 % sort dose values
0031 dosePoints = sort(doseVec,'descend');
0032 
0033 ix = max([1 ceil(volume*numel(dosePoints))]);
0034 
0035 dose = dosePoints(ix);
0036 
0037 end

| Generated by m2html © 2005