Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA implementation of higher-order image resampling (e.g. cubic spline) #789

Closed
tvercaut opened this issue Jul 20, 2020 · 2 comments
Closed
Labels
Feature request Module: networks network, layers, blocks definitions in PyTorch Module: transform data transforms for preprocessing and postprocessing. WG: Transforms For the transforms working group

Comments

@tvercaut
Copy link
Member

Is your feature request related to a problem? Please describe.
Pytorch's grid-sample function provides a GPU implementation of linear interpolation for image redsampling. Registration networks and warping-based augmentation layers may benefit from higher-order image resampling which is currently not available in either pytorch or MONAI.

Describe the solution you'd like
Implement a CUDA-based higher-order interpolation layer allowing for a backward pass (i.e. differentiable).

Describe alternatives you've considered
N/A

Additional context
NiftyNet ported the code from NiftyReg for that purpose: https://niftynet.readthedocs.io/en/dev/niftynet.contrib.niftyreg_image_resampling.html

This issue spins from #95 and relies on #785 for enabling a propoer packaging of such feature.

@tvercaut
Copy link
Member Author

Copying some notes from #1452 to ease the discussion.

The nitorch-based code in MONAI (https://github.com/Project-MONAI/MONAI/tree/master/monai/csrc/resample) only partially adresses the need. It seems we have two options:

@wyli wyli mentioned this issue Feb 22, 2021
6 tasks
@wyli wyli added Module: networks network, layers, blocks definitions in PyTorch Module: transform data transforms for preprocessing and postprocessing. WG: Transforms For the transforms working group labels May 13, 2021
@vikashg
Copy link

vikashg commented Jan 4, 2024

closing as the issue was closed earlier

@vikashg vikashg closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Module: networks network, layers, blocks definitions in PyTorch Module: transform data transforms for preprocessing and postprocessing. WG: Transforms For the transforms working group
Projects
None yet
Development

No branches or pull requests

4 participants