Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dose interpolation fix due to indexing issue #192

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cutright
Copy link
Contributor

@cutright cutright commented Dec 12, 2020

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
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
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