qurit / rt-utils

A minimal Python library to facilitate the creation and manipulation of DICOM RTStructs.
MIT License
191 stars 56 forks source link

issue with saggital MR scans #32

Open ceps1986 opened 2 years ago

ceps1986 commented 2 years ago

I have a 3D MR series with 160 dicom files. x, y, z dims for the series are (160, 256, 256). If I've followed the code properly, i think it assumes that image series files are acquired in z direction, is that a correct?

ceps1986 commented 2 years ago

terrific tool by the way, first time I've run into issues using it!

asim-shrestha commented 2 years ago

Hi @ceps1986, glad you like the tool!

What exactly is the issue you were having? Were you expecting it to be acquired in a different manner? Would you also mind clarifying what you mean by acquired? We don't do much when the DICOM files are loaded in, it is mostly just handled by Pydicom. We do assume that the contour points are arranged in [x, y, z].

ceps1986 commented 2 years ago

Hi @asim-shrestha, thanks for the prompt response.

Here's what I think is happening... (I haven't gone down the rabbit hole just yet):

What exactly is the issue you were having?

Would you also mind clarifying what you mean by acquired?

We don't do much when the DICOM files are loaded in, it is mostly just handled by Pydicom. We do assume that the contour points are arranged in [x, y, z].

Hope this makes sense! I will look for a publicly available dataset that I can share so that we can test this

asim-shrestha commented 2 years ago

Thank you for the in-depth response @ceps1986! This clears a lot up. I'll have to discuss ways we can update RT-Utils to handle files acquired in different axes.

If you have any ideas yourself, feel free to submit a pull request with your changes :)