-
ProblemAccording to the documentation, I should be able to use QuestionWhat is the correct way of using spline of grade Specs |
Beta Was this translation helpful? Give feedback.
Answered by
wyli
Nov 14, 2022
Replies: 1 comment
-
|
the default >>> from monai.transforms import Spacingd
>>> import torch
>>> x = torch.zeros((4, 100, 100, 100))
>>> output = Spacingd(keys="image", pixdim=(2,2,2), mode=3, padding_mode="nearest")({"image": x})
>>> output["image"].shape
(4, 50, 50, 50)
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YerePhy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the default
padding_modedoesn't work with the backend,perhaps you can try one of these values
'grid-mirror', 'grid-constant', 'mirror', 'nearest', 'grid-wrap', 'constant', 'reflect', 'wrap':