spyrit.core.warp.ElasticDeformation

class spyrit.core.warp.ElasticDeformation(alpha, sigma, img_shape, n_frames, n_interpolation)[source]

Bases: DeformationField

Methods

forward(img[, n0, n1, mode])

Warps a batch of 2D images with the stored inverse deformation field \(u\).

grid_sample(img_frames, inverse_grid_frames, ...)

Used to warp frames of 2D images with a deformation field.