From d86b624d433a7eed289db7b88ad232f564a4a653 Mon Sep 17 00:00:00 2001 From: Matt Terry Date: Sat, 17 Aug 2013 11:11:23 -0700 Subject: [PATCH] r is confusing, use ab instead --- skimage/color/delta_e.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/color/delta_e.py b/skimage/color/delta_e.py index a7f9b775..18cfca98 100644 --- a/skimage/color/delta_e.py +++ b/skimage/color/delta_e.py @@ -320,11 +320,11 @@ def get_dH2(lab1, lab2): dH = sqrt(term) However, this has poor roundoff properties when a or b is dominant. - Instead, r is a vector with elements a and b. The same dH term can be + Instead, ab is a vector with elements a and b. The same dH term can be re-written as: - |r1-r2|**2 - (|r1| - |r2|)**2 + |ab1-ab2|**2 - (|ab1| - |ab2|)**2 and then simplified to: - 2*|r1|*|r2| - 2*dot(r1, r2) + 2*|ab1|*|ab2| - 2*dot(ab1, ab2) """ lab1 = np.asarray(lab1) lab2 = np.asarray(lab2)