loki.align.apply_homography

loki.align.apply_homography(coordinates, H)

Apply a 3x3 homography matrix to 2D coordinates.

Parameters:
  • coordinates – A numpy array of shape (n, 2) containing 2D coordinates.

  • H – A numpy array of shape (3, 3) representing the homography matrix.

Returns:

A numpy array of shape (n, 2) with transformed coordinates.