def fit(self, data):
    ' Fit homography to four selected correspondences. '
    data = data.T
    fp = data[:3, :4]
    tp = data[3:, :4]
    return H_from_points(fp, tp)
Fit homography to four selected correspondences.
def fit(self, data):
    '  '
    data = data.T
    fp = data[:3, :4]
    tp = data[3:, :4]
    return H_from_points(fp, tp)