Skip to content

Dose interpolation fix due to indexing issue#192

Open
cutright wants to merge 4 commits into
dicompyler:masterfrom
cutright:master
Open

Dose interpolation fix due to indexing issue#192
cutright wants to merge 4 commits into
dicompyler:masterfrom
cutright:master

Conversation

@cutright

@cutright cutright commented Dec 12, 2020

Copy link
Copy Markdown
Contributor

I noticed a shift in the interpolated DVH calculations, even if the resolution was equal to the original dose grid. Upon inspection of the code, it appears as if there were a couple of list indexing issues.

The light blue line is calculated with the current dicompyler-core master. The orange is calculated with Eclipse, and imported as a DICOM DVH. The dark blue line is calculated with this pull request.

The edits to lines 165 and 166 were applied intuitively, but I have not done any testing other than to show it doesn't crash.

The +1's to sampling_rate and extent_dose alone fix the shifted DVH.

image

@cutright

Copy link
Copy Markdown
Contributor Author

Unfortunately, centering doesn't resolve the issue. Orange is Eclipse and Green is this new method: centering the LUT.

Messages Image(1749872019)

@cutright

Copy link
Copy Markdown
Contributor Author

I should point out that the volume of the structures posted in this PR are ~0.03cc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant