(self, end)
| 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 = [] |