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

Method __init__

utils/transforms.py:33–35  ·  view source on GitHub ↗
(self, size, interpolation=Image.BILINEAR)

Source from the content-addressed store, hash-verified

31
32class FreeScale(object):
33 def __init__(self, size, interpolation=Image.BILINEAR):
34 self.size = tuple(reversed(size)) # size: (h, w)
35 self.interpolation = interpolation
36
37 def __call__(self, img):
38 return img.resize(self.size, self.interpolation)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected