Read DVH and compute the dose metric (V2%, D98%, D3cc...)

The purpose of this code is to compute a specific Dose metric given a DVH with relative dose and relative volume.
178 Downloads
Updated 3 Sep 2018

View License

*Let me know if you enjoy the code or there is something that needs to be modified*

Read the DVH and compute the dose metric (V2%, D98%, D3cc, D98%, D97% and even the Mean lung dose...). The DVH needs to be in relative form but given the prescribed dose and the volume of the structure, D3cc and V20Gy can be calculated.

User needs to follow one of the given example in the description.

Start by the following :

>> load('All.mat');

Example 1:
>> ComputeDoseMetric_fromDVH(Dose_x, Volume_y, 'V2%')
>> V2%: Percentage Volume receiving 2% of the dose is 31.8286%

Example 2:
>>ComputeDoseMetric_fromDVH(Dose_x, Volume_y, 'D2%')
>> D2%: Dose covering 2% of the Volume is 38.3% of the dose

Example 3:
>>ComputeDoseMetric_fromDVH(Dose_x, Volume_y, 'D2cc')
>> Error - Need to define the Volume to be able to calculate the D2cc

Example 4:
>>ComputeDoseMetric_fromDVH(Dose_x, Volume_y, 'D2cc', 48, 22)
%Prescribed dose is 48Gy
%Volume of the structure of 22 cc

>> D2cc: Dose covering 2cc of the Volume is 7.95% of the dose
>> D2cc: Dose covering 2cc of the Volume is 3.816Gy

Example 5:
>>ComputeDoseMetric_fromDVH(Dose_x, Volume_y, 'MLD', 48, 22)
% WARNING: Only for the lung structure

>>MLD: Mean Lung Dose 1.8566Gy

Cite As

vincent caillet (2024). Read DVH and compute the dose metric (V2%, D98%, D3cc...) (https://www.mathworks.com/matlabcentral/fileexchange/68650-read-dvh-and-compute-the-dose-metric-v2-d98-d3cc), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.7

Added some notes

1.0.6

Added some notes

1.0.5

Added a screenshot

1.0.4

added some stuff

1.0.3

Simpler explanations

1.0.2

Added some graphics to it and solved some errors

1.0.1

Added the All.mat file

1.0.0