Skip to main content
. Author manuscript; available in PMC: 2015 Jan 6.
Published in final edited form as: Phys Med Biol. 2013 Dec 13;59(1):173–188. doi: 10.1088/0031-9155/59/1/173

Appendix A.

Pseudo code for mapping the dose from CTp to CT50 with the DDM algorithm:

1. create treatment plan with CT50;
2. copy the plan to CTp, which is DICOM-based registered with CT50, and recalculate the dose;
3. interpolate the dose from dose grid to image grid of CTp;
4. register CT p to CT50 with DIR and generate DVF (function of the DVF: for each image voxel in CT50, the corresponding transfer vector maps the voxel to CTp);
5. for each image voxel centered at r⃗ in CT50
 {
  // find corresponding point r⃗′ in CTp using the DVF.
r=T(r)=r+Δr;
  // determine the dose at r⃗′ in CTp by interpolation and assign it to CT50.
DCTpCT50(r)=DCTp(r+Δr);
 }
6. interpolate the dose in CT50 image grid to dose grid