spyrit.misc.dual_arm.recalibrate

spyrit.misc.dual_arm.recalibrate(X: Tensor, shape: Tuple[int, int], homography_inv: Tensor, amp_max: int = 0) Tensor[source]

Recalibrate tensor X using inverse homography transformation.

Args:

X: Input tensor of shape (batch_size, n_wav, height, width). shape: Target shape (n, m). homography_inv: Inverse homography matrix (3x3). amp_max: Maximum amplitude offset.

Returns:

Recalibrated tensor of shape (batch_size, n_wav, n, m).