Merge pull request #1068 from vighneshbirodkar/rag_fix

Fix threshold in RAG example
This commit is contained in:
Juan Nunez-Iglesias
2014-07-15 19:11:21 -05:00
+1 -1
View File
@@ -19,7 +19,7 @@ labels1 = segmentation.slic(img, compactness=30, n_segments=400)
out1 = color.label2rgb(labels1, img, kind='avg')
g = graph.rag_mean_color(img, labels1)
labels2 = graph.cut_threshold(labels1, g, 30)
labels2 = graph.cut_threshold(labels1, g, 29)
out2 = color.label2rgb(labels2, img, kind='avg')
plt.figure()