MCPcopy Create free account
hub / github.com/HiLab-git/WORD / __detect_loop_branch

Method __detect_loop_branch

scribbles_generator.py:177–185  ·  view source on GitHub ↗
(self, end)

Source from the content-addressed store, hash-verified

175 self.__detect_neighbor_bifur_state(lab, pt)
176
177 def __detect_loop_branch(self, end):
178 for d in range(9):
179 if d == 4:
180 continue
181 y = end[0] + self.direction2delta[d][0]
182 x = end[1] + self.direction2delta[d][1]
183 if (y, x) in self.previous_bifurPts:
184 self.output = self.lst_output * 1
185 return True
186
187 def __call__(self, lab, seg_lab, iterations=1):
188 self.previous_bifurPts = []

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected