Closed 44REAM closed 4 years ago
The "matRad_CalcDoseDirect" function uses the field/collimator shapes that were imported in the dicomImport / are present in the stf (try, for example, figure; imagesc(stf(1).ray.shape)
. The shape will have some weighting which is used for the (direct) dose calculation. So if there is a single shape per beam you would have a "3D conformal" setting, but there could also be multiple shapes per beam (for an IMRT setting).
The dose can certainly be different in magnitude & shape, since (1) the "Generic" machine in matRad will be different to yours, (2) and we also do not perform an exact dose calibration with monitor units or similar automatically, and (3) we do a SVD pencil-beam dose calculation in matRad, which might differ from the dose calculation algorithm used for your reference dose.
Thank you @wahln
I have some question
My plan have single ray per beam, so my plan can call "3D conformal" (in that ray have shape 386*386).
My understand that the algorithm in matrad differ my mine, but the dose is way to low, for example real dose is 20 and dose in matrad is only 5. Is the dose show in matrad is only dose per fraction?
If it the dose per fraction, what parameter should I change to get the total dose (for example change pln.numberOfFractions to 1 and increase the dose by some parameter)
If beam have same direction and same MCL shape, the input dose of 2Gy 10 fraction and 1Gy 20 fraction will result the same dose? (I read in example file and it tell that number of fraction is consider for optimization but matRad_calcDoseDirect did not do optimization, so it should be the same?)
Please correct me if I wrong. Thank you.
Edit 1
I found the dose information in pln.propStf.collimation.beamMeterset, is this correct ?
Ah, sorry, I somehow forgot to answer:
resultGUI.physicalDose = scale * resultGUI.physicalDose
resultGUI.physicalDoseTotal = pln.numberOfFractions * resultGUI.physicalDose
or something like that
I have RTPlan, CT, Struct, RDose. I import them by using MatradGUI and save in .mat Then I import .mat file to calculate dose using matRad_calcDoseDirect. The code run perfectly, the contour of dose seem like the original one, although the dose is much lower. My code is show below
My question is, is this can be call 3D conformal? I look at matRad_calcDoseDirect, it dose not seem to call the optimization function. Is this mean it did not modulate the intensity of dose so can my code call "3D conformal"?
File can e download at
https://drive.google.com/file/d/1gKFBwPPeuSWdxKemldAOr1CtIt9jbEKs/view?usp=sharing
Thank you