!7 p { RGBImage img = loadImage(#1006358); showImage(new Image332(img).getBufferedImage()); 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())); showImage(imageFromInt(from332(first(l)), 50, 50)); }