warp#
- voxel.warp.compose_vector_fields(first, second) VectorField#
Compose two displacement fields into the single field of applying
firstand thensecond, matching the order of aTransformSeries. The result lives on the grid ofsecond, in pull-back form: a grid point is displaced bysecondand then byfirstsampled at the displaced position, \(d(x) = s(x) + f(x + s(x))\). Points beyond the extent offirstsee no displacement from it.- Parameters:
first (VectorField) – Displacement field applied first.
second (VectorField) – Displacement field applied second, defining the grid and the vector space of the result.
- Returns:
VectorField – The composed displacement field.