Creating new structures in cst cell #715
-
I'm trying to add structures to the cst cell to place these in my beamline. I have my structure's vertices lps coordinates but converting these to ct voxel indices seems to place my objects at incorrect positions/orientations. Is there a method to convert the lps coords to ct voxel indices? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
matRad has a very annoying multitude of coordiante systems (we are currently trying to refactor those but it's not that trivial). First of all, you need to be wary of voxel indices (i,j,k) and coordinates (x,y,z). Matlab inherently treats images with switched coordinates (j,i,k), which is usually the reason for images becoming "transposed" when importing something manually into matRad. Is this the orientation problem you are seeing? For the absolute coordinates, it depends on it a bit how you do it and which coordinates are stored in the ct cube. Are the vectors |
Beta Was this translation helpful? Give feedback.
Thanks a lot, i believe I've managed to figure it out now. I was creating the structure in the bev coordinates, transposing and then converting into the ct cube - I was getting it wrong during this process.