| 134 | |
| 135 | |
| 136 | class FreeScale(object): |
| 137 | def __init__(self, size, interpolation=Image.BILINEAR): |
| 138 | self.size = tuple(reversed(size)) # size: (h, w) |
| 139 | self.interpolation = interpolation |
| 140 | |
| 141 | def __call__(self, img): |
| 142 | return img.resize(self.size, self.interpolation) |
| 143 | |
| 144 | |
| 145 | class FlipChannels(object): |
nothing calls this directly
no outgoing calls
no test coverage detected