warp_coordinates

sofia_redux.toolkit.image.warp.warp_coordinates(coordinates, source, destination, order=2)[source]

Apply the warping between two sets of coordinates to another.

Parameters:
coordinatesnumpy.ndarray

The coordinates to warp of shape (n_dimensions, shape,).

sourcenumpy.ndarray

The reference source coordinates of shape (n_dimensions, shape2,). Used in conjunction with destination to define the warping transform.

destinationnumpy.ndarray

The reference destination coordinates of shape (n_dimensions, shape2,). Used in conjunction with source to define the warping transform.

orderint, optional

The order of polynomial used to model the transformation between source and destination.

Returns:
warped_coordinatesnumpy.ndarray (float)

The coordinates warped by estimating the transform between source and destination.