handled the function with callbacks

This commit is contained in:
Vighnesh Birodkar
2015-01-27 21:33:22 +05:30
parent e41b34314a
commit 4c4d7108e1
4 changed files with 67 additions and 20 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ def test_merge_hierarchical():
labels[50:, 50:] = 3
rag = graph.rag_mean_color(img, labels)
new_labels = graph.merge_hierarchical(labels, rag, 10)
new_labels = graph.merge_hierarchical_mean_color(labels, rag, 10)
# Two labels
assert new_labels.max() == 1