I have published the C++ source code for extracting robust hue histograms which is a color descriptor for image patches. You can get more information from this page: Robust Hue Histogram.