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

Method info

imagepy/core/roi/rectangleroi.py:46–50  ·  view source on GitHub ↗
(self, ips, cur)

Source from the content-addressed store, hash-verified

44 return True
45
46 def info(self, ips, cur):
47 k, u = ips.unit
48 l,r,t,b = self.lt, self.rt, self.tp, self.bm
49 IPy.set_info('Rectangle : x:%.1f y:%.1f w:%.1f h:%.1f S:%.1f'%(
50 min(l,r)*k,min(t,b)*k,abs(r-l)*k,abs(b-t)*k,abs((r-l)*(b-t)*k**2)))
51
52 def pick(self, x, y, z, lim):
53 rst = self.snap(x, y, z,lim)

Callers

nothing calls this directly

Calls 1

set_infoMethod · 0.45

Tested by

no test coverage detected