diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-07-20 22:33:03 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-07-20 22:36:06 +0200 |
commit | 583c33fe90199499a4b7789e46b6ee8470ae0b67 (patch) | |
tree | 28265059d50390225d3d723b114ef8556efd001b | |
parent | 841f331c3d6f461d4453cf6b62e030a117db1db8 (diff) |
Fix a fatal error in recovery code.
-rw-r--r-- | otsu2018.py | 2 |
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]) |