down/up sampling the radiological depth dose cubes call radDepthVcoarse = matRad_interpRadDepth(ct,ctScenNum,V,Vcoarse,vXgrid,vYgrid,vZgrid,radDepthV) input ct: matRad ct structure ctScenNum: selcted CT scenario V: linear voxel indices of the cst Vcoarse: linear voxel indices of the down sampled grid resolution vXgrid: query points of now location in x dimension vYgrid: query points of now location in y dimension vZgrid: query points of now location in z dimension radDepthV: radiological depth of radDepthIx output radDepthVcoarse: interpolated radiological depth of radDepthIx References - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright 2018 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. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function radDepthVcoarse = matRad_interpRadDepth(ct,ctScenNum,V,Vcoarse,vXgrid,vYgrid,vZgrid,radDepthV) 0002 % down/up sampling the radiological depth dose cubes 0003 % 0004 % call 0005 % radDepthVcoarse = matRad_interpRadDepth(ct,ctScenNum,V,Vcoarse,vXgrid,vYgrid,vZgrid,radDepthV) 0006 % 0007 % input 0008 % ct: matRad ct structure 0009 % ctScenNum: selcted CT scenario 0010 % V: linear voxel indices of the cst 0011 % Vcoarse: linear voxel indices of the down sampled grid resolution 0012 % vXgrid: query points of now location in x dimension 0013 % vYgrid: query points of now location in y dimension 0014 % vZgrid: query points of now location in z dimension 0015 % radDepthV: radiological depth of radDepthIx 0016 % 0017 % output 0018 % radDepthVcoarse: interpolated radiological depth of radDepthIx 0019 % 0020 % References 0021 % - 0022 % 0023 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0024 % 0025 % Copyright 2018 the matRad development team. 0026 % 0027 % This file is part of the matRad project. It is subject to the license 0028 % terms in the LICENSE file found in the top-level directory of this 0029 % distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part 0030 % of the matRad project, including this file, may be copied, modified, 0031 % propagated, or distributed except according to the terms contained in the 0032 % LICENSE file. 0033 % 0034 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0035 0036 radDepthCube = NaN*ones(ct.cubeDim); 0037 radDepthCube(V(~isnan(radDepthV{1}))) = radDepthV{ctScenNum}(~isnan(radDepthV{1})); 0038 0039 % interpolate cube - cube is now stored in Y X Z 0040 coarseRadDepthCube = matRad_interp3(ct.x,ct.y',ct.z,radDepthCube,vXgrid,vYgrid',vZgrid); 0041 radDepthVcoarse{ctScenNum} = coarseRadDepthCube(Vcoarse); 0042 0043 end 0044