From a9fb3615917fb1e630800208fc1786fc88b2b6c3 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 20 Jan 2022 17:19:28 -0500 Subject: [PATCH] Adjust color distance ratio to match scaling See https://github.com/philomena-dev/cli_intensities/commit/656c5af4fec3cba4d5ba8d6689f7620a85860c59 --- lib/philomena/duplicate_reports.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/philomena/duplicate_reports.ex b/lib/philomena/duplicate_reports.ex index 1ba90050..3e07151e 100644 --- a/lib/philomena/duplicate_reports.ex +++ b/lib/philomena/duplicate_reports.ex @@ -26,6 +26,9 @@ defmodule Philomena.DuplicateReports do end 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, inner_join: it in ImageIntensity, on: it.image_id == i.id,