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

Method get_subimg

imagepy/core/wraper/imageplus.py:95–99  ·  view source on GitHub ↗
(self, s1=None, s2=None)

Source from the content-addressed store, hash-verified

93 return slice(t,b), slice(l,r)
94
95 def get_subimg(self, s1=None, s2=None):
96 if s1==None:
97 s = self.get_rect()
98 if s==None:return self.img
99 return self.img[s[0], s[1]]
100
101 def snapshot(self):
102 if self.snap is None:

Callers 3

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

get_rectMethod · 0.95

Tested by

no test coverage detected