MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / __call__

Method __call__

utils/joint_transforms.py:73–75  ·  view source on GitHub ↗
(self, img, mask)

Source from the content-addressed store, hash-verified

71 self.size = tuple(reversed(size)) # size: (h, w)
72
73 def __call__(self, img, mask):
74 assert img.size == mask.size
75 return img.resize(self.size, Image.BILINEAR), mask.resize(self.size, Image.NEAREST)
76
77
78class Scale(object):

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected