Ask Your Question

B.Gen.Jack.O.Neill's profile - activity

2020-08-16 13:02:57 -0600 received badge  Student (source)
2014-08-20 06:40:54 -0600 commented question Why is LBP generaly faster than HAAR?

berak: Why not? If its MB LBP, it needs to sum 9 cells of textue at specified rect offsets. Integral image makes this operation O(1). I mean, this would suggest LBP should be even slower :/

2014-08-19 16:21:25 -0600 asked a question Why is LBP generaly faster than HAAR?

I am digging into Haar like and LBP features. More precisely its implementation in OpenCV. Every article or forum entry I found states, that LBP is faster than Haar. My local tests also confirm this expectation. Yet I don´t understand why are LBP faster. As far as I know, OpenCV uses MB LBP features. I looked into some trained LBP cascade, and found out that leafe values as well as stage thresholds are floating point values, similiar to Haar cascade. Also, both features are very similiar, Haar sums up regions in rectangles together to get threshold values where MB LBP does 8 thresholding with neighbours. But both alghoritms use Integral image for quick summation. So by very naive approach, it seems to me that 8 comparisions are actually slower than few additions.

So, what is the expensive part of Haar feature evaluation vs MB LBP? I know I am wrong, based on practical testing, I just don´t know why.