owl.stitch.hugin_global_transforms

owl.stitch.hugin_global_transforms(pto_filename, imagename_format=None, correct_transforms=True, bin_mode=1)[source]

Create a homography matrix from the alingments in the given pto file.

Parameters:

pto_path (PathLike) – Path to the desired hugin template (.pto) in which to take the position data from.

Returns:

  • global_transform (array of floats) – An array of floats of shape (y_cameras, x_cameras, 3, 3) made up of the 3x3 global homography matrices used in the pto file.

  • output_shape (tuple of int) – The size of the numpy array in (height, width) pixels that will hold the composite.