view_beamlet.m 617 B

1234567891011121314151617
  1. blet1 = read_ryan_beamlets('F:\021_WiscPlan_data\DELETEME3\FRO_Beam1\scenario1\batch_dose.bin');
  2. blet2 = read_ryan_beamlets('F:\021_WiscPlan_data\DELETEME3\FRO_Beam1\scenario2\batch_dose.bin');
  3. idx = 420;
  4. tabula = zeros([blet1{idx}.x_count, blet1{idx}.y_count, blet1{idx}.z_count]);
  5. tabula(blet1{idx}.non_zero_indices) = tabula(blet1{idx}.non_zero_indices)+blet1{idx}.non_zero_values;
  6. orthoslice(tabula);
  7. tabula = zeros([blet2{idx}.x_count, blet2{idx}.y_count, blet2{idx}.z_count]);
  8. tabula(blet2{idx}.non_zero_indices) = tabula(blet2{idx}.non_zero_indices)+blet2{idx}.non_zero_values;
  9. orthoslice(tabula);