(self, size, interpolation=Image.BILINEAR)
| 31 | |
| 32 | class 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) |
nothing calls this directly
no outgoing calls
no test coverage detected