summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-07-20 22:33:03 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-07-20 22:36:06 +0200
commit583c33fe90199499a4b7789e46b6ee8470ae0b67 (patch)
tree28265059d50390225d3d723b114ef8556efd001b
parent841f331c3d6f461d4453cf6b62e030a117db1db8 (diff)
Fix a fatal error in recovery code.
-rw-r--r--otsu2018.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/otsu2018.py b/otsu2018.py
index 4f84cd3..6533822 100644
--- a/otsu2018.py
+++ b/otsu2018.py
@@ -462,7 +462,7 @@ class Clustering:
if node.leaf:
return node
- if xy[node.split_x_or_y] >= node.split_axis:
+ if xy[node.split_x_or_y] <= node.split_a1xis:
return search(node.children[0])
else:
return search(node.children[1])