title: Java Color Histogram all Colors not RGB separate
body: <p>I would like to extract a color histogram out of a BufferedImage (Java). I don't want to extract a separate histogram for red, green and blue, but I would like to have one histogram including all available colors (including a binning). It would be nice if the neighboring bins  look similar to each other.</p>
  
  <p>I don't have an Idea how to define the bins, since colors are not one-dimensional. Another problem is the allocation of a color to its bin.</p>
  
  <p>Does somebody have an idea or a library to realize it? </p>
  
  <p>Best,
  Michael</p>