ewoksndreg.transformation.numpy_backend.homography_transform_data#
- ewoksndreg.transformation.numpy_backend.homography_transform_data(passive, data, offset=None, shape=None, cval=nan)[source]#
The offset and shape determine the coordinates in the output frame at which to interpolate the data. By default these are the coordinates of the data in the input frame (i.e. the pixel indices).
Only nearest-neighbor interpolation is supported.
- Parameters:
passive (
ndarray
) – shape (N+1, N+1)data (
ndarray
) – shape (N1, N2, …, M1, M2, …) with len((N1, N2, …)) = Noffset (
Optional
[ndarray
]) – shape (N,)shape (
Optional
[ndarray
]) – shape (N,) = [N1’, N2’, …]cval – missing value
- Return type:
ndarray
- Returns:
shape (N1’, N2’, …, M1, M2, …)