suppose a color image of size 256x256, how can I calculate the bianry histogram of the image? also which is the data structure suited to store the histogram if I want to cluster similar images? Please note that the histogram must be saved in the database along with the image.
Assuming you are using Matlab: rgb2gray and imhist can help you. If you need only 2 values try converting it to binary image