Replies: 2 comments 1 reply
-
In Spacing label you need to add mode= 'nearest' . like this : sampler(load, mode= 'nearest') |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi all, I am trying to use the Spacing to resample the mri data but when I am using the affine attribute on it I am getting an error: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am seeing different results when comparing the output of the Spacing vs Spacingd transforms.
I have a dataset of CT volumes and their corresponding masks. I create and apply the transforms as follows:
And I get the following output:
as you can see, the processed image and processed label shapes are the same when using the Spacing transform (second output line) but they differ when using the dictionary transform (last line of output).
Here are the metadata dictionaries of the image and label that are passed to the Spacingd dictionary transform:
Why do I get different outputs depending on whether I use the dictionary-based transform? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions