OpenCV C++ / Multiple histograms on Camshift

asked 2015-01-11 10:36:52 -0500

lilouch gravatar image

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 ?

Thank you in advance.

edit retag flag offensive close merge delete