Fix even more tests still importing skimage.graph

This commit is contained in:
Juan Nunez-Iglesias
2015-02-03 16:20:15 +11:00
parent 9cbeeca0df
commit e5fe82d6f3
3 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -37,7 +37,8 @@ def cut_threshold(labels, rag, thresh, in_place=True):
Examples
--------
>>> from skimage import data, graph, segmentation
>>> from skimage import data, segmentation
>>> from skimage.future import graph
>>> img = data.astronaut()
>>> labels = segmentation.slic(img)
>>> rag = graph.rag_mean_color(img, labels)
@@ -107,7 +108,8 @@ def cut_normalized(labels, rag, thresh=0.001, num_cuts=10, in_place=True,
Examples
--------
>>> from skimage import data, graph, segmentation
>>> from skimage import data, segmentation
>>> from skimage.future import graph
>>> img = data.astronaut()
>>> labels = segmentation.slic(img, compactness=30, n_segments=400)
>>> rag = graph.rag_mean_color(img, labels, mode='similarity')
+2 -1
View File
@@ -365,7 +365,8 @@ def draw_rag(labels, rag, img, border_color=None, node_color='#ffff00',
Examples
--------
>>> from skimage import data, graph, segmentation
>>> from skimage import data, segmentation
>>> from skimage.future import graph
>>> img = data.coffee()
>>> labels = segmentation.slic(img)
>>> g = graph.rag_mean_color(img, labels)
+1 -1
View File
@@ -1,5 +1,5 @@
import numpy as np
from skimage import graph
from skimage.future import graph
from skimage._shared.version_requirements import is_installed
from numpy.testing.decorators import skipif
from skimage import segmentation