calibrate.py
def compute_adjusted_im(original: np.array, observed: np.array) -> np.array:
    """Computes adjusted image to project, so that the projection is righted.

    Note: In retrospect, this function is largely impractical. This alignment
    assumes that your camera is facing the plane head on, which may not
    always be the case.

    :param original: original image projected in h x w x 3
    :param observed: the projection observed in h x w x 3
    :return: adjusted image h x w x 3
    """
    H, _, _ = compute_homography_ims(observed, original)
    assert H is not None, 'Observed image does not contain checkerboard. Are' \
        ' you sure your computer is pointing in the right direction?'
    return warp(original, H)
Computes adjusted image to project, so that the projection is righted.

    Note: In retrospect, this function is largely impractical. This alignment
    assumes that your camera is facing the plane head on, which may not
    always be the case.

    :param original: original image projected in h x w x 3
    :param observed: the projection observed in h x w x 3
    :return: adjusted image h x w x 3
    
Computes adjusted image to project, so that the projection is righted.
Note: In retrospect, this function is largely impractical. This alignment
assumes that your camera is facing the plane head on, which may not
always be the case.
Computes adjusted image to project so that the projection is righted . Note : In retrospect this function is largely impractical . This alignment assumes that your camera is facing the plane head on which may not always be the case .
def compute_adjusted_im(original: np.array, observed: np.array) -> np.array:
    H, _, _ = compute_homography_ims(observed, original)
    assert H is not None, 'Observed image does not contain checkerboard. Are' \
        ' you sure your computer is pointing in the right direction?'
    return warp(original, H)
def compute_adjusted_im ( original : np . array , observed : np . array ) -> np . array : H , _ , _ = compute_homography_ims ( observed , original ) assert H is not None , 'Observed image does not contain checkerboard. Are' ' you sure your computer is pointing in the right direction?' return warp ( original , H )
Computes adjusted image to project, so that the projection is righted.
Computes adjusted image to project so that the projection is righted .
"""Computes adjusted image to project, so that the projection is righted.

    Note: In retrospect, this function is largely impractical. This alignment
    assumes that your camera is facing the plane head on, which may not
    always be the case.

    :param original: original image projected in h x w x 3
    :param observed: the projection observed in h x w x 3
    :return: adjusted image h x w x 3
    """
adjusted image h x w x 3
adjusted image h x w x 3
original
np.array
original image projected in h x w x 3
original image projected in h x w x 3
observed
np.array
the projection observed in h x w x 3
the projection observed in h x w x 3