From 9b8e1333e838ace440a349d54c0fe1cf00731cd7 Mon Sep 17 00:00:00 2001 From: Vighnesh Birodkar Date: Wed, 18 Jun 2014 03:59:12 +0530 Subject: [PATCH] Corrected rag import --- skimage/graph/rag.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/skimage/graph/rag.py b/skimage/graph/rag.py index 92231280..e788455d 100644 --- a/skimage/graph/rag.py +++ b/skimage/graph/rag.py @@ -1,5 +1,4 @@ import networkx as nx -from . import rag import numpy as np from scipy.ndimage import filters @@ -60,7 +59,7 @@ def _add_edge(values, g): return 0.0 -def rag_mean_color(img, arr): +def rag_meancolor(img, arr): """Computes the Region Adjacency Graph of a color image using difference in mean color of regions as edge weights. @@ -89,7 +88,7 @@ def rag_mean_color(img, arr): >>> rag = graph.rag_meancolor(img, labels) """ - g = rag.RAG() + g = RAG() fp = np.zeros((3,) * arr.ndim) slc = slice(1, None, None)