I've been playing around with RMagick's color_histogram method to get a histogram of colors in a quantized 8-bit image.
However, while I'm supposed to get a hash returned from this method, I get something kind of wonky. The output from IRB upon inspecting the "hash" looks like this:
=> {red=1907, green=1893, blue=2716, opacity=0=>25801, red=21141, green=14902, blue=13109, opacity=0=>3744, red=35552, green=15344, blue=8229, opacity=0=>1427, red=48734, green=19120, blue=8539, opacity=0=>1280, red=62091, green=22662, blue=8733, opacity=0=>75158, red=57917, green=33805, blue=24932, opacity=0=>275, red=47046, green=39657, blue=37365, opacity=0=>1873, red=64379, green=64336, blue=64330, opacity=0=>10442}
Any ideas what I'm doing wrong here?