Adjust color distance ratio to match scaling

See 656c5af4fe
This commit is contained in:
byte[] 2022-01-20 17:19:28 -05:00
parent f358b824cb
commit a9fb361591

View file

@ -26,6 +26,9 @@ defmodule Philomena.DuplicateReports do
end end
def duplicates_of(intensities, aspect_ratio, dist \\ 0.25, aspect_dist \\ 0.05) do def duplicates_of(intensities, aspect_ratio, dist \\ 0.25, aspect_dist \\ 0.05) do
# for each color channel
dist = dist * 3
from i in Image, from i in Image,
inner_join: it in ImageIntensity, inner_join: it in ImageIntensity,
on: it.image_id == i.id, on: it.image_id == i.id,