Problem with creating a subject and resampling #804
Elmisiry99
started this conversation in
General
Replies: 1 comment 7 replies
-
It looks like an old bug. What TorchIO version are you using? Can you update and try again?
It does. It's just optimized for 3D.
I think resampling the whole volume might be faster. I guess there are different choices:
The simplest solution, as it doesn't need a modification of the library, is number 1. What do you think? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am working on the prostate dataset of the Medical decathlon datasets and I wanted first to store each example in a subject. When I create the subject there are no errors, but if I try to print anything inside this subject I get the following error:
The code looks as follows:
Please note that I found this problem by first trying to output the shape of an image after applying resampling but I got this error so I tried to simplify first checking whether the subjects are defined or not.
Do you have an idea what this might be?
I wanted to ask a second question about 2D slices. Torchio doesn't work on 2D images, right? If I want to work only on 2D slices, I would then have to define the subjects with 3D images and index the slices I want or is there a way to apply transformations only on 2D slices? For example in the example above, I would like to resample only the in-plane dimensions without doing anything to the depth as I will not use it. Do I still have to apply the resamling on the whole volume?
Thanks a lot in advance
Beta Was this translation helpful? Give feedback.
All reactions