1
0

get_full_dose.m 678 B

123456789101112131415
  1. function get_full_dose(path_in)
  2. % path_in='C:\010-work\003_localGit\WiscPlan_v2\WiscPlanPhotonkV125\PatientData';
  3. optResultsFile = [path_in, '\matlab_files\optResults.mat'];
  4. load(optResultsFile);
  5. D = read_ryan_beamlets([path_in '\beamlet_batch_files\beamletbatch0.bin'],'ryan sum', optResults.weights{end});
  6. optResults.batchNames{end+1} = optResults.batchNames{end};
  7. optResults.dose{end+1} = D;
  8. optResults.weights{end+1} = optResults.weights{end};
  9. save(optResultsFile, 'optResults', 'optSettings');
  10. %% save also in alter format
  11. NLP_result.dose = double(D);
  12. NLP_result.weights = double(optResults.weights{end});
  13. save([path_in, '\matlab_files\Classical_opt.mat'], 'NLP_result');