mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
parent
f358b824cb
commit
a9fb361591
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue