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

Class FreeScale

utils/transforms.py:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
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)
39
40
41class FlipChannels(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected