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

[enh] Add SpatialTransform.points() and PointSetTransformer module #62

Closed aschuh-hf closed 1 year ago

aschuh-hf commented 1 year ago

The SpatialTransform.points() method can be used instead of SpatialTransform.forward() when the input point coordinates are not normalized with respect to the SpatialTransform.grid() and SpatialTransform.axes(), or when the output point coordinates should be mapped to a different domain as part of applying this function. This is mainly a convenience function, but should also make applying spatial transformations to unnormalized points (e.g., w.r.t. to the world coordinate system) more clear.

In addition, the PointSetTransformer module calls the SpatialTransform.points() function to transform a given input. The arguments of the SpatialTransform.points() method are hereby set during transformer module initialization.

Closes #53.