From 66d3ec3831b358e51f93d7599b0f98a38f3f6486 Mon Sep 17 00:00:00 2001 From: Vighnesh Birodkar Date: Mon, 23 Jun 2014 01:28:10 +0530 Subject: [PATCH] removed commented stataments --- skimage/graph/rag.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/skimage/graph/rag.py b/skimage/graph/rag.py index 01376734..24c82a19 100644 --- a/skimage/graph/rag.py +++ b/skimage/graph/rag.py @@ -149,14 +149,8 @@ def rag_meancolor(image, label_image, connectivity=2): for index in np.ndindex(label_image.shape): current = label_image[index] - - # if 'pixel count' in g.node[current]: g.node[current]['pixel count'] += 1 g.node[current]['total color'] += image[index] - # else: - # g.node[current]['pixel count'] = 1 - # g.node[current]['total color'] = image[index].astype(np.double) - # g.node[current]['labels'] = [current] for n in g: g.node[n]['mean color'] = (g.node[n]['total color'] /