Allow edit transposes again, there doesn't seem to be a good reason to prevent it and I'm not sure it can even happen in practice

This commit is contained in:
kris 2023-01-17 21:10:49 +00:00
parent efe821d215
commit 5c728e7ff1
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class EditDistanceParams:
# Smallest substitution value is ~20 from palette.diff_matrices, i.e.
# we always prefer to transpose 2 pixels rather than substituting colours.
# TODO: is quality really better allowing transposes?
transpose_costs = np.ones((128, 128), dtype=np.float64) * 100000 # 10
transpose_costs = np.ones((128, 128), dtype=np.float64)
# These will be filled in later
substitute_costs = np.zeros((128, 128), dtype=np.float64)