Commit fb42b7ee authored by Taddeüs Kroes's avatar Taddeüs Kroes

Commented cmp_pixels.

parent 7bc52ab8
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment