MCPcopy Create free account
hub / github.com/Image-Py/imagepy / pick

Method pick

imagepy/core/roi/polygonroi.py:73–83  ·  view source on GitHub ↗
(self, x, y, z, lim)

Source from the content-addressed store, hash-verified

71 return self.body[0][0], self.body[0][0].index(cur)
72
73 def pick(self, x, y, z, lim):
74 rst = self.snap(x, y, z, lim)
75 if rst!=None:return rst
76
77 pgs = []
78 for i in self.body:
79 pgs.extend(to_segment(i))
80 unin = cascaded_union(pgs)
81 if unin.contains(Point(x,y)):
82 return True
83 return None
84
85 def draged(self, ox, oy, nx, ny, nz, i):
86 self.update, self.infoupdate = True, True

Callers

nothing calls this directly

Calls 2

snapMethod · 0.95
to_segmentFunction · 0.85

Tested by

no test coverage detected