Taddeüs Kroes 14 лет назад
Родитель
Сommit
fb42b7ee9c
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/LBP.py

+ 2 - 0
src/LBP.py

@@ -40,6 +40,8 @@ def features(image):
     features = zeros(image.shape, dtype=byte)
 
     def cmp_pixels(y, x, p):
+        """Check if two pixels (y, x) and p are in the image, and if the value
+        at (y, x) is larger than the value at p."""
         return in_image(y, x, image) and image[y, x] > p
 
     for y, x in domain_iterator(features.shape):