def get_error(self, data, H):
    ' Apply homography to all correspondences, \n            return error for each transformed point. '
    data = data.T
    fp = data[:3]
    tp = data[3:]
    fp_transformed = dot(H, fp)
    fp_transformed = normalize(fp_transformed)
    return sqrt(sum(((tp - fp_transformed) ** 2), axis=0))
Apply homography to all correspondences, 
return error for each transformed point.
def get_error(self, data, H):
    ' Apply homography to all correspondences, \n            return error for each transformed point. '
    data = data.T
    fp = data[:3]
    tp = data[3:]
    fp_transformed = dot(H, fp)
    fp_transformed = normalize(fp_transformed)
    return sqrt(sum(((tp - fp_transformed) ** 2), axis=0))