BioMedIA / deepali

Image, point set, and surface registration in PyTorch.
https://biomedia.github.io/deepali/
Apache License 2.0
26 stars 6 forks source link

[core] Fix spatial derivatives when using mode='bspline' or mode='gaussian' #135

Closed aschuh-hf closed 10 months ago

aschuh-hf commented 10 months ago

After this change, the spatial_derivatives() modes forward_central_backward (finite differences), bspline, and gaussian produce similar results. For flow fields, it is important to set spacing correctly. The default assumes flow fields with respect to normalized grid coordinates with align_corners=True.