# Revision history [back]

### OpenCV C++ / Multiple histograms on Camshift

I try to improve the initial camshift algorithm by computing lbp (locally binary pattern) histogram and hue distance histogram.

I have some issues about using camshift with those data.

I've already compute the lpb cv::Mat on one hand, and the other hand i computed the hue distance cv::Mat. So at this point i have two features: lbp and hue distance.

Now i would like to compute the two histograms corresponding to each feature but i don't know how to process in order to do that. Indeed in the original camshift there is the calchist function, which take in parameter the HSV picture. Then it computes the histogram with simply hue or hue-saturation histogram.

Do i have to gather those features into one matrix in order to then compute the histogram on it ?