public final class ColorUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
fastPerceptualColorDistanceSquared(int[] color1,
int[] color2)
http://www.compuphase.com/cmetric.htm
http://stackoverflow.com/a/6334454
Returns 0 for equal colors, nonzero for colors that look different.
|
static double |
slowPerceptualColorDistanceSquared(int color1,
int color2)
http://www.compuphase.com/cmetric.htm
http://stackoverflow.com/a/6334454
Returns 0 for equal colors, nonzero for colors that look different.
|
public static double fastPerceptualColorDistanceSquared(int[] color1, int[] color2)
public static double slowPerceptualColorDistanceSquared(int color1, int color2)
Weighs the distance from grey more heavily, to avoid matching grey and colorful colors together.