mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 16:58:35 +08:00
Merge pull request #1068 from vighneshbirodkar/rag_fix
Fix threshold in RAG example
This commit is contained in:
@@ -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