Apply non-random affine #870
Answered
by
fepegar
Constantin-Jehn
asked this question in
Q&A
-
Hello, what would you suggest as simplest way to apply a specific affine to an image. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Answered by
fepegar
May 15, 2022
Replies: 1 comment 2 replies
-
Hi, @Constantin-Jehn. You can use import torchio as tio
colin = tio.datasets.Colin27().t1
colin.plot() look_up = tio.Affine(1, (45, 0, 0), 0)
colin_looking_up = look_up(colin)
colin_looking_up.plot() |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Constantin-Jehn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @Constantin-Jehn. You can use
Affine
for that: