ewoksndreg.transformation.numpy_backend.homography_transform_bounding_box#

ewoksndreg.transformation.numpy_backend.homography_transform_bounding_box(active, shape)[source]#

Calculate the bounding box after transforming an image with shape shape. Returns the minimum and maximum coordinates of the bounding box.

Parameters:
  • active (ndarray) – shape (N+1, N+1) or (K, N+1, N+1)

  • shape (Tuple[int]) – shape (N,)

Return type:

Tuple[ndarray, ndarray]

Returns:

2-tuple of arrays with shape (N,) or (K, N)