'Need a python code to find out the Local Binary Pattern and Gabor Filter of all the superpixels individually

I am doing tumor segmentation for my project and have used the SLIC function from scikit- image mark boundaries to create this grid. I am creating a feature vector of each superpixel. I wanted to know how to extract the Local Binary Pattern and Gabor Filter of each superpixel to add it to my feature vectors for superpixels.enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source