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

Method __init__

utils/joint_transforms.py:47–51  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

45
46class CenterCrop(object):
47 def __init__(self, size):
48 if isinstance(size, numbers.Number):
49 self.size = (int(size), int(size))
50 else:
51 self.size = size
52
53 def __call__(self, img, mask):
54 assert img.size == mask.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected