Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Where can i find a fast opencv c++ code to compute LBP and LTP histograms?

I am working on a SVM classifier to classify eye images in open or closed eye. I found this paper:

http://www.sciencedirect.com/science/article/pii/S0031320314001228

Some of the methods described on this paper use LPB (Local Binary Pattern) and LTP (Local Ternary Pattern) as descriptors to generate the features to a SVM classifier. I know that opencv makes face recognition using LBP descriptor, but i don't know how to use it's code to get LBP histograms.

Can some one help me with this?

If someone tell me how can i use opencv LBP implementation to compute LBP histograms, or show me where can i find a fast LTP C++ code for opencv i will be grateful. If someone can tell me both will be great!

Thanks!