ls2-diff: Make similarity threshold and dynamic range parameters