I see lots of articles applying lbp for texture based image classification. I just wonder three things about this technique that I couldn't find clear answers from Google:
How the algorithm calculates lbp for border pixels of an image that don't have enough neighbor pixels around them.
If we have eight neighbor pixels then the central pixel will have 256 patterns (59 if using uniform). But if we increase the neighbor pixel size (e.g. 8 or 10), then number of patterns will also increase, is that right? In that case, how it impacts to histogram calculation?
How can we calculate lbp for the object only. Particularly, if we want to compare objects in images, we only need to calculate lbp and histogram for the objects. I have tried to this idea by using opencv histogram (which supports mask and numpy histogram doesn't support mask) to lbp output but it didn't work. Any idea about how to filter lbp array based on mask and then we can find histogram afterward.
Thank you.
