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

asked 2015-05-13 08:02:00 -0500

Ricardo Câmara gravatar image

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


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!


edit retag flag offensive close merge delete



look e.g. here and here . openbr also has a ltp implementation

berak gravatar imageberak ( 2015-05-13 10:00:46 -0500 )edit

Here also, it has fast OpenCV implementation and a GPU one.

tuannhtn gravatar imagetuannhtn ( 2015-05-13 21:59:59 -0500 )edit

I have 3 posts on LBP, you can check it for useful infos :P, one has a LBP.cpp by bytefish and another one has histogram comparison implemented using CHI-SQR.

fredreload gravatar imagefredreload ( 2015-05-13 23:38:41 -0500 )edit

Thanks for sharing the useful info. I am new here.

addseo1118 gravatar imageaddseo1118 ( 2015-05-14 02:14:25 -0500 )edit