new params

This commit is contained in:
unknown
2025-02-11 20:21:16 +02:00
parent 714ffa193d
commit 5fa20b44e9
2 changed files with 19 additions and 15 deletions
+9
View File
@@ -0,0 +1,9 @@
import numpy as np
def EuclideanDistance(detected_colors, target_colors):
return np.linalg.norm(detected_colors - target_colors, axis=1)
def ManhattanDistance(detected_colors, target_colors):
return np.sum(np.abs(detected_colors - target_colors), axis=1)