I wanted to calculate gamma-3d index for RT dose file ( the output of Treatment planing system) and 3ddose file( the output of dosxyznrc monte carlo code). for this purpose I added the above files to the CERR software and run the gamma-3d function.but when CERR tried to sum these two function for calculating gamma index وin the command window the following errors appeared
"Index exceeds matrix dimensions.
Error in finterp3 (line 135)
interpV = double(field3M(INDEXLIST)) .*
oneMinusRowMod .* oneMinusColMod .*
oneMinusSlcMod;
Error in slice3DVol (line 161)
slc = finterp3(xM(:), yM(:), zM(:),
data3M(maxY:minY, minX:maxX, minZ:maxZ),
xVec, fliplr(yVec), zVec, 0);
Error in prepareDosesForGamma (line 106)
doseTmp = slice3DVol(dA, xV, yV, zV,
newZgrid(slcNum), 3, 'linear',
inputTM, [], newXgrid, newYgrid);
Error in createGammaDose (line 19)
[newXgrid, newYgrid, newZgrid, doseArray1,
doseArray2] =
prepareDosesForGamma(doseNum1,doseNum2,1, planC);
Error in CERRGammafnc (line 211)
createGammaDose(baseDose,refDose,doseDiffIN,DTA,threshold);
Error while evaluating UIControl Callback"
how do I correct these errors?
please help me
thanks in advance to your attention or maybe your help.