def test_cseg_similarity_2(): cseg1 = Contour([1, 0, 4, 3, 2]) cseg2 = Contour([3, 0, 4, 2, 1]) assert comparison.cseg_similarity(cseg1, cseg2) == 0.6
def test_cseg_similarity_1(): cseg1 = Contour([0, 2, 3, 1]) cseg2 = Contour([3, 1, 0, 2]) assert comparison.cseg_similarity(cseg1, cseg2) == 1