Compare_optPlans.m 827 B

12345678910111213141516171819202122232425
  1. function Compare_optPlans
  2. resultPath = 'C:\010-work\003_localGit\WiscPlan_v2\data\PatientData_ozzy1\matlab_files\';
  3. load([resultPath 'Geometry.mat'])
  4. load([resultPath 'NLP_result.mat'])
  5. load([resultPath 'optResults.mat'])
  6. roi_idx = 1;
  7. nfrac = 1;
  8. dose_WP = optResults.dose{end};
  9. dose_NLP = NLP_result.dose;
  10. [dvh_WP dosebins_WP] = dvhist(dose_WP,Geometry,roi_idx,nfrac);
  11. [dvh_NLP dosebins_NLP] = dvhist(dose_NLP,Geometry,roi_idx,nfrac);
  12. figure
  13. hold on
  14. plot(dosebins_WP, dvh_WP,'Color', [0.9,0.2,0.2],'LineStyle', '-','DisplayName', Geometry.ROIS{roi_idx}.name);
  15. plot(dosebins_NLP, dvh_NLP,'Color', [0.2,0.9,0.2],'LineStyle', '-','DisplayName', Geometry.ROIS{roi_idx}.name);
  16. hold off
  17. legend('Classical', 'Robust')
  18. end