Skip to content

Instantly share code, notes, and snippets.

@fepegar
Last active September 20, 2023 13:05
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fepegar/b723d15de620cd2a3a4dbd71e491b59d to your computer and use it in GitHub Desktop.
Save fepegar/b723d15de620cd2a3a4dbd71e491b59d to your computer and use it in GitHub Desktop.
b723d15de620cd2a3a4dbd71e491b59d
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drusmanbashir
Copy link

Hi, This is really good. Do you have any tips to share to extend it to 3D spatial coordinates?

@fepegar
Copy link
Author

fepegar commented Sep 30, 2022

Do you mean for visualization or to apply elastic deformations to 3D images?

For the former, I'd user 3D Slicer and VTK.
For the latter, TorchIO: https://torchio.readthedocs.io/transforms/augmentation.html#randomelasticdeformation

@drusmanbashir
Copy link

I mean, to apply 3D deformation to 3d images (e.g., CT scans). I am a radiologist working on deep learning in kidney tumours. I have been looking for efficient spline-based deformations of the tumour as data-augmentation. People have developed elaborate elastic / deep-learning based pipeline but afaik a simple solution with splines would be quicker and logical. I haven't found an implementation yet.

@fepegar
Copy link
Author

fepegar commented Sep 30, 2022

You can use TorchIO, as I mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment