def test_blurry_to_blacky(ref_blacky_sig, ref_blurry_sig, ref_dist_blacky_to_blurry): ref = ref_dist_blacky_to_blurry res = normalized_distance(ref_blurry_sig, ref_blacky_sig) assert pytest.approx(res) == ref
def test_wildy_to_wildy_inverted(ref_wildy_sig, ref_wildy_inverted_sig, ref_dist_wildy_to_wildy_inverted): ref = ref_dist_wildy_to_wildy_inverted res = normalized_distance(ref_wildy_sig, ref_wildy_inverted_sig) assert pytest.approx(res) == ref
def test_wildy_to_wildy_rotate_2(ref_wildy_sig, ref_wildy_rotate_2_sig, ref_dist_wildy_to_wildy_rotate_2): ref = ref_dist_wildy_to_wildy_rotate_2 res = normalized_distance(ref_wildy_sig, ref_wildy_rotate_2_sig) assert pytest.approx(res) == ref
def test_wildy_to_wildy_crop(ref_wildy_sig, ref_wildy_blurry_sig, ref_dist_wildy_to_wildy_crop): ref = ref_dist_wildy_to_wildy_crop res = normalized_distance(ref_wildy_sig, ref_wildy_blurry_sig) assert pytest.approx(res) == ref