mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-02 13:03:48 +08:00
removed comments
This commit is contained in:
@@ -40,7 +40,6 @@ def threshold_cut(label, rag, thresh):
|
||||
out = np.copy(label)
|
||||
|
||||
for i, nodes in enumerate(comps):
|
||||
|
||||
for node in nodes:
|
||||
for l in rag.node[node]['labels']:
|
||||
out[label == l] = i
|
||||
|
||||
@@ -32,7 +32,6 @@ class RAG(nx.Graph):
|
||||
if not self.has_edge(i, j):
|
||||
raise ValueError('Cant merge non adjacent nodes')
|
||||
|
||||
# print "before ",self.order()
|
||||
for x in self.neighbors(i):
|
||||
if x == j:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user