Commit 61162d88 authored by Martin Schorb's avatar Martin Schorb
Browse files

bug indentation

parent 4021337f
......@@ -1013,7 +1013,7 @@ def img2polygon(img, n_poly, center, radius):
# define threshold based on image type
if img.dtype.kind == 'b':
thresh = 1
elif img.dtype.kind == 'i':
elif img.dtype.kind == 'i':
thresh = 2**(8*img.dtype.itemsize-1)-1
if img.max()<thresh:
thresh = img.max()/2
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