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

resultGUI.w to dij #713

Open
Mariam950-wp opened this issue Apr 30, 2024 · 7 comments
Open

resultGUI.w to dij #713

Mariam950-wp opened this issue Apr 30, 2024 · 7 comments
Labels
question stale Automatic label for stale issues

Comments

@Mariam950-wp
Copy link

Dear friends,

As it is mentioned in matRad documentation dij variable includes information about number of each bixel in each Ray in a beam.

But, weights created after optimization is stored in resultGui.w. how can I reconstruct one to one mapping from weights to bixel ID?

I did some such kind of mapping so that firsk element in resultGui.w corresponds to a first element in dij.bixelnumber, but the issue is that low energetic bixel has higher intensity (like it is shown on picture) and it not logical.

Thanks,
Mariam
Screenshot from 2024-04-30 17-46-58

@wahln
Copy link
Contributor

wahln commented May 3, 2024

Your mapping seems correct, and I don't agree that this is not "logical". matRad does not use an analytic SOBP-Formula to determine weights, which would give you monotonic increasing weights, but performs full IMPT optimization. Thus, there is no "strict" rule that the weights should increase. However, you still see the trend that intensities increase towards higher energies (if the last value is the weight).

@Mariam950-wp
Copy link
Author

Mariam950-wp commented May 3, 2024 via email

@Mariam950-wp
Copy link
Author

Mariam950-wp commented May 3, 2024 via email

@wahln
Copy link
Contributor

wahln commented May 5, 2024

matRad has no builtin function to do that, only for HU -> rSP / rED lookup. You should look into Schneider et al (2000) to figure out how to do it. When we forward to Monte Carlo codes like MCsquare or TOPAS, we rely on such conversion schemes provided by those codes (or do water-equivalent simulations).

@Mariam950-wp
Copy link
Author

Mariam950-wp commented May 7, 2024 via email

@wahln
Copy link
Contributor

wahln commented May 7, 2024

The TG119 phantom image includes a lot of air (which is at ~-1000), but the water phantom itself has consistently values a bit higher than 0 (between 0-30 HU).
This command, for example, shows the distribution of HU in the "body" contour (i.e. the outer phantom contour):

figure; hist(ct.cubeHU{1}(cst{3,4}{1}))

image

So I don't really understand how you end up with TG119 having mostly air?

Copy link

github-actions bot commented Jul 6, 2024

This issue was automatically marked as stale because it has been sitting there for 14 days without activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the stale Automatic label for stale issues label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale Automatic label for stale issues
Projects
None yet
Development

No branches or pull requests

2 participants