static float simpleRGBDistance(RGB a, RGB b) { ret Math.abs(a.r-b.r) + Math.abs(a.g-b.g) + Math.abs(a.b-b.b); }