Update plot_rag examples to use skimage.future

This commit is contained in:
Juan Nunez-Iglesias
2015-02-03 15:10:54 +11:00
parent eeaf766291
commit 483d7d669b
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ The example below also shows how to use a custom function to select the larger
weight instead.
"""
from skimage.graph import rag
from skimage.future.graph import rag
import networkx as nx
from matplotlib import pyplot as plt
import numpy as np
+2 -1
View File
@@ -6,7 +6,8 @@ Drawing Region Adjacency Graphs (RAGs)
This example constructs a Region Adjacency Graph (RAG) and draws it with
the `rag_draw` method.
"""
from skimage import graph, data, segmentation
from skimage import data, segmentation
from skimage.future import graph
from matplotlib import pyplot as plt, colors
+2 -1
View File
@@ -9,7 +9,8 @@ difference in mean color. We then join regions with similar mean color.
"""
from skimage import graph, data, io, segmentation, color
from skimage import data, io, segmentation, color
from skimage.future import graph
from matplotlib import pyplot as plt
+2 -1
View File
@@ -10,7 +10,8 @@ until no highly similar region pairs remain.
"""
from skimage import graph, data, io, segmentation, color
from skimage import data, io, segmentation, color
from skimage.future import graph
import numpy as np