List of usage examples for android.support.v4.graphics ColorUtils colorToLAB
public static void colorToLAB(@ColorInt int color, @NonNull double[] outLab)
From source file:arun.com.chromer.util.ColorUtil.java
private static double colorDifference(@ColorInt int a, @ColorInt int b) { double aLab[] = new double[3]; double bLab[] = new double[3]; ColorUtils.colorToLAB(a, aLab); ColorUtils.colorToLAB(b, bLab);// www . j a va 2s. c o m return ColorUtils.distanceEuclidean(aLab, bLab); }