NLP_getFullDose.m 478 B

123456789101112131415161718
  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 '\beamlet_batch_files\beamletbatch0.bin'],'ryan sum', NLP_result.weights);
  7. % orthoslice(D-NLP_result.dose, [0,90])
  8. NLP_result.dose = double(D);
  9. % NLP_result.weights = double(optResults.weights{end});
  10. save([NLP_path, NLP_file], 'NLP_result');
  11. end