neuralib.imglib.transform.apply_transformation

neuralib.imglib.transform.apply_transformation(img, trans_mtx, **kwargs)[source]

2D image transform

Parameters:
  • img (ndarray) – image array

  • trans_mtx (ndarray) – Transformation matrix. Array[float, [3, 3]]

  • kwargs – additional arguments pass to cv2.warpPerspective()

Returns:

Return type:

ndarray