NLP_getFullDose.m 580 B

12345678910111213141516171819
  1. function NLP_getFullDose(NLP_path, NLP_file)
  2. % this function calculates full dose matrix for Robust optimized plans
  3. % get the NLP result
  4. load([NLP_path '\' NLP_file]);
  5. path2 = NLP_path(1:end-14);
  6. D = read_ryan_beamlets([path2 '\batch_dose.bin'],'ryan sum', NLP_result.weights);
  7. % D = read_ryan_beamlets([path2 '\beamlet_batch_files\beamletbatch0.bin'],'ryan sum', NLP_result.weights);
  8. % orthoslice(D-NLP_result.dose, [0,90])
  9. NLP_result.dose = double(D);
  10. % NLP_result.weights = double(optResults.weights{end});
  11. save([NLP_path, NLP_file], 'NLP_result');
  12. end