Skip to content

coordinates to voxel index #563

Answered by wahln
wensoffthewall asked this question in Q&A
Discussion options

You must be logged in to vote

This is indeed not that straightforward or natively implemented. matRad uses the geometrical coordinates to define "rays" (you can get their coordinate w.r.t to the isocenter in world coordinates by stf(iBeam).ray(iRay).rayPos.
Spot positions are then chosen on each ray based on the WEPL computed from voxel ray-tracing such that the target is covered, and the chosen energies are stored in each ray.

To get the coordinate of a peak then, one would need to use the raytracer to extract the WEPL in each voxel passed by the ray and then seek/interpolate the peakpositions from the basedata-file for all the given energies. Maybe this can be hacked into the matRad_generateStf function, such that t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wahln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants