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

Method diff

imagepy/core/roi/roi.py:32–33  ·  view source on GitHub ↗
(self, roi)

Source from the content-addressed store, hash-verified

30 return shape2roi(roi2shape(roi).union(roi2shape(self)))
31
32 def diff(self, roi):
33 return shape2roi(roi2shape(self).difference(roi2shape(roi)))
34
35 def affine(self, m, o):
36 mat = [m[0,0], m[0,1], m[1,0], m[1,1], o[0], o[1]]

Callers 1

runMethod · 0.80

Calls 2

shape2roiFunction · 0.85
roi2shapeFunction · 0.85

Tested by

no test coverage detected