'Apply homography to all correspondences,
return error for each transformed point.'

def get_error(self, data, H):

    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))
