From 583c33fe90199499a4b7789e46b6ee8470ae0b67 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 20 Jul 2020 22:33:03 +0200 Subject: Fix a fatal error in recovery code. --- otsu2018.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit