!7 p { RGBImage img = loadImage(#1006358); showImage(new Image332(img).getBufferedImage()); final new MultiSet histogram; for (int rgb : img.pixels) { byte b = to332(rgb); S s = str((b >> 5) & 7) + ((b >> 2) & 7) + (b & 3); histogram.add(s); } L l = histogram.highestFirst(); pnl(lookupToMap(l, histogram.asMap())); final int max = histogram.get(first(l)); printStruct(map from332(l)); showImage(mergeImagesVertically(allToRGBImage(map(l, func(S col) { imageFromInt(from332(col), max(1, iround(histogram.get(col)*100.0/max)), 30) })))); }