mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-03 12:50:25 +08:00
Merge pull request #1068 from vighneshbirodkar/rag_fix
Fix threshold in RAG example
This commit is contained in:
commit
74988b88d5
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user