Skip to content

2D support? #455

Answered by fepegar
SteffenCzolbe asked this question in Q&A
Feb 8, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,
Great projects you have going on here, I'm looking forward to replace my shitty nii-to-pytorch pipeline and augmentation code with this library.

:D thanks @SteffenCzolbe.

Can you please clarify to which extend I will be able to use torchio with 2d images?

The reason why there is not a lot of 2D talk in the docs is just that the main challenges that this library solves are related to volumetric data with corresponding spatial metadata. That being said, you can see a 4D image as a generalization of a 2D image, so everything should work fine. Here's some IPython code:

!curl -o image2d.jpg https://thispersondoesnotexist.com/image
import torchio as tio
image = tio.ScalarImage('image…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fepegar
Comment options

Answer selected by fepegar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants