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

Method __init__

scribbles_generator.py:114–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112
113class Cutting_branch(object):
114 def __init__(self):
115 self.lst_bifur_pt = 0
116 self.branch_state = 0
117 self.lst_branch_state = 0
118 self.direction2delta = {0: [-1, -1], 1: [-1, 0], 2: [-1, 1], 3: [
119 0, -1], 4: [0, 0], 5: [0, 1], 6: [1, -1], 7: [1, 0], 8: [1, 1]}
120
121 def __find_start(self, lab):
122 y, x = lab.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected